Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Date: Thu, 12 Apr 2001 12:41:40 -0400 (EDT) From: Antonio Bemfica To: SS cc: cygwin AT cygwin DOT com Subject: Re: SSH, Expect & Cygwin In-Reply-To: <20010412154842.5452.qmail@web5101.mail.yahoo.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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: > > #!/usr/bin/expect > 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). A. -- Want to unsubscribe from this list? Check out: http://cygwin.com/ml/#unsubscribe-simple