Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to export/import PuTTY sessions list?

Is there a way to do this?

Or I have to take manually every record from Registry?

like image 936
s.webbandit Avatar asked Oct 23 '12 05:10

s.webbandit


People also ask

How do I export and import PuTTY sessions?

PuTTY settings are shared in HKEY_CURRENT_USER in the registry, so you can export these to a file for use elsewhere. To export, run RegEdit.exe and navigate to HKEY_CURRENT_USER\Software\SimonTatham\PuTTY. Right click on the PuTTY entry in the tree and select Export. Save this file to your thumb drive or H: drive.

Where are PuTTY saved sessions stored?

PuTTY sessions are stored in the Windows Registry under “SimonTatham”, the developer of PuTTY. We can export these sessions as a Registry Entry . reg file and back them up for safe keeping, or copy to another computer running PuTTY.

How do I restore a PuTTY session?

Right click on the “putty-config” file and select “Merge“. This will merge the registry into your new registry. Open up Putty and voila!!! Your old configurations are all back in Putty including all the session keys.


1 Answers

Export

cmd.exe, require elevated prompt:

Only sessions:

regedit /e "%USERPROFILE%\Desktop\putty-sessions.reg" HKEY_CURRENT_USER\Software\SimonTatham\PuTTY\Sessions 

All settings:

regedit /e "%USERPROFILE%\Desktop\putty.reg" HKEY_CURRENT_USER\Software\SimonTatham 

Powershell:

Only sessions:

reg export HKCU\Software\SimonTatham\PuTTY\Sessions ([Environment]::GetFolderPath("Desktop") + "\putty-sessions.reg") 

All settings:

reg export HKCU\Software\SimonTatham ([Environment]::GetFolderPath("Desktop") + "\putty.reg") 

Import

Double-click on the *.reg file and accept the import.

Alternative ways:

cmd.exe, require elevated command prompt:

regedit /i putty-sessions.reg regedit /i putty.reg 

PowerShell:

reg import putty-sessions.reg reg import putty.reg 

Note: do not replace SimonTatham with your username.

Note: It will create a reg file on the Desktop of the current user.

Note: It will not export related SSH keys.

like image 55
m0nhawk Avatar answered Sep 21 '22 10:09

m0nhawk