Re: another expect question



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:
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



.



Relevant Pages

  • Re: How Can I Securely Execute Script on Remote Windows Host?
    ... EXE through the SSH pipe. ... I do not want to login to a remote shell and ... script and get a return code from one command in the script that will ... I don't want to manually login to the remote computer. ...
    (comp.unix.admin)
  • Re: How Can I Securely Execute Script on Remote Windows Host?
    ... EXE through the SSH pipe. ... I do not want to login to a remote shell and ... script and get a return code from one command in the script that will ... I don't want to manually login to the remote computer. ...
    (comp.unix.admin)
  • Re: Massive Application Uninstall
    ... You could write a script, which when executed at login can run the programs ... "uninstall" program, but that's only going to work as good as the uninstall ... You could also "remote" into each machine and uninstall it, ...
    (microsoft.public.windowsxp.setup_deployment)
  • Re: Remote office logon script - Long Delay
    ... Windows IP Configuration ... If I point the User's profile to a script that doesn't contain the ... I do not have WINS configured for the remote site, ... This remote server was built using connect computer script, ...
    (microsoft.public.windows.server.sbs)
  • Re: Remote office logon script - Long Delay
    ... Windows IP Configuration ... If I point the User's profile to a script that doesn't contain the ... I do not have WINS configured for the remote site, ... This remote server was built using connect computer script, ...
    (microsoft.public.windows.server.sbs)