This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Why isn't ssh reading ~/.ssh/id_rsa?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]