49

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

  • 3
    It's not even necessary to have a saved session for that. putty.exe user@host -p 42 and similar options can be used. – grawity Feb 20 '11 at 13:52
67

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"

4

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: http://code.google.com/p/superputty/

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

  • There is no published files for puttycm, or homepages. – Olli Feb 20 '11 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 '11 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.

1

In windows use this target for putty shortcut for save username and password and also load a saved session: "C:\Program Files\PuTTY\putty.exe" -load "your_saved_session" "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.

  • Putting passwords in shortcut isn't a good idea. Type the password in putty window manually. – Biswapriyo Nov 23 '18 at 6:54
  • Yes Biswapriyo, but in educational purposes it is too boring type password many times! – hamid araghi Nov 23 '18 at 7:11
  • Perhaps key authentication would be an alternative to passwords – Ed Heal Dec 13 '18 at 16:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.