www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/02/21/11:54:24

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=4.6 required=5.0 tests=AWL,BAYES_00,DKIM_ADSP_CUSTOM_MED,FORGED_YAHOO_RCVD,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED,T_RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
Message-ID: <33365245.post@talk.nabble.com>
Date: Tue, 21 Feb 2012 08:53:40 -0800 (PST)
From: _w_ <just_a_w AT yahoo DOT com>
To: cygwin AT cygwin DOT com
Subject: SSH looking for identity file in /.ssh
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

I just installed Cygwin 1.7.10 and created keys in ~/.ssh.  When I ssh to
another server, it looks for identity files in /.ssh rather than ~/.ssh.

I checked /etc/ssh_config and everything is commented out (as it was in my
old Cygwin installation).  I tried adding "IdentityFile ~/.ssh/id_rsa" but
that didn't help, it kept looking in /.ssh.

Specifying the location of the identity file on the command line (ssh xxx -i
~/.ssh/id_rsa) works, as does hard coding in /etc/ssh_config the path to my
identity file (IdentityFile /home/xxx/.ssh/id_rsa).

Any idea why it's looking in /.ssh rather than ~/.ssh?


$ ssh -v xxx
OpenSSH_5.9p1, OpenSSL 0.9.8s 4 Jan 2012
debug1: Reading configuration data /etc/ssh_config
debug1: Connecting to xxx [xxx.xxx.xxx.xxx] 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: Authentications that can continue: publickey,password
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



Thanks.
-- 
View this message in context: http://old.nabble.com/SSH-looking-for-identity-file-in--.ssh-tp33365245p33365245.html
Sent from the Cygwin list mailing list archive at Nabble.com.


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