<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META content="MSHTML 5.50.4616.200" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2><SPAN class=139222612-28062002>I am a test
engineer, testing SSH server implementation of SSH into one of our
switches.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><SPAN class=139222612-28062002><FONT face=Arial size=2>How can I
automate the login and logout of an SSH client from the command
line?</FONT></SPAN></DIV>
<DIV><SPAN class=139222612-28062002><FONT face=Arial size=2>I have in a script
file the following, but I get prompted for the password.</FONT></SPAN></DIV>
<DIV><SPAN class=139222612-28062002><FONT face=Arial size=2>How can I automate
the password and the exit.</FONT></SPAN></DIV>
<DIV><SPAN class=139222612-28062002><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=139222612-28062002><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=139222612-28062002><FONT face=Arial size=2>ssh2 -l $1
$2 (ssh2 -l <username> <host ip>)</FONT></SPAN></DIV>
<DIV><SPAN class=139222612-28062002><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=139222612-28062002><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=139222612-28062002><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><FONT face=Arial size=2>Theresa C. Karpowicz</FONT></DIV>
<DIV><FONT face=Arial size=2>Software Engineer</FONT><BR clear=all></DIV>
<DIV class=Section1>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 8pt; FONT-FAMILY: Verdana, Helvetica, Arial, sans-serif">Enterasys
Networks<BR>Phone: (800) 332-9401 x41263<BR>Email: terryk<A
href="mailto:terryk@enterasys.com">@enterasys.com</A><BR>www:
<A
href="http://www.enterasys.com/">http://www.enterasys.com/</A><BR></SPAN></P></DIV>
<DIV> </DIV></BODY></HTML>