Export PuTTY sessions and settings
Back up PuTTY sessions and settings from the Windows registry using regedit or reg export.
PuTTY sessions and settings are stored in the Windows registry under HKEY_CURRENT_USER\Software\SimonTatham. Exporting them lets you back them up or move them to another workstation.
Export with regedit (cmd)
Sessions only:
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
Export with PowerShell
Sessions only:
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")
Notes
- The destination can be any folder; prefixing the file name with the date (for example
20200610_putty-sessions.reg) makes backups easier to track. - The
...\PuTTY\Sessionskey holds the saved sessions; the parentSimonTathamkey also holds the other settings (for example known SSH host keys). - To restore, double-click the
.regfile (or usereg import).