it-fraggle
Goto Top

Putty Sessions sichern, RegEdit Pfad fehlt

Moin zusammen,

ich meine mich daran zu erinnern, dass Putty die Sessions in die Reg schreibt. Tante Google bestätigt mir das auch und überall ist zu lesen, dass es unter HKEY_CURRENT_USER\Software\SimonTatham\PuTTY zu finden ist. Öffne ich das aber, dann hört es bei HKEY_CURRENT_USER\Software\ auf. Hat sich da was geändert oder jemand eine Idee warum der Pfad fehlt?

Gruß und Dank

Content-Key: 601556

Url: https://administrator.de/contentid/601556

Printed on: April 20, 2024 at 09:04 o'clock

Member: NordicMike
NordicMike Sep 03, 2020 at 07:38:33 (UTC)
Goto Top
Also bei mir sind sie genau in diesem Pfad, hab gerade nachgeschaut. Notfalls bemühst du einen Registry Monitor um in Echtzeit zu sehen wohin Putty schreibt.
Member: Dr.Bit
Dr.Bit Sep 03, 2020 at 08:35:32 (UTC)
Goto Top
Welchen Putty hast Du denn? Portable oder installiert? Bei mir steht auch nichts in der Registry, ich habe aber auch den Portable.

🖖
Member: NordicMike
NordicMike Sep 03, 2020 at 11:00:43 (UTC)
Goto Top
Ich habe ihn installiert.

Hast du denn schon Sessions in der Liste, die gespeichert sein sollten?
Evtl kannst du es auch irgendwie erzwingen, dass er es in die Registry schreibt, hier kann man es scheinbar einrichten:

4.30 Storing configuration in a file
PuTTY does not currently support storing its configuration in a file instead of the Registry. However, you can work around this with a couple of batch files.

You will need a file called (say) PUTTY.BAT which imports the contents of a file into the Registry, then runs PuTTY, exports the contents of the Registry back into the file, and deletes the Registry entries. This can all be done using the Regedit command line options, so it's all automatic. Here is what you need in PUTTY.BAT:

@echo OFF
regedit /s putty.reg
regedit /s puttyrnd.reg
start /w putty.exe
regedit /ea new.reg HKEY_CURRENT_USER\Software\SimonTatham\PuTTY
copy new.reg putty.reg
del new.reg
regedit /s puttydel.reg
This batch file needs two auxiliary files: PUTTYRND.REG which sets up an initial safe location for the PUTTY.RND random seed file, and PUTTYDEL.REG which destroys everything in the Registry once it's been successfully saved back to the file.

Here is PUTTYDEL.REG:

REGEDIT4

[-HKEY_CURRENT_USER\Software\SimonTatham\PuTTY]
Here is an example PUTTYRND.REG file:

REGEDIT4

[HKEY_CURRENT_USER\Software\SimonTatham\PuTTY]
"RandSeedFile"="a:\\putty.rnd"
You should replace a:\putty.rnd with the location where you want to store your random number data. If the aim is to carry around PuTTY and its settings on one USB stick, you probably want to store it on the USB stick.
Member: Dr.Bit
Dr.Bit Sep 03, 2020 at 12:06:20 (UTC)
Goto Top
Zitat von @NordicMike:

Ich habe ihn installiert.

Hast du denn schon Sessions in der Liste, die gespeichert sein sollten?
Evtl kannst du es auch irgendwie erzwingen, dass er es in die Registry schreibt, hier kann man es scheinbar einrichten:

4.30 Storing configuration in a file
PuTTY does not currently support storing its configuration in a file instead of the Registry. However, you can work around this with a couple of batch files.

You will need a file called (say) PUTTY.BAT which imports the contents of a file into the Registry, then runs PuTTY, exports the contents of the Registry back into the file, and deletes the Registry entries. This can all be done using the Regedit command line options, so it's all automatic. Here is what you need in PUTTY.BAT:

@echo OFF
regedit /s putty.reg
regedit /s puttyrnd.reg
start /w putty.exe
regedit /ea new.reg HKEY_CURRENT_USER\Software\SimonTatham\PuTTY
copy new.reg putty.reg
del new.reg
regedit /s puttydel.reg
This batch file needs two auxiliary files: PUTTYRND.REG which sets up an initial safe location for the PUTTY.RND random seed file, and PUTTYDEL.REG which destroys everything in the Registry once it's been successfully saved back to the file.

Here is PUTTYDEL.REG:

REGEDIT4

[-HKEY_CURRENT_USER\Software\SimonTatham\PuTTY]
Here is an example PUTTYRND.REG file:

REGEDIT4

[HKEY_CURRENT_USER\Software\SimonTatham\PuTTY]
"RandSeedFile"="a:\\putty.rnd"
You should replace a:\putty.rnd with the location where you want to store your random number data. If the aim is to carry around PuTTY and its settings on one USB stick, you probably want to store it on the USB stick.

Wenn ich das richtig gelesen habe gilt das für die Install und nicht für die Portable. Deswegen wollte ich ja wissen, wie der TO es hat.

🖖
Member: it-fraggle
it-fraggle Sep 03, 2020 at 12:31:20 (UTC)
Goto Top
Danke allen für die Antworten.

Ich habe Putty installiert. Habe es sogar runtergeworfen und erneut installiert, aber so oder so ist im Reg-Pfad nichts zu finden. Echt seltsam.
Member: ChJeker
ChJeker Sep 03, 2020 at 15:33:16 (UTC)
Goto Top
ist wahrscheinlich im .reg oder .ini file im Ordner, da du die Portable Version verwendest:
https://portableapps.com/node/60898
Member: NordicMike
NordicMike Sep 03, 2020 at 15:41:26 (UTC)
Goto Top
Zitat von @it-fraggle:
Habe es sogar runtergeworfen und erneut installiert, aber so oder so ist im Reg-Pfad nichts zu finden.

Hast du denn schon seit dem eine Session abgespeichert?
Member: it-fraggle
it-fraggle Sep 03, 2020 at 16:25:21 (UTC)
Goto Top
Ja, habe ich. Gerade auf meinem privaten PC geschaut. Dort ist der Pfad vorhanden.