The real neat way to do this is w/ expect, a tcl based shell language.
It talks to the pty and then investigates the receiving lines.
Google.com it, if you like it, I can supply some scripts.
John
--- Philip Mak <[EMAIL PROTECTED]> wrote:
> I'm trying to do:
>
> echo "password" | ssh host -l user
>
> But it still tries to read my password from the terminal. Does anyone have
> a simple solution to make this work?
>
> I'm trying to setup a permanent ssh tunnel between two machines. The
> startup file on one machine will need to open the ssh connection to the
> other machine.
>
> I thought about using public key authentication, but the ssh-keygen on my
> system is broken. I figured it would be easier to just use the password
> rather than trying to reinstall ssh. Does anyone know how I can make the
> above echo command work the way I want it to?
>
=====
John van Vlaanderen
#############################################
# CXN, Inc. Contact: [EMAIL PROTECTED] # #
# Proud Sponsor of Perl/Unix of NY #
# http://puny.vm.com #
#############################################
__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/