PuTTY SSH execute command

You can do both tasks (the upload and the command execution) using WinSCP. Use WinSCP script like:option batch abort option confirm off open your_session put %1% call script.sh exit Reference for the call command:Reference for the %1% syntax:You can then run the script like:winscp.exe /console /script=script_path\upload.txt /parameter file_to_upload.dat Actually, you can put a shortcut to the above command to the Windows Explorer's Send To menu, so that you can then just right-click any file and go to the Send To > Upload using WinSCP and Execute Remote Command (=name of the shortcut).For that, go to the folder %USERPROFILE%\SendTo and create a shortcut with the following target:

PuTTY quit command

PuTTY SSH Remote Desktop

PuTTY SSH auto login

PuTTY SSH ProxyCommand

PuTTY SSH execute remote command