Friday, October 31, 2014

Transfer or Export your PuTTy sessions between different Machines

Below are the steps to be followed
Exporting Your 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 to a file.
 
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:

3. Press "Ctrl+F" to bring up the Find dialog. Enter the name of the key, "SimonTratham" in the "Find what" field, and make sure only "Keys" is checked in the "Look At" section of the dialog. Finally, click "Find Next"

4. We should never change things in the registry unless we are absolutely sure and we know exactly what we doing. When the search completes we'll see the key name for which we're looking.
 

5. Click File->Export. Give your file an appropriate name like, "putty.reg" and click "Save"

6. Save the putty.reg file at some safe location

Importing Your PuTTy Configuration to other machine
To import your saved PuTTy settings on any other Windows computer simply copy the above registry file, right click on the file and click "Merge"

Windows will ask you for confirmation that you want to import this set of registry values. We know this file is safe, because we created it but, you should never import registry information from an unknown source.

That's all we are done. All our putty sessions and configurations have been exported to the new machine now. This is really useful information when upgrading to a new PC. Take my words if you're a Software Engineer you will definitely find this post very useful and to do this few times in your Career.

Usage

If we have a standard list of servers to be connected via SSH, we can create a reference configuration on one machine and "share" it between all the team members.

1 comment:

  1. /**
    * Method to fetch the element at a given index in a Set
    * @param sortedTenorSet
    * @param index
    * @return the element present at the given index in a Set
    * @throws Exception
    */
    public static T getSetElementAt(Set set, int index) throws Exception{
    if(set == null || set.size()==0){
    throw new Exception("Set Cannot be Null or Empty");
    }
    if(index < 0){
    throw new Exception("Index should be greater than equal to 1");
    }
    if(index >= set.size()){
    throw new Exception("Index should be less than the size of the set (Index Starts from Zero)");
    }
    ArrayList list = new ArrayList(set);
    return list.get(index);
    }

    ReplyDelete