SSH to a Computer

Version: 2.8.37
Creator Name: mc
Date Created: 2019-04-22
Date Modified: 2019-07-18
Scripting language: BAT
Download Count: 46

Location of putty.exe, Computer IP and Username must be provided. Password is optional and a better recommendation is use a authorized key saved in putty's default settings ( You can download from
Tags: $OperatingSystem,$Name,$OperatingSystem=*Linux*,$IPAddresses=.*

The Script

cd %1

set argC=0
for %%x in (%*) do Set /A argC+=1

IF [%argC%] EQU [3]  (
       ECHO Password not provided - recommended to use an authorized key in the default settings for Putty
       start putty.exe %2@%3

       ECHO 4th parameter detected, using password as %3 and IP as %4
       start putty.exe %2@%4  -pw %3