delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2013/05/18/22:59:59

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:mime-version:date:message-id:subject:from:to
:content-type; q=dns; s=default; b=KsEjwBxfuqZXxgboSU5wWnnbV0Uzn
e+LnUZKsi7fh1eupm2c+v5v5Y08ALDn1vq9QHRfGH2vqEhW6TGGWXZsbjglcZvD4
3Zqqq6K9+OKhHcbUZDEPwF6M9+U8R25PiNaDkL/JZyQB/7/hKYXCOdoaNzAHiKBA
qWeUYBV9hWkz3A=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:mime-version:date:message-id:subject:from:to
:content-type; s=default; bh=90w6zj6vVZDR0uilqbOV5w5AMjY=; b=WbK
B2rSjl24DRk+LWvnMu3eh/HqJjEQEoFbRkETyNtlmyR0khkd91tq7GrGLDo1x8Uy
mFNH0wfnOBsAVJMpCsP9UPbKZBdtGXs+JNDR8BuS73/VggGnjF3OEEP/Uo7ucIqY
ehyQNYveCCjuTbE2Tt+XUtZw7jbwWU7BseimrY3w=
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
X-Spam-SWARE-Status: No, score=0.2 required=5.0 tests=AWL,BAYES_00,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE,SPF_PASS,TW_MK autolearn=ham version=3.3.1
MIME-Version: 1.0
X-Received: by 10.220.253.8 with SMTP id my8mr32525599vcb.23.1368932378549; Sat, 18 May 2013 19:59:38 -0700 (PDT)
Date: Sun, 19 May 2013 08:29:38 +0530
Message-ID: <CAO6Meo_rcDOdU_41k0BQOq5J2Tk0RWpvvSiLMi5bSWWHnB9X0Q@mail.gmail.com>
Subject: Public key authentication not working when I do "ssh localhost"
From: Naveen Narayanan <naveen DOT 4688 AT gmail DOT com>
To: cygwin AT cygwin DOT com

I've been trying "ssh localhost" on cygwin (I use WIndows 7), but it
keeps asking for the password.

When I did "ssh -vvv localhost", I found out that the public key
authentications were not happening (or failing). Hence, it was asking
for the password.

debug1: Authentications that can continue:
publickey,password,keyboard-interactive
debug3: start over, passed a different list
publickey,password,keyboard-interactive
debug3: preferred 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: Offering RSA public key: /home/navenara/.ssh/id_rsa
debug3: send_pubkey_test
debug2: we sent a publickey packet, wait for reply
debug1: Authentications that can continue:
publickey,password,keyboard-interactive

I'm not sure if it is unable to read the authorized_keys file, or if
there is a timeout issue with this, or did the authentication fail? Is
there any way to get more details?

I have done the following steps:

ssh-host-config. Answered yes to all.
Generated the RSA key and added it to the authorized_keys file.
net start sshd
ssh localhost

These are the permissions:

-rw------- 1 navenara mkgroup  402 May 18 16:34 authorized_keys
-rw------- 1 navenara mkgroup 1675 May 18 16:33 id_rsa
-rw-r--r-- 1 navenara mkgroup  402 May 18 16:33 id_rsa.pub
-rw-r--r-- 1 navenara mkgroup  171 May 18 14:33 known_hosts

There are a couple of issues as well: - The group is displayed as
mkgroup. - The user "navenara" does not exist in the localhost, I
guess. It was not displayed in "net user sshd". "navenara" is a Domain
account. Could this be causing the public key authentication issue?

Just to see if there is any difference in the output, I deleted the
authorized_keys file and tried. There was no difference in the output.
It still sends a packet and proceeds to the next mode of
authentication. There is no error message.

As of now, I do not know what happens when the packet is sent in my
case. I would be able to proceed further if I know what exactly the
problem is. Is there any way to get more details than what "ssh -vvv
localhost" provides? I'm very new to Cygwin and SSH.

Any help would be great.

Thanks!

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