PuTTY: Extreme Makeover Using PuTTY Connection Manager

by Ramesh Natarajan on March 16, 2009

PuTTY LogoThis article is part of the on-going Software For Geeks series.

PuTTY Connection Manager was mentioned in the 12 PuTTY add-ons that we discussed a while back. One of the major missing features in PuTTY is the ability to display multiple sessions in Tabs.

PuTTY CM displays multiple PuTTY sessions in Tabs. In this article, let us review in detail the 5 powerful features of the PuTTY Connection Manager that will make PuTTY more enjoyable.


Download the PuTTY Connection Manager. PuTTY CM is written in C#. You need .NET 2.0. When you install PuTTY CM for the first time, you need to specify the location of the PuTTY executable.

Feature 1: Display Multiple PuTTY Sessions in Tab

If the PuTTY Connection Manager opens the original PuTTY in a separate window, instead of opening as a TAB, please go to Tools -> Options -> Select the check-box “Enable additional timing for PuTTY capture (ms)” -> set the value to 500 ms. This will open the PuTTY window inside the TAB as shown below.

Tabs for PuTTY

Fig: PuTTY sessions in Tabs

Feature 2: Dockable Windows for PuTTY Sessions

Apart from displaying multiple PuTTY sessions in Tabs, PuTTY CM can also show different PuTTY sessions in panels.

In the example below, to move the qa-box PuTTY session to the bottom panel, left-click on the qa-box tab and hold the mouse until it displays the panel symbol (which will be like a Plus symbol) in the middle of the screen. Now move the mouse to the bottom of the plus, which will high-light the bottom portion of the screen indicating that the qa-box session will be moved to the bottom panel.

PuTTY Dockable Windows

Fig: Select the Panel to dock a PuTTY session


Now, release the mouse, which will move the qa-box to the bottom panel as shown below.

Multiple PuTTY Sessions in Panels

Fig: Selected PuTTY session docked in proper panel


Using the similar technique you can move all the PuTTY sessions to different panels as shown below.

PuTTY Sessions in four panels

Fig: Multiple PuTTY Sessions docked appropriately

Feature 3: Encrypted PuTTY Configuration Database

By default, PuTTY session informations are stored in the windows registry, which are not encrypted. If you want to keep the session information (ip-address, session name etc.,) encrypted, you can use the database encryption feature available in the PuTTY CM

  • Download the AES encryption library (pcmcrypt.dll) from PuTTY CM website.
  • Place this file in the PuTTY CM program folder. C:\Program Files\PuTTY Connection Manager
  • Restart the PuTTY CM
  • Go to Tools menu -> Options -> Database -> under the Encryption section, the available algorithms should display “AES Rinjdael Managed” as shown below, indicating that the encryption library is successfully installed.

Enable PuTTY Encryption

Fig: Enable Encryption


Click on File -> New -> Database and enter the appropriate information as shown below to create a secure PuTTY session database. Follow the best practices to create a strong password while choosing the passphrase for the secure database.

  • Database Name: putty-secure-sessions
  • Click on Enable database encryption check-box
  • Select “AES Rinjdael Managed 256 bits”
  • Enter a strong passphrase for the database.
  • Click on ‘Create database’ to create the database as shown below.

Create Encrypted PuTTY Database

Fig: Create Encrypted PuTTY session database

  • Click on File menu -> save database to save the database to a physical file.
  • Now the ‘putty-secure-sessions’ database will be displayed under the Connection manager as shown below

PuTTY Connection Manager Displaying Encrypted Database

Fig: PuTTY Connection Manager displaying Encrypted Session database

  • Right mouse-click on the ‘putty-secure-sessions’ database name -> Click on New -> Click on Connection, to create a new secure PuTTY session.

Feature 4: Automatic PuTTY Session Login

Once you’ve created a secure PuTTY session as mentioned above, you can setup automatic login. i.e you can save the uid/pwd for the individual PuTTY session in the secure database. i.e When you double-click on a particular secure PuTTY session, it will login automatically.

From the putty-secure-sessions database, select a particular PuTTY session, right mouse-click and select Configuration, click on the ‘Enable Macro’ check-box as shown below.

Automatic Login for PuTTY Session

Fig: Enable Login Macro For a PuTTY Session


From the same PuTTY session configuration window, click on the ‘Login Macro’ from the left-side menu and enter the uid/pwd as shown below.

PuTTY Automatic Connection Credentials

Fig: Automatic Login Setup for a PuTTY Session


Now, when you double-click on that particular PuTTY session, it will do the login automatically using the credentials you’ve provided.

Feature 5: PuTTY Session Post-Login Commands

You can also setup post-login command, which will get executed automatically after you login.

The setup of post-login commands is done under the same ‘Login macro’ screen under the ‘Post-login command’ section. Click on ‘Enable post-login commands’ check-box and you can set a total of 5 post login commands as shown below.

PuTTY Session - Execute commands after login

Fig: Execute Commands automatically after login


Apart from the above 5 powerful features, PuTTY Connection Manager have the following features:

  • Ability to select multiple themes
  • Import and Export PuTTY sessions
  • PuTTY CM also comes as standalone executable that can be launched directly from an USB thumb drive.
  • Did I mention that PuTTY Connection Manager is a freeware ?
  • Finally, make sure to read 10 Awesome PuTTY Tips and Tricks You Probably Didn’t Know
Download Free eBook - Linux 101 Hacks

Get free Unix tutorials, tips and tricks straight to your email in-box.

If you enjoyed this article, you might also like..

  1. Turbocharge PuTTY with 12 Powerful Add-Ons – Software for Geeks #3
  2. 10 Awesome PuTTY Tips and Tricks You Probably Didn’t Know
  3. 6 Steps to Secure Your Home Wireless Network
  4. BlackBerry SSH Tutorial: Connect to Unix Server using MidpSSH for Mobile Devices
  5. Midnight Commander (mc) Guide: Powerful Text based File Manager for Unix
  

Vim 101 Hacks Book

{ 2 trackbacks }

The Enterprise Networker
March 18, 2009 at 12:01 pm
Turbocharge PuTTY with 12 Powerful Add-Ons - Software for Geeks #3
June 4, 2009 at 12:51 am

{ 15 comments… read them below or add one }

1 beq March 16, 2009 at 10:21 am

omg… its a really kick-ass connection manager now!

thanks a lot for the article!

2 nicole March 17, 2009 at 7:19 am

Oh, I’ve been waiting years for this change! That’s great! But btw. why “software for geeks”? Putty is something which is absolutely necessary on a pc :) !

3 Dan Vigliotti March 17, 2009 at 8:57 pm

Very nice find!

4 Adam Trickett March 18, 2009 at 6:38 am

NO!!!!!!!!!!!!!!!!!!!

Do not store passwords in a database, encrypted or otherwise. Learn to use SSH properly and use the Putty Agent to store your keys in memory.

Multi tabbed interface is okay, though not strictly necessary but storing passwords is a very bad idea and you shouldn’t be suggesting it.

5 Octávio March 18, 2009 at 9:38 pm

Do you use AES from .NET? The onw with backdoors for MS, NSA, CIA, etc?
Very patriotic! :-)

6 KCDesi March 23, 2009 at 9:41 am

Hi

Thanks for the article. This is a big time saver with my telnet connections to multiple servers.

KCDesi

7 Tiff April 26, 2009 at 5:24 pm

WHat dose PuTTY Connection Manager Accually do ?? is it to spy on someone elses computer like a Keylogger ??

8 raja July 30, 2009 at 12:07 am

hi ,
Thanks for this valuable info.This is very useful for me.

thanks,
Raja K

9 Ramesh Natarajan August 2, 2009 at 5:13 pm

@Beq, @Dan, @KCDesi, @Raja,

I’m glad you found this article very help. I appreciate your comment.

@Nicole,

Yeah. It is not just for “Geeks”, it is for everybody. From a windows user points of view, if you can use command-line and SSH to a unix box, you are a geek. :-)

@Adam, @Octavio,

The encryption feature was mentioned as a FYI for others, if they choose to use it.

@Tiff,

You may want to re-read the article again to figure out what exactly “PuTTY Connection Manager” does. It definitely doesn’t do what you’ve mentioned in your comment.

10 benjamin August 18, 2009 at 6:56 am

Thanks. Just the recipe I need
– tab
– autologin

11 ragu September 23, 2009 at 7:06 pm

Can i save the full session of my telnet of router or other devices using the Putty Connection Manager. I tried but i could not save the telnet session of the routers.

12 kumar October 13, 2009 at 7:56 am

Hi, Thanks for the gr8 tool.

I have a question: Do we have any similar tool to access multiple screens, eg: If i login into Prod: and i want to handle multiple tasks at a time, as a normal process we fo by “ screen ” and ctrl + a “ c ” or screen number.

So in order to manage multiple screens do we have a simillar tool? ?

If yes please let me know , thanks
– Kumar

13 webmaster October 24, 2009 at 2:55 pm

Very cool, I’ve only ever used portaputty on windows due to the security issues.. of windows.. but I need this now, thanks and nice site!

14 geekmaster November 4, 2009 at 11:30 pm

Please do not use the database to store the password, not a safe practice. Ramesh Natarajan, you know better than that. Nice tool, but it may has hidden agenda: ” stealing your password!” so please don’t bla bla bla and cry Ramesh Natarajan, that you are not trying to do that

15 Krishna November 15, 2009 at 8:41 am

Hi,

Thanks for the nice article. I have got one question though.
Is there a way to include the ‘pwd’ in the tab label?

Thanks,
Krishna

Leave a Comment

Previous post:

Next post: