Computing.Net > Forums > Unix > SSH hangs

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

SSH hangs

Reply to Message Icon

Name: jroberts04
Date: April 25, 2004 at 01:29:19 Pacific
OS: Unix
CPU/Ram: varies
Comment:

Whenever I SSH from a script, the passwd is not transmitted. The script hangs until I manually end the ssh session, and then it completes. What must i do to change this behavior?
Example
SSH -l username routername
wait 2
echo password
wait 2
do something

The prompt for password will appear, but will not echo. I can type my PW in and continue. Then after I end it will echo my password and continue.

Thanks!
Jeff




Sponsored Link
Ads by Google

Response Number 1
Name: Wolfbone
Date: April 25, 2004 at 02:45:36 Pacific
Reply:

You won't get it to work like that - use an expect script (generate it with 'autoexpect -p').


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Unix Forum Home


Sponsored links

Ads by Google


Results for: SSH hangs

SSH and remote execution www.computing.net/answers/unix/ssh-and-remote-execution/4627.html

Monitoring hanging/zombie processes www.computing.net/answers/unix/monitoring-hangingzombie-processes/3354.html

Hangs after entering login www.computing.net/answers/unix/hangs-after-entering-login/3268.html