so I use a shortcut to load a session from user/password on default port like so below:
.\putty.exe [email protected]..-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:
putty.exe -load my_putty_profile
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 port
command-line argument.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With