How can I create a PuTTY shortcut that automatically launches a profile, so I can dial into a specific computer with one click?
4 Answers
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"
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"
- right click on putty shortcut
- fill out "target" field of shortcut using above code (alter to your own properties).
- 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"
-
1Putting passwords in shortcut isn't a good idea. Type the password in putty window manually. Commented Nov 23, 2018 at 6:54
-
Yes Biswapriyo, but in educational purposes it is too boring type password many times! Commented Nov 23, 2018 at 7:11
-
Perhaps key authentication would be an alternative to passwords– Ed HealCommented Dec 13, 2018 at 16:26
-
1In my case, I had to do it without
@your_server_address
as-l "username" -pw "your_password"
. Commented Nov 18, 2021 at 8:46 -
Yes it seems to be a change in new versions of putty. @LalitFauzdar Commented Sep 30, 2022 at 19:11
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/
-
-
Yep - looks like the project has died - can't find the files anywhere. Shame. I have edited the post to reflect this. Commented Feb 20, 2011 at 16:06
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.
putty.exe user@host -p 42
and similar options can be used.