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

Corinna Vinschen corinna-cygwin@cygwin.com
Wed Feb 22 20:59:00 GMT 2012


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



More information about the Cygwin mailing list