Re: another expect question
- From: "gbarn" <gbarnette@xxxxxxxxxxxx>
- Date: Fri, 31 Mar 2006 12:24:12 -0700
The login is successful with this script and with the original script.
When typing in the password manually, the login command on the remote
machine turns keyboard echo off. That way, no password is seen on the
screen.
With the script, however, I and "sending" the password the remote system so
it also appears on the screen. If someone is looking, they can see the
password. Does that help ??
"Uwe Klein" <uwe_klein_habertwedt@xxxxxxxxxxx> wrote in message
news:jnb0g3-lef.ln1@xxxxxxxxxxxxxxxxxxxxxxx
gbarn wrote:printed
The original script as presented worked fine.
However, I have made the suggested changes and the password is still
to my screen. The script is now:---------------^-mind the space
log_user 0
spawn ssh -l root kull
expect "word: "
send "password\r"
expect -re ".*"
interact
is the login successfull?
what happens with the password if you log in manually?
uwe
.
- Follow-Ups:
- Re: another expect question
- From: Uwe Klein
- Re: another expect question
- References:
- another expect question
- From: gbarn
- Re: another expect question
- From: Uwe Klein
- Re: another expect question
- From: gbarn
- Re: another expect question
- From: Uwe Klein
- Re: another expect question
- From: gbarn
- Re: another expect question
- From: Uwe Klein
- another expect question
- Prev by Date: Re: another expect question
- Next by Date: repost....tuning of "send" output to screen in Expect script
- Previous by thread: Re: another expect question
- Next by thread: Re: another expect question
- Index(es):
Relevant Pages
|