Calling SSH from Expect - URGENT
Corinna Vinschen
cygwin@cygwin.com
Thu Jun 14 12:19:00 GMT 2001
On Thu, Jun 14, 2001 at 08:48:22PM +0200, Andrew Markebo wrote:
> Could it be that ssh doesn't use stdin or something for reading the
> password..
Yeah, it explicitely opens /dev/tty and switches to echo off.
BTW, I don't understand why you need expect for entering the
passphrase. That's exactly the purpose of ssh-agent, ssh-add:
$ ssh-agent bash
bash-2.05$ ssh-add
Enter passphrase ...
bash-2.05$ ssh -l username -p 1010 hostname "ls -l"
<...do whatever you want to do with ssh without the need
to enter the passphrase again...>
bash-2.05$ exit
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Developer mailto:cygwin@cygwin.com
Red Hat, Inc.
--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple
More information about the Cygwin
mailing list