without ssh prompt

Wayne Davison wayned at samba.org
Thu Aug 12 18:34:12 GMT 2004

On Thu, Aug 12, 2004 at 05:51:34PM +0800, Jacky Kim wrote:
> 	# echo "rootpasswd" | ssh root at sshsrv

This is an ssh question, so you're better off asking it on the ssh
mailing list.  However, I think you're looking for the ssh-agent
command.  See also the keychain project for a way to maintain an
ssh-agent over multiple logins.

As for why the above command does not work:  ssh not prompt for a
password on standard input, so you can't pipe it a password on stdin
(standard input is being forwarded to the command that it runs on the
remote host).


More information about the rsync mailing list