PuTTY sessions are stored in the Windows Registry under “SimonTatham”, who is the developer of PuTTY. These sessions can be exported as a Registry Entry .reg file for safe keeping, or copy to another computer running PuTTY.


Firstly, make sure that all PuTTY windows are closed.

You can use Windows Command Prompt in admin mode to easily export keys from the Windows Registry.

In Windows 10, open the Start Menu and type cmd, then right-click on the Command Prompt icon and click Run as Administrator.

cmd.png


Export PuTTY Settings and Sessions

If you want to export all PuTTY settings including sessions, run:

regedit /e "%USERPROFILE%\Desktop\putty.reg" HKEY_CURRENT_USER\Software\SimonTatham
You should now have a file called putty.reg on your desktop

Export PuTTY Sessions Only

If you only want to export PuTTY sessions, run:

regedit /e "%USERPROFILE%\Desktop\putty-sessions.reg" HKEY_CURRENT_USER\Software\SimonTatham\PuTTY\Sessions
A file putty-sessions.reg should now be on your Desktop. (Please Note that SSH keys are not stored in the registry so you will have to copy these manually if you have any).

Importing PuTTY Settings and Sessions to Another PC

Make sure that PuTTY is closed before importing registry keys.


Simply double-click the .reg file to import it into your registry. It’s that simple!