Thursday 19 June 2014

PuTTY saved session - how to migrate to another computer or restore after system failure EXPLAINED!

OK, so you decided that is time to finally format your Windows computer! Why you are doing this, is not the point of are topic! If you are administrating more than 5 servers, then there is a good chance that you have saved your putty sessions. In case that you do not know what this means, it means that you have saved IP or hostname of server, settings considering X11 and all other settings that can be set in putty under specific name that you find appropriate so that you do not have to set up these settings every time you want to connect on that server! So next time that you want to connect, you just load these settings by clicking on name of that configuration and click LOAD!

Imagine that you have more then 5 servers! So after formatting Windows system, you OS is blank and when you download putty  there is no your saved putty sessions. How to restore your saved sessions?
If you are reading this after you formatted your computer and wondering how to restore saved session, then your answer is time machine :) ! In case that you do not have time machine, then you are doomed and you will have to manually save you putty session, again! This is usually very, very boring!

So, be smart and do this before formatting or just in case that your system crashes beyond repair. You need to save you putty configuration!
Putty stores its settings in the Windows registry. To save a backup of your Putty settings, you'll need to export this registry key(HKEY_CURRENT_USER\Software\SimonTatham) to a file.

You may wonder why SimonTatham?

From Wikipedia

Simon Tatham is an English program mer known primarily for creating and maintaining PuTTY, a free software implementation of Telnet and SSH clients for Unix and Windows API platforms, along with an xterm terminal emulator

1. Click Start->Run and type "RegEdt32" in the "Open" dialog. Click "Ok"



2. One RegEdt32 starts, you'll be presented with an application which looks something like:


Search for HKEY_CURRENT_USER\Software\SimonTatham
Once you find it, right click on it and click on Export!


You will be asked where to save this .reg file. It is wise to store it in some save(save from hardware failure) place like cloud,etc.

Ok, you saved your putty configuration!!!

How to restore it?

Right click on that saved .reg. file and click on Merge! This will make necessary changes/restores in registry!

Now when you start putty, you will have your save sessions!!!





No comments: