Using PuTTy on Windows
A tip for maximizing your efficiency with PuTTy on Windows.
I use Windows XP on my desktop workstations at home (Because I’m lazy) and at work (Because I have to), so my primary way of interfacing with Unix servers is through PuTTy and it’s tools. I have at least one terminal window open at any time of the day, so you may say that PuTTy is my most frequently used application ever. During the course of using PuTTy, I’ve been fed up with having to double-click on the putty icon, type the server name, then type my user name and then password. There has to be a more efficient way, I thought.
After experimenting a bit, I realized that putty takes roughly the same command line arguments as your run-of-the-mill ssh client on *nix, so I set it up to be as fast as when invoking ssh in a command line. Here is how you take advantage of that.
Walkthrough:
First, we’re going to set up your $PATH in Windows so that you can exec binaries from the PuTTY install directory.
- Left-click on My Computer
- Select “Properties”
- Go to the “Advanced” tab
- Click “Environment Variables” button
- Scroll down to “Path” variable in “System Variables” field
- Double-click “Path” variable
- Append your PuTTy install directory to the “Variable value” field, for example “;C:\Program Files\PuTTy” to the end of the line. Remember the colon first – It’s important. There’s probably a better way of doing this, but I’ll correct that later.
- Apply settings, get back to desktop.
Now we’re done with all of the configuration. What we’ve done, is to add the putty install directory to the places where Windows searches for executable files when you invoke them by name alone. This principle is exactly the same as in any *nix, except that Microsoft somehow decided a GUI was a good way to do this.
The whole point of this article is that the way I launch putty on my system, is type WIN+R and write “putty username@server.tld”. Now all that is needed for me, is to type my password – or gain instant access if I’m using key-based authentication (More about that in a later post).
Enjoy!
October 11th, 2007 at 08:48
At work I also use PuTTy, because I’m lazy, and it has become a habit (and old habits die hard, right?) – there is no logical explanation to why I don’t use Cygwin or find some binary distribution of Openssh for win32.
If I could kill my habit of using PuTTy in favor of Openssh, I definitely would.
October 17th, 2007 at 01:43
You should probably investigate the use of Pageant. Type in your password once at boot and it lets you keep a short list of servers to login to under the context menu.
Might end up faster than your Win+R and typing…
Putty+Pageant FTW!
October 17th, 2007 at 08:05
I do use pageant, and the combination of my trick and pageant is the fastest in the world :)
December 26th, 2007 at 08:19
hey i install putty through ur method..but i can’t…when i was install putty msg came:network connection time out..while ping is also running..plz help me…
December 26th, 2007 at 17:32
Hi star,
Are you really sure you need putty?
December 27th, 2007 at 07:51
ya..i need putty install..
December 27th, 2007 at 07:51
What do you need it for? :)