delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/01/21/05:11:27

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=BAYES_00,TW_HG,T_RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
Message-ID: <4F1A8F1C.40002@chalmers.se>
Date: Sat, 21 Jan 2012 11:10:36 +0100
From: Hans-Georg Scherneck <hgs AT chalmers DOT se>
User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:9.0.1) Gecko/20111221 Firefox/9.0.1 SeaMonkey/2.6.1
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: ssh pubkey exchange failing at send_pubkey_test
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

>     My cygwin runs on a Windows 7. My problem is similar to a previous one
>
>     * /From/: Christophe Sauthier<christophe dot sauthier at gmail dot com>
>     * /To/: Cygwin List<cygwin at cygwin dot com>
>     * /Date/: Wed, 13 Apr 2005 10:39:14 +0200
>     * /Subject/: Re: Strange behaviour of Openssh
>
>
>     however it's really different. My problem occurs earlier in the
>     process.
>
>     I try to log in with ssh passwordless into a server that I've set up. sshd
>     is running there. I can log in with password.
>     When I set up the crypto (ssh-keygen -t ecdsa) and install the pub key at
>     the host, I can't login anymore, not by defaulting to password either.
>
>
>
> How did you configure ssh?  Did you run ssh-user-config?
> Does it work with the default rsa key?
>
> --
> Larry


Larry,
yes, I configured with ssh-user-config
No, it does not work with RSA keys either.
After a renewed ssh-user-config on the host side, the debug looks the 
same (except ecdsa ->  rsa)
ssh -vvv -i .ssh/id_rsa.pub me AT server
see debug output at 
http://froste.oso.chalmers.se/hgs/cygwin/ssh-login-rsa-failure.txt

Note that I do have success with different Windows XP and Vista 
machines. It's only this one Windows 7 case that's misbehaving.  And the 
problem is independent whether I log in from another cygwin or a linux 
machine. It's always that one server under W7.

I've put up host's /etc/ssh_config at 
http://froste.oso.chalmers.se/hgs/cygwin/ssh_config_at_host
and the server's sshd_ equivalently.

I'd very much like to inspect logfiles on the server's side. Despite 
that I've arranged for sshd-stdout.log sshd-stderr.log files in /var/log 
(they are created), and despite that I have installed and activated the 
syslog-ng package the logins, whether failing or succeeding (keys 
disabled and password dialog), leave no messages in any of the logfiles.
( cygrunsrv --install sshd --path /usr/sbin/sshd -1 /var/log/sshd-1.log 
-2 /var/log/sshd-2.log --args -e; cygrunsrv -S sshd )
I've also looked into the W7 event logs, in vain.

Other clues for narrowing in: I connect within the same IP-domain, 
machines sit side-by-side, I give the full address 
HGS AT W7machine DOT oso DOT chalmers DOT se
and HGS is the user exactly as specified in /etc/passwd
Can the firewall prevent receiving the send_publickey_test ? Isn't 
send_publickey_test going thru port 22 too ?
ssh -i .ssh/id_ecdsa.pub HGS AT W7machine DOT oso DOT chalmers DOT se
Any option I miss in the ssh command line?

-- 
Med vänliga hälsningar / With best regards yours             -----
Hans-Georg Scherneck                                       /   A   \
---------------------+----------------------------------- |   / \   |
. Telephone&  -fax   | Chalmers University of Technology   \       /
. +46 31 772 5556    | Earth and Space Sciences              -----
. +46 31 772 5590 fx |&  Onsala Space Observatory             | |
. E-Mail:            | SE-439 92  Onsala, Sweden             /   \
. hgs at chalmers.se | http://www.chalmers.se/rss       ----------------
. Ocean Loading Serv.| froste.oso.chalmers.se/loading   /===\ ,===//===\
. Gravimeter         | froste.oso.chalmers.se/hgs/SCG  /    /`===,/    /
---------------------+---------------------------------\===//===' \===/


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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