70

How can I create a PuTTY shortcut that automatically launches a profile, so I can dial into a specific computer with one click?

1
  • 5
    It's not even necessary to have a saved session for that. putty.exe user@host -p 42 and similar options can be used. Feb 20, 2011 at 13:52

4 Answers 4

95

From the Putty FAQ:

To run a PuTTY session saved under the name ‘mysession’, create a Windows shortcut that invokes PuTTY with a command line like \path\name\to\putty.exe -load "mysession"

---EDIT---

In Windows 7, the shortcut has to be in quotes like this:

"\path\name\to\putty.exe" -load "mysession"

1
6

In windows use this target for putty shortcut, for save username and password. Then load a saved session or add to Task Manager:
"C:\Program Files\PuTTY\putty.exe" -load "your_saved_session" -l "username@your_server_address" -pw "your_password"

  1. right click on putty shortcut
  2. fill out "target" field of shortcut using above code (alter to your own properties).
  3. click save button.

After that when you click on PuTTy shortcut it loads your session automatically using given username and password.

UPDATE: If you specified server ip or hostname in your selected putty profile you should not put your server address (..@server_address) in windows shortcut; correct shortcut is now: "C:\Program Files\PuTTY\putty.exe" -load "your_saved_session" -l "username" -pw "your_password"

6
  • 1
    Putting passwords in shortcut isn't a good idea. Type the password in putty window manually.
    – Biswapriyo
    Nov 23, 2018 at 6:54
  • Yes Biswapriyo, but in educational purposes it is too boring type password many times! Nov 23, 2018 at 7:11
  • Perhaps key authentication would be an alternative to passwords
    – Ed Heal
    Dec 13, 2018 at 16:26
  • 1
    In my case, I had to do it without @your_server_address as -l "username" -pw "your_password". Nov 18, 2021 at 8:46
  • Yes it seems to be a change in new versions of putty. @LalitFauzdar Sep 30, 2022 at 19:11
5

I had referred to Putty Connection Manager as a useful addon, giving one click connects and tabbed windows, but it seems the app is dead and all the files removed from the hosting site.

While checking into this, I found a fork of the project, called superputty (see below) and a reference to KiTTY - a Win32 native version of PuTTY with extra features so here you go:

Superputty:https://github.com/jimradford/superputty

KiTTY: http://kitty.9bis.com/

2
  • There is no published files for puttycm, or homepages.
    – Olli
    Feb 20, 2011 at 13:43
  • Yep - looks like the project has died - can't find the files anywhere. Shame. I have edited the post to reflect this.
    – Linker3000
    Feb 20, 2011 at 16:06
1

PuttyTray is an alternative where you get sessions in the Windows quickjump list if you pin it to the taskbar. Mine is pinned at position 9, so I type Win+Alt+9 to show list of sessions and arrow key to select, then enter to launch.

It also has a bunch of other nice to have features.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .