Re: another expect question
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.tcl archive

Re: another expect question

From: Uwe Klein <uwe_klein_habertwedt@t-online.de>
Date: Fri Mar 31 2006 - 21:15:31 CEST

gbarn wrote:
> The original script as presented worked fine.
>
> However, I have made the suggested changes and the password is still printed
> to my screen. The script is now:
>
> log_user 0
> spawn ssh -l root kull
> expect "word: "
---------------^-mind the space
> send "password\r"
> expect -re ".*"
> interact

is the login successfull?

what happens with the password if you log in manually?

uwe
Received on Sun Apr 30 02:55:28 2006