Thursday 15 January 2015

IT Technology: PUTTY Auto-Login and Send Command to Remote Server

For PUTTY SSH connection, to auto-login, you can simply create a shortcut and pass in these parameters.
1.  Create a shortcut on the desktop to putty.exe
2.  Rename the shortcut to PuTTY - server.com
3.  Right-click shortcut and choose Properties
4.  Modify the target similar to: "C:\Program Files\PuTTY\putty.exe" user@server.com -pw password
5.  Click OK

To send a command to the remote server, you may perform the steps below:
1.  Create a text file containing the commands you like to send to the remote server
2.  Add the following parameters at the end of the target: -m <path>\<filename>
For example, "C:\Program Files\PuTTY\putty.exe" user@server.com -pw password -m C:\Temp\Command.txt

No comments:

Post a Comment