delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/02/25/19:47:58

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
X-YMail-OSG: 0Eh5sYUVM1lUov7F78WmmEmEFI0VNSEmCO4sP0GU5zfECxqr8bHgXgbnGbuy8q7rWrSWsPG3HtwFRP7ehVwpbfO2oqeduYSh.ZFiUpc6yCESLGuUyGbNDs3ElKmIsJFv0DH.V4GgF2mGKXs-
Date: Mon, 25 Feb 2008 16:47:03 -0800 (PST)
From: victor hooi <victorhooi AT yahoo DOT com>
Subject: SSHD Passwordless - Connection closed
To: cygwin AT cygwin DOT com
MIME-Version: 1.0
Message-ID: <557912.82989.qm@web52802.mail.re2.yahoo.com>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
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

NB: I found this:

http://erdelynet.com/archive/ssh-l/2003-01/1056.html

which had a similar issue, but not quite the same,
unfortunately.

I have a Windows box  I'm attempting to back up using
RSnapshot, running cwrsync and Cygwin sshd
(OpenSSH_4.5p1).

The client from which we're running Rsnapshot is a
Linux box.

On the Linux box, I've generated a keyset using:

	ssh-keygen -t rsa

and a blank passphrase.

I copied id_rsa.pub to the Windows box, and added the
key to "authorized_keys" in "C:\Documents and
Settings\Administrator\.ssh".

On the Linux box, trying to log in using "ssh
Administrator AT windowsbox", I get:

debug1: SSH2_MSG_SERVICE_ACCEPT received
debug2: key: /root/.ssh/identity ((nil))
debug2: key: /root/.ssh/id_rsa (0x5dd10)
debug2: key: /root/.ssh/id_dsa ((nil))
debug1: Authentications that can continue:
publickey,password,keyboard-interactive
debug3: start over, passed a different list
publickey,password,keyboard-interactive
debug3: preferred
gssapi-keyex,gssapi-with-mic,gssapi,publickey,keyboard-interactive,password
debug3: authmethod_lookup publickey
debug3: remaining preferred:
keyboard-interactive,password
debug3: authmethod_is_enabled publickey
debug1: Next authentication method: publickey
debug1: Trying private key: /root/.ssh/identity
debug3: no such identity: /root/.ssh/identity
debug1: Offering public key: /root/.ssh/id_rsa
debug3: send_pubkey_test
debug2: we sent a publickey packet, wait for reply
Connection closed by 190.0.126.9

I've tried going the other way - generating a keypair
on the Windows box using the cygwin version of
ssh-keygen, copying cygwin's id_rsa.pub to the Linux
box, and adding it to root's .ssh/authorized_keys.
That worked fine.

I've tried the Linux keypair in loopback - that is,
copying the Linux box's public key (id_rsa.pub) to
it's own authorized_keys, and logging in to localhost,
passwordlessly. That worked fine.

In the Event Log on the Windows box, I have:

The description for Event ID ( 0 ) in Source ( sshd )
cannot be found. The local computer may not have the
necessary registry information or message DLL files to
display messages from a remote computer. You may be
able to use the /AUXSOURCE= flag to retrieve this
description; see Help and Support for details. The
following information is part of the event: sshd: PID
3608: fatal: seteuid 500: No such process.

Any help at all would be fantastic.

Also, I've blown my .ssh directory away a few times,
and re-generated the keys with ssh-keygen, there's
nothing wrong with doing that, is there?

Cheers,
Victor


      ____________________________________________________________________________________
Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs

--
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/

- Raw text -


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