This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Calling SSH from Expect - URGENT


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]