auto login and logout

Carl Brewer carl at bl.echidna.id.au
Sat Jun 29 01:25:05 EST 2002


Brian Hamon wrote:
> If the switches support RSA Authentication, run an agent on the client 
> side and use it. Since most ssh-enabled appliances seem to implement 
> only password-based authentication, you must resort to other (less 
> secure) means.
> 
> PuTTY allows the password to be passed on the command line (plink.exe).
> 
> If you must use OpenSSH, the only thing left to do is to modify the 
> source code to allow OpenSSH to write the password prompt over stdout 
> and read the password from stdin. This bypasses some security measures 
> in OpenSSH, so be sure to mark your changed version appropriately. With 
> this change, you can parse the child-to-parent pipe for the password 
> prompt, and send the cleartext password down the parent-to-child pipe.

Insane.  Use expect.


> At 07:32 AM 6/28/2002, Karpowicz, Theresa wrote:
> 
>> I am a test engineer, testing SSH server implementation of SSH into 
>> one of our switches.
>>
>>
>> How can I  automate the login and logout of an SSH client from the 
>> command line?
>> I have in a script file the following, but I get prompted for the 
>> password.
>> How can I automate the password and the exit.
>>
>>
>> ssh2 -l $1 $2   (ssh2 -l <username> <host ip>)
>>
>>
>>
>> Theresa C. Karpowicz
>> Software Engineer
>>
>> Enterasys Networks
>> Phone:  (800) 332-9401 x41263
>> Email:   terryk<mailto:terryk at enterasys.com>@enterasys.com
>> www:    <http://www.enterasys.com/>http://www.enterasys.com/
>>
> 
> _______________________________________________
> openssh-unix-dev at mindrot.org mailing list
> http://www.mindrot.org/mailman/listinfo/openssh-unix-dev





More information about the openssh-unix-dev mailing list