How to Transfer PuTTY Sessions To Another Windows Machine

by Vivek Gite on September 9, 2008 · 5 comments

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.

This article was written by Ramesh Natarajan. At the The Geek Stuff blog he shares his knowledge and experience on Linux and other Geeky stuff. He has more than 15 years of experience in IT industry and has performed very intensive work on Linux system administration, DBA, Hardware and Storage. nixCraft welcomes readers' tips / howtos.

Featured Articles:

Share this with other sys admins!
Facebook it - Tweet it - Print it -

We're here to help you make the most of sysadmin work. So, subscribe!

{ 5 comments… read them below or add one }

1 ffk September 9, 2008

Don’t forget about x64 – the registry path is different!

Reply

2 dot22 September 10, 2008
3 Sacramento Photographer June 2, 2010

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 :)

Reply

4 User User March 17, 2011

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…

Reply

5 Ian June 22, 2011

What is the regedit command line to import/add the .reg file, rather than using the windows gui as described?

Reply

Leave a Comment

You can use these HTML tags and attributes for your code and commands: <strong> <em> <ol> <li> <u> <ul> <blockquote> <pre> <a href="" title="">
What is 3 + 4 ?
Please leave these two fields as-is:
Are you a human being? Solve the simple math so we know that you are a human and not a bot.




Previous post:

Next post: