PuTTY Auto Login Macro – PuTTY Connection Manager

Automatic Login or Login Macro function – Have you ever wanted to make the PuTTY login session automatic?

PuTTY is a great free telnet ssh client and I wouldn’t trade with any other client. But it lacks of this minor function that I really want – Automatic login.

Maybe the automatic login is not a big deal. You can just type in the userid and the password each time you log in to the development server . But if you do that regularly everyday, opening several times throughout the whole day, you would understand and agree with my little wish.

So I been looking for the solution , going through the every results of the Google search.

And here is the great helper application that can do automatic login macro!
PuTTY Connection Manager (http://puttycm.free.fr/) is the great .NET 2.0 application that can do the automatic login. Moreover, it supports tabbed windows just like the Firefox does it. Also it has quick connection menu bar that you just type in the address and connect which can be also useful.

Features

  • Tabs and dockable windows for PuTTY instances.
  • Able to load the profiles created from PuTTY.
  • Login macro – You can define Userid and Password and extra commands to execute after login.

Requirements

It can be little confusing when you first use the software and to use that Login Macro. By default the PuTTY CM shows existing PuTTY Session profiles in the TreeView located in the right pane. Don’t be fooled, you cannot set Login Macro with the existing PuTTY Session profiles. You will need to create a new database to do that.

Configuration Dialog

  1. Create a new database from File menu.
  2. You will see the newly created database icon in the right pane, above the PuTTY Session item. Copy the profile you want to set Login macro from the PuTTY Sessions and paste into the new database you just created. You can use traditional ctrl+C and ctrl+V shortcut.
  3. Right mouse click on the newly created item under the database and select Configuration.
  4. A new window dialog will show up with the same connection information as the original PuTTY profile. Check on the “Enable Login Macro Mode”.
  5. Select “Login Macro” in the left TreeView and you will be able to define the userid ,password, timeout seconds, and post login commands.
  6. After inputting data, click on the OK button and connect by double clicking the item.

Also, don’t forget to save your database settings, so you can use the settings later on.

Come visit again for more information on PuTTY Automation.

Read More

PuTTY: Exporting Profile Data for migration

I was using the PuTTY with several profiles stored and was happy with it. One day, I got this new labtop and decided to migrate whole desktop system to this new labtop.

But for PuTTY,there was no menu for the profile export. So I spent some time to find out how to do it.

The solution was posted in the FAQ of the PuTTY Homepage.

A.5.2 Where does PuTTY store its data?

On Windows, PuTTY stores most of its data (saved sessions, SSH host keys) in the Registry. The precise location is

HKEY_CURRENT_USER\Software\SimonTatham\PuTTY

Alright, you can extract Registry data by using regedit. Open regedit and browse the path in the left treeview upto HKEY_CURRENT_USER\Software\SimonTatham\PuTTY

Once you highlight the PuTTY node, click right mouse button and select the ‘Export’ Menu. A new Save Dialog window will be shown and you will be able to save the information into a file.

Export PuTTY Profile data from the Registry

After you copy the data file (*.reg) to the new computer, you can register it to registry by simply double clicking on the file.

Updated : 20070629
Here is a better way to do it

Create a batch file that executes regedit.

regedit /ea putty.reg HKEY_CURRENT_USER\Software\SimonTatham\PuTTY

Run it by double clicking. Then you will get putty.reg.

Then you can send it to your Gmail account and download the file from any other computer connected to the Internet and import it by double clicking again.

And here is the batch file if you are lazy enough to download one instead of creating one by yourself.
http://www.neox.net/w/wp-content/data/putty_export.bat

Read More