Start a putty session from a port label

therefore, I use a shortcut to download the session from user / password to the default port, as shown below:

. \ putty.exe root @ 212.83. . -pw PASSWORD

I changed my SSH port on the server from 22, to something else. How can I do this reduced port load too? for example Ex: -port 09?

Also, inside the batch file, can I make it load the putty session as shown above and send the command?

Thanks!

+4
source share
1 answer

Create a sleeper profile in a saved session, and then call it from the command line, for example:

putty.exe -load my_putty_profile 

You can enter remote ssh commands in the profile (in the Connection | SSH section).

Specify the port in the profile or, alternatively, use the -P port command line argument.

+12
source

Source: https://habr.com/ru/post/1445113/


All Articles