so I use a shortcut to load a session from user/password on default port like so below:
.\putty.exe root@212.83..-pw PASSWORD
I have changed my SSH port on the server from 22, to something else. How can I make that shortcut load on a port too? like Ex: -port 09?
Also, inside a batch file can I make it load a putty session like so above and send a command?
Thanks!
Create a putty profile in a saved session, and then call it from the command line like:
It is possible to put ssh remote commands in the profile (under Connection | SSH).
Specify the port in the profile, or alternatively, use the
-P portcommand-line argument.