putty host1 -l root -pw
I use it to the server which are build frequently. The problem with the server built frequently is that you cannot exchange keys as the keys will be deleted when the server is built again.
Here is the batch script for windows lover
@echo off
if %1 == myserver goto myserver
goto default
:myserver
start C:\putty -ssh mercury -l
exit
:default
start C:\putty -ssh %1 -l root -pw
exit
ssh tek hain ... telnet key liye kaise karna hain?????????!!!
ReplyDeletedid the default settings in the putty helps...
ReplyDeleteI have it for ssh right now...
If you are using a linux box then sshpass can also be used for auto SSH.
ReplyDeleteThanks Jay. Help me a lot. One question: Can I add to this code batch file which will be executed as soon as I login to PuTTY? You can reply to me to kompasha@yahoo.com
ReplyDeleteYes I use the command in a batch file. Here is what I do.
ReplyDeleteI have created a batch file named s.bat in my windows path (C:\Windows or whatever on your system)
Contents of batch file
----------------------------------------------
start putty %1 -l root -pw NextGen
----------------------------------------------
Let me know if you have any questions?