I have had a few times my system crashed on me and I had to re-install Windows. One of the software that I use a lot is Putty. However, migration of configuration information is a PITA in Putty because the data is stored in Windows registry. The problem is worst when you are unable to boot up from your old windows to access the registry. There are a few alternative for this such as Putty manager and Putty mods that store the config in a file. However, I still find myself falling back to using original Putty due to me being accustomed to it. So here is a simple tutorial on how to extract your Putty configuration from an old Windows.
- your registry file must still be accessible (located in user profiles)
Steps on restoring putty configurations:
- On your new Windows run putty once. Then create a dummy configuration server. This is make Putty create a new configuration entry in registry.
- Close putty.
- Use windows run command (Windows Key + r) to run “regedit“.
- Once in registry editor, highlight “HKEY_LOCAL_MACHINE“
- Then click File -> Load Hive…
- A dialog box will ask for the registry file to open. Explore to your old user profile folder. For eg, “C:\Windows.old\Users\myusername\NTUSER.DAT“
- You will be prompted a name for this key name. Just put anything you like. In this example, we use “old-registry“.
- You can now expand HKEY_LOCAL_MACHINE and you will see the key file you just opened under the label you put in step 7.
- Expand as such, HKEY_LOCAL_MACHINE\old-registry\Software\SimonTatham
- Now highlight SimonTatham on your left hand side of regedit and right-click then choose export.
- Export this registry entry to a file name and location of your choice. I put it in desktop and call it “putty-config“. This file will have the extension of .reg. But those who didn’t enable view extensions will not see it. That is fine.
- Now you can unload old-registry from your hive. Make sure “old-registry” is highlighted. Select File -> Unload Hive…
- Once you have unload the hive, close regedit.
- Use notepad to open up the registry file you just saved. For me, it’s “putty-config“.
- Use replace “HKEY_LOCAL_MACHINE\old-registry” with “HKEY_CURRENT_USER“. Click Replace All.
- Now save the file and close notepad.
- Right click on the “putty-config” file and select “Merge“. This will merge the registry into your new registry.
- Open up Putty and voila!!! Your old configurations are all back in Putty including all the session keys.