Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com> List-Archive: <http://sourceware.org/ml/cygwin/> List-Post: <mailto:cygwin AT cygwin DOT com> List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Subject: RE: Problem configuring ssh with public key Authentication - help! Date: Mon, 9 Aug 2004 10:50:43 +0200 Message-ID: <D7FBE8A336018A4EB5EBDC6C898821930991C7EB@HUELVA.belgium.fhm.de> X-MS-Has-Attach: X-MS-TNEF-Correlator: From: "Morche Matthias" <Matthias DOT Morche AT P7S1Produktion DOT de> To: <cygwin AT cygwin DOT com> X-OriginalArrivalTime: 09 Aug 2004 08:50:44.0393 (UTC) FILETIME=[F4F98190:01C47DED] X-IsSubscribed: yes Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id i798ouEA028357 Hi Kenneth, seems to me your authentication worked. Maybe your ". runme.sh" does not work as expected, since the environment of a login window and a non-interactive call differs? Maybe You'd better call "sh runme.sh"? regards, matthias > -----Original Message----- ... > I am able to ssh and execute a script (runme.sh) on the win > box from the > unix box with *password* authentication, no problem. > However, when I try > public key authentication (putting private key file in the > ~/.ssh directory > on the unix box and adding the corresponding public key in the > ~/.ssh/authorized_keys file on the Windows/Cygwin box), the > script does not > execute on the win box. > > According to the debug (attached), there does not appear to > be anything > wrong with with private/public key authentication - and in fact, the > runme.sh script does apparently get called. The only tell > tale sign seems > to be an exit code of 255 (rather than 0). Has anybody > experienced this > before and know how to fix it? ... > debug1: ssh-userauth2 successfull: method publickey > debug1: channel 0: new [client-session] > debug1: send channel open 0 > debug1: Entering interactive session. > debug2: callback start > debug1: client_init id 0 arg 0 > debug1: Sending command: . runme.sh > debug2: callback done ... > debug1: Exit status 255 ... -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/