How to Transfer / Migrate / Import / Export PuTTY Session List from Windows to Linux

Problem: How to export / import / migrate / transfer PuTTY sessions list from Windows to Linux.

Image for post
Image for post

Content Summary

Transfer PuTTY sessions list from Windows to Windows
Transfer PuTTY sessions list from Linux to Linux
Transfer PuTTY sessions list from Windows to Linux
Reference

Transfer PuTTY sessions list from Windows to Windows

PuTTY stores the session information in registry on Windows OS by default.

Export PuTTY sessions list using 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

Export PuTTY sessions list using 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 PuTTY sessions list
Double-click on the *.reg file and accept the import.

Import PuTTY sessions list using cmd.exe require elevated command prompt
regedit /i putty-sessions.reg
regedit /i putty.reg

Import PuTTY sessions list using 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.

More detail at https://pupuweb.com/transfer-migrate-import-export-putty-session-list-windows-linux/

Originally published at pupuweb.com on October 1, 2018.

Written by

Technology Blogger writing about emerging technologies (pupuweb.com) and marketing/lifestyle (paminy.com)

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store