> I tried doing someting like:
> 
> echo "password" | ssh -l user  site
> 
> but it doesn't seem to read the password..

Ignoring the security risks of doing something like this, it will fail the
first time you connect to a site because your password will be taken as the
answer to the question of whether or not to accept the site's key.  It may
also matter what version of ssh you are using and what operating system.  PC
programs, at least, can read the keyboard in ways which would not see piped
input.

Reply via email to