delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/02/22/15:59:15

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Wed, 22 Feb 2012 21:58:10 +0100
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Why isn't ssh reading ~/.ssh/id_rsa?
Message-ID: <20120222205810.GF7657@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <049C1BB976511B43B81960B92217A8D6CD35A417DB AT MSGCMSV21048 DOT ent DOT wfb DOT bank DOT corp> <CE9C056E12502146A72FD81290379E9A2C4FDB59 AT ENFIRHMBX1 DOT datcon DOT co DOT uk> <CA+sc5mn_1tMyu5Z=H0U628Y5VQSfvcQDjfVwbE6TWwYz=zz70Q AT mail DOT gmail DOT com>
MIME-Version: 1.0
In-Reply-To: <CA+sc5mn_1tMyu5Z=H0U628Y5VQSfvcQDjfVwbE6TWwYz=zz70Q@mail.gmail.com>
User-Agent: Mutt/1.5.21 (2010-09-15)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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

On Feb 22 13:19, Earnie Boyd wrote:
> On Wed, Feb 22, 2012 at 12:16 PM, Adam Dinwoodie wrote:
> > John.E.Gregg wrote:
> >> 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.
> >
> > See http://cygwin.com/ml/cygwin/2012-02/msg00629.html.
> >
> > In short, your /etc/passwd doesn't list your home directory, so ~ doesn't
> > always expand as expected. The fix is to edit /etc/passwd by hand and
> > specify your home directory explicitly there.
> 
> Would simply adding HOME to the environment resolve the issue?

Ssh doesn't use $HOME for security reasons.  You have to fix /etc/passwd.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

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