The much awaited batch file to have passwordless authentication:@echo offrem Batch file to access different linux servers using puttyif "srv1"=="%1" GOTO srv1if "srv2"=="%1" GOTO srv2start putty -ssh a.b..%1 -l root -pw passwdEXIT:srv1start putty @srv1EXIT:srv2start putty -ssh a.b.c.d -l userid -pw password
A better way is to use putty command line options combined with HTA it is terrific.
The much awaited batch file to have passwordless authentication:
ReplyDelete@echo off
rem Batch file to access different linux servers using putty
if "srv1"=="%1" GOTO srv1
if "srv2"=="%1" GOTO srv2
start putty -ssh a.b..%1 -l root -pw passwd
EXIT
:srv1
start putty @srv1
EXIT
:srv2
start putty -ssh a.b.c.d -l userid -pw password
A better way is to use putty command line options combined with HTA it is terrific.
ReplyDelete