delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/02/25/20:13:15

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Message-ID: <47C36777.2030509@cygwin.com>
Date: Mon, 25 Feb 2008 20:12:23 -0500
From: "Larry Hall (Cygwin)" <reply-to-list-only-lh AT cygwin DOT com>
Reply-To: cygwin AT cygwin DOT com
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.3) Gecko/20070505 Remi/2.0.0.0-3.fc4.remi Thunderbird/2.0.0.0 Mnenhy/0.7.5.0
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: SSHD Passwordless - Connection closed
References: <557912 DOT 82989 DOT qm AT web52802 DOT mail DOT re2 DOT yahoo DOT com>
In-Reply-To: <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

victor hooi wrote:
> NB: I found this:
> 
> http://erdelynet.com/archive/ssh-l/2003-01/1056.html

<shudder>  Glad to see you searched the web though.

> 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".

Ugh. Spaces in the path.  That's just asking for trouble.
I recommend that you at least mount C:\Documents and Settings
(and Stuff. Oh My!) to /home and make sure /etc/passwd is using
the /home path.

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

<snip>

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

And did you try the same on Cygwin?

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

And that makes me wonder what Windows platform you're
running on and how you're running the service, which
leads me to worry that maybe you've spent too much time
at erdelynet.com.  So now is a good time to read and
follow the problem reporting guidelines outline here:

<http://cygwin.com/problems.html>

We need information about your configuration, including
details of how you set up sshd, if you're still having problems.

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

Well, if you have no respect for the .ssh directory, then
that's fine.  I wouldn't wander into any ssh neighborhoods
alone for a while though. ;-)


-- 
Larry Hall                              http://www.rfk.com
RFK Partners, Inc.                      (508) 893-9779 - RFK Office
216 Dalton Rd.                          (508) 893-9889 - FAX
Holliston, MA 01746

_____________________________________________________________________

A: Yes.
 > Q: Are you sure?
 >> A: Because it reverses the logical flow of conversation.
 >>> Q: Why is top posting annoying in email?

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