This is an user contributed article.
PuTTY is a terminal emulator application which can act as a client for the SSH, Telnet, rlogin, and raw TCP computing protocols. You can use putty for remote login or to control your router connected via serial devices.
By default PuTTY stores the session information in the registry on Windows machine. If you have several PuTTY sessions stored in one laptop and would like to transfer those sessions to another laptop, you need to transfer HKEY_CURRENT_USER\Software\SimonTatham registry key and value as explained below:
Export the PuTTY registry key on source windows machine
Click on Start -> Run -> and enter the following regedit command in the run dialog box, which will place the PuTTY registry key and value on your desktop in the putty-registry.reg file. Please note that the name of the registry key (Simon Thatham) is the author of PuTTY.
regedit /e "%userprofile%\desktop\putty-registry.reg" HKEY_CURRENT_USER\Software\Simontatham
You can also launch the registry and interactively export the registry key value as shown below. Click on Start -> Run -> regedit -> Click File menu -> Click Export menu-item -> Enter HKEY_CURRENT_USER\Software\Simontatham in the "Selected branch" -> Save the putty-registry.reg to your desktop.

Import the PuTTY registry key on destination windows machine
Transfer the putty-registry.reg to the destination Windows machine. Right click on the .reg file and select Merge as shown below. This will display a confirmation message: Are you sure you want to add the information in putty-registry.reg to registry?. Click on 'Yes' to accept this message.

Launch the putty to verify the new sessions are transferred successfully. The registry key merge will not delete the previous PuTTY sessions. Instead, it will merge the entries to the existing PuTTY sessions on the destination windows machine.
You can also import the registry key and value interactively: Click on Start -> Run -> regedit -> Click File menu -> Click Import menu-item ->select the putty-registry.reg -> click on Import, to import the PuTTY sessions to the destination windows machine.
Turbocharge PuTTY with 12 Powerful Add-Ons explains about some modified versions of the PuTTY that stores the session information in a file instead of Windows registry.
You should follow me on twitter here or grab rss feed to keep track of new changes.
Featured Articles:
- 30 Handy Bash Shell Aliases For Linux / Unix / Mac OS X
- Top 30 Nmap Command Examples For Sys/Network Admins
- 25 PHP Security Best Practices For Sys Admins
- 20 Linux System Monitoring Tools Every SysAdmin Should Know
- 20 Linux Server Hardening Security Tips
- Linux: 20 Iptables Examples For New SysAdmins
- Top 20 OpenSSH Server Best Security Practices
- Top 20 Nginx WebServer Best Security Practices
- 20 Examples: Make Sure Unix / Linux Configuration Files Are Free From Syntax Errors
- 15 Greatest Open Source Terminal Applications Of 2012

- My 10 UNIX Command Line Mistakes
- Top 10 Open Source Web-Based Project Management Software
- Top 5 Email Client For Linux, Mac OS X, and Windows Users
- The Novice Guide To Buying A Linux Laptop













{ 11 comments… read them below or add one }
Don’t forget about x64 – the registry path is different!
I prefer to use a portable putty
http://portableapps.com/apps/internet/putty_portable
Unfortunately the command line tool doesn’t work in Vista 64 bit. The data is still there, and simple to export though. The path on my Vista machine ended up being:
HKEY_USERS\S-1-5-21-1874068349-1688302950-636360099-36883\Software\SimonTatham\PuTTY\Sessions
I’d recommend just using the find utility and searching for SimonTatham :)
If you open the file putty.conf from Program files (x86) directory, you will see:
;Xming putty.conf
sshk&sess=%APPDATA%\Portable PuTTY
It is the place to find sessions and ssh’s…
What is the regedit command line to import/add the .reg file, rather than using the windows gui as described?
All session transferred successfully with no issue.. Thanks a lot
Just had a “new” windows baseline (WinXP) installed on my machine at work, and using putty .60. I exported and imported my putty registry settings using the regedit GUI as shown above, and I can see them in the registry HKEY_CURRENT_USER => software => SimonTatham => Putty => Sessions, but when I run the putty.exe, there are no saved sessions. Anyone know how to make them appear? Thanks in advance…
Hi,
I’d need a bit help to create a putty entries.
I have to connect to a lots of different databases(on different hosts) and i like to store them. (database name -> host name). Only type the database name to the host field and it connect to the right host.
How could i sotre the database names and merge them to the appropriate host names?
Thank You in advnace
Pete
On x64, regedit usually runs as Administrator (or whichever privileged user you configured), so HKEY_CURRENT_USER does not represent the user you are logged in with (unless it IS Administrator of course).
To export or import my putty registry files, I use the REG command line (which does not require UAC elevation):
C:\somewhere\on\a\host> REG EXPORT HKCU\Software\SimonTatham\PuTTY\Sessions putty_sessions.reg
C:\on\another\host> REG IMPORT putty_sessions.reg
Thanks it helps for me
thanks lot