delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/02/22/11:50:02

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.5 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_HI,TW_RW,TW_WX,T_RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
X-DKIM: Sendmail DKIM Filter v2.8.4 mxdcmx01i.wellsfargo.com q1MGn08M005305
From: <John DOT E DOT Gregg AT wellsfargo DOT com>
To: <cygwin AT cygwin DOT com>
Date: Wed, 22 Feb 2012 10:48:48 -0600
Subject: Why isn't ssh reading ~/.ssh/id_rsa?
Message-ID: <049C1BB976511B43B81960B92217A8D6CD35A417DB@MSGCMSV21048.ent.wfb.bank.corp>
MIME-Version: 1.0
X-IsSubscribed: yes
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
Note-from-DJ: This may be spam
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id q1MGntMf022817

All,

I'm just installed cygwin on a new laptop.  I've been using cygwin ssh for years but am stumped by this new install.  ~/.ssh/id_rsa file is not checked at login.  Instead, /.ssh/id_rsa is checked.  Below is the verbose output.

Specifying -i works.

Adding ~/.ssh/config with IdentifyFile set to ~/.ssh/id_rsa doesn't work.  Specifying -F ~/.ssh/config doesn't work.

There is an /etc/defaults/etc/ssh/ssh_config file but it's all commented out.  There is no /etc/ssh_config.

The cygwin install on my OLD laptop correctly looks in ~/.ssh/id_rsa.  OLD version is OpenSSH_5.8p1, OpenSSL 0.9.8r 8 Feb 2011.

Here are permissions:

drwxr-xr-x+ 1 John.E.Gregg Domain Users    0 Feb 22 09:08 .
drwxrwxrwt+ 1 John.E.Gregg root            0 Feb 16 14:27 ..
-rw-------  1 John.E.Gregg Domain Users 1008 Feb 22 08:25 .bash_history
-rwxr-xr-x  1 John.E.Gregg Domain Users 1547 Feb 16 13:21 .bash_profile
-rwxr-xr-x  1 John.E.Gregg Domain Users 6331 Feb 22 08:35 .bashrc
-rwxr-xr-x  1 John.E.Gregg Domain Users 1919 Feb 16 13:21 .inputrc
-rw-r--r--  1 John.E.Gregg Domain Users   51 Feb 21 10:48 .minttyrc
-rwxr-xr-x  1 John.E.Gregg Domain Users 1236 Feb 16 13:21 .profile
drwx------+ 1 John.E.Gregg Domain Users    0 Feb 22 09:42 .ssh

Here is the verbose output:

$ ssh -v  jgregg AT myserver
OpenSSH_5.9p1, OpenSSL 0.9.8t 18 Jan 2012
debug1: Connecting to myserver [10.28.201.148] port 22.
debug1: Connection established.
debug1: identity file /.ssh/id_rsa type -1
debug1: identity file /.ssh/id_rsa-cert type -1
debug1: identity file /.ssh/id_dsa type -1
debug1: identity file /.ssh/id_dsa-cert type -1
debug1: identity file /.ssh/id_ecdsa type -1
debug1: identity file /.ssh/id_ecdsa-cert type -1
debug1: Remote protocol version 2.0, remote software version OpenSSH_5.5p1-hpn13v9
debug1: match: OpenSSH_5.5p1-hpn13v9 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_5.9
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-ctr hmac-md5 none
debug1: kex: client->server aes128-ctr hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Server host key: RSA d6:57:76:2d:3d:e1:80:b0:8d:2b:64:6a:97:b8:d7:11
debug1: Host 'myserver' is known and matches the RSA host key.
debug1: Found key in /.ssh/known_hosts:4
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: Roaming not allowed by server
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received

WARNING. You have accessed a private computer system.
Unauthorized access,use,connection,or entry is not permitted
and constitutes a crime punishable by law. We reserve the
right to fully pursue criminal and civil legal penalties.
All individuals using this computer system with or without proper
authority are subject to having all their activities monitored
and recorded. Anyone using this system implicitly consents to
this monitoring. Any evidence of suspected criminal activity
revealed by such monitoring may be provided to law enforcement officials.

debug1: Authentications that can continue: publickey,gssapi-with-mic,password,keyboard-interactive
debug1: Next authentication method: publickey
debug1: Trying private key: /.ssh/id_rsa
debug1: Trying private key: /.ssh/id_dsa
debug1: Trying private key: /.ssh/id_ecdsa
debug1: Next authentication method: keyboard-interactive
Password for jgregg AT mycompany:
debug1: Authentication succeeded (keyboard-interactive).
Authenticated to myserver ([10.28.201.148]:22).
debug1: channel 0: new [client-session]
debug1: Requesting no-more-sessions AT openssh DOT com
debug1: Entering interactive session.
Last login: Wed Feb 22 08:38:35 2012 from 10.89.178.139


#########################################################################
#                       For Authorized Use Only                         #
#                                                                       #
#       Activities on this system are subject to being monitored        #
#       or recorded for all users, authorized or unauthorized.          #
#       Use of the system is considered consent to such monitoring.     #
#       Any evidence of possible criminal activity may be provided      #
#       to law enforcement.                                             #
#                                                                       #
#########################################################################


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