A putty shortcut that automatically launches a profile?

50

9

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

C. Ross

Posted 2011-02-20T13:21:42.613

Reputation: 5 284

3It's not even necessary to have a saved session for that. putty.exe user@host -p 42 and similar options can be used. – user1686 – 2011-02-20T13:52:08.830

Answers

71

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"

Siim K

Posted 2011-02-20T13:21:42.613

Reputation: 6 776

1

Thanks, the same grammar to PuTTYtray.

– Weekend – 2018-09-03T12:52:19.950

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:https://github.com/jimradford/superputty

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

Linker3000

Posted 2011-02-20T13:21:42.613

Reputation: 25 670

There is no published files for puttycm, or homepages. – Olli – 2011-02-20T13:43:18.377

Yep - looks like the project has died - can't find the files anywhere. Shame. I have edited the post to reflect this. – Linker3000 – 2011-02-20T16:06:39.010

2

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.

hamid araghi

Posted 2011-02-20T13:21:42.613

Reputation: 121

Putting passwords in shortcut isn't a good idea. Type the password in putty window manually. – Biswapriyo – 2018-11-23T06:54:09.193

Yes Biswapriyo, but in educational purposes it is too boring type password many times! – hamid araghi – 2018-11-23T07:11:06.183

Perhaps key authentication would be an alternative to passwords – Ed Heal – 2018-12-13T16:26:32.343

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.

angularsen

Posted 2011-02-20T13:21:42.613

Reputation: 113