This is the mail archive of the
cygwin
mailing list for the Cygwin project.
RE: Problem configuring ssh with public key Authentication - help!
- From: "Morche Matthias" <Matthias dot Morche at P7S1Produktion dot de>
- To: <cygwin at cygwin dot com>
- Date: Mon, 9 Aug 2004 10:50:43 +0200
- Subject: RE: Problem configuring ssh with public key Authentication - help!
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/