delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/06/14/16:10:53

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
To: "Simha, Shuba" <shuba_simha AT merck DOT com>
Cc: cygwin AT cygwin DOT com
Subject: Re: Calling SSH from Expect - URGENT
References: <A33B09832F4CD411974400508BCF8F2B03438599 AT uswsmx18 DOT merck DOT com>
From: Andrew Markebo <flognat AT flognat DOT myip DOT org>
Date: 14 Jun 2001 22:09:19 +0200
In-Reply-To: <A33B09832F4CD411974400508BCF8F2B03438599@uswsmx18.merck.com>
Message-ID: <m38ziuzuvk.fsf@localhost.localdomain>
Lines: 27
User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7
MIME-Version: 1.0

/ "Simha, Shuba" <shuba_simha AT merck DOT com> wrote:
| -----Original Message-----
| From: Andrew Markebo [mailto:flognat AT flognat DOT myip DOT org]
| Sent: Thursday, June 14, 2001 2:48 PM
| 
| Could it be that ssh doesn't use stdin or something for reading the
| password..
| 
| An alternative way, of not needing to enter the password is to add
| your public key to the authorized_keys and/or authorized_keys2 files on
| the receiving host.
| SHUBA : INFACT I TRIED THE SAME PROCESS WITH AN EMPTY PASSPHRASE (ie, Expect
| script without the 'expect' and 'send' statements), AND IT WORKS !!! BUT MY
| TEAM LEAD DOES NOT WANT IT TO WORK WITH AN EMPTY PASSPHRASE..

Ok we now know that the problem lies in ssh, not in expect, neither
cygwin. Time for you to start digging in the ssh-sourcecode or
similar, as Corinna said, you just need to modify it so it reads from
stdin instead of /dev/tty or whatever.. 

Another alternative might be using authorized keys as I mentioned,
thats a little stronger than 'no password'. 

ssh-agent might also be interesting.. 

        /Andy


--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019