4
If you just want to skip PuTTY configuration/login window:
putty.exe user@host -P port
Or, to open your existing stored session:
putty.exe -load "stored session name"
If you are looking for a console SSH terminal, use Plink from PuTTY package.
It has the same command-line syntax as PuTTY and similar to OpenSSH ssh
:
plink user@example.com -P port
(or again, you can use -load
)
Or use OpenSSH ssh
itself. There's now an official Microsoft build of OpenSSH for Windows.
On Windows 10 version 1803 or newer, you already have OpenSSH built-in. On older versions of Windows 10, it can be installed as an optional Windows feature. On older version of Windows, you can just extract the client-side tools from a .zip (latest release), no installation is need.
3
You can always save the definitions, and in recent versions of Windows (assumed), you can open these from the start menu.
Try Putty -load *savedentry*
+1. It's a shame this hasn't been chosen as the Answer as it seems universal across the connection types. Exactly what I was looking for to open a Serial terminal in one click. – CharlieHanson – 2018-07-09T18:49:51.357
3
I see there's an accepted answer already, but if you're using Windows 10, the Windows Subsystem for Linux (WSL) is a great alternative. You can put aliases in your .bashrc file, or you could reference the command history to reopen a previous connection. You can also install tmux and have several connections open at once.
I was forgetting bash. – mckenzm – 2018-01-29T20:17:57.167
1
Use the following command.
Putty -load "Saved Session's Name"
Example: Putty -load "Default Settings"
Example: C:\putty.exe -load "Default Settings"
https://www.ssh.com/ssh/putty/putty-manuals/0.68/Chapter3.html#using-cmdline-load
Putty does not come with any of that. It’s a terminal emulator. – Daniel B – 2018-01-29T19:04:25.730