This is the mail archive of the
mailing list for the Cygwin project.
Re: SSH, Expect & Cygwin
- To: SS <fully_technical at yahoo dot com>
- Subject: Re: SSH, Expect & Cygwin
- From: Antonio Bemfica <antonio at axolotl dot ic dot gc dot ca>
- Date: Thu, 12 Apr 2001 12:41:40 -0400 (EDT)
- cc: cygwin at cygwin dot com
On Thu, 12 Apr 2001, SS wrote:
> However, I was suggested to try with an EMPTY PASSPHRASE, & that works
> fine from the command line as well as from the Expect script! the script
> is as below:
> spawn /bin/ssh -l myusername -p myport myhostname.abc.com "ls -l"
> expect eof
> But I dont want to do that because the whole idea od using SSH is lost
> if I am using an empty passphrase.
Not really, I don't think. Authentication still takes place based on the
user's keys. This should be pretty secure as long as the location of the
keys is not world-readable (ssh will fail to work if it is, I think) and
the machine where you coming from has not been compromised.
I use this method to run pre-backup scripts on NT and Unix hosts as user
operator (you don't need expect at all).
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple