I want to make a batch file or similar to operate putty.exe through my Windows 7 machine and do following :
open putty.exe(which is on linux(host) system)
enter host
enter user in "login as"
enter password in "password"
and when logged in change directory to /opt
Please help
@echo off
set /p host=enter host
set /p user=set user
putty.exe -ssh %user%@%host%
You cant pass password directly to putty.