delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/09/12/21:56:00

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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
Reply-To: Cygwin List <cygwin AT cygwin DOT com>
Message-Id: <6.2.1.2.0.20050912214921.0448c290@pop.prospeed.net>
Date: Mon, 12 Sep 2005 21:55:04 -0400
To: Poor Yorick <com DOT cygwin DOT cygwin AT pooryorick DOT com>, cygwin AT cygwin DOT com
From: Larry Hall <lh-no-personal-replies-please AT cygwin DOT com>
Subject: Re: ssh finds previous home directory
In-Reply-To: <43262F14.5080202@pooryorick.com>
References: <43262F14 DOT 5080202 AT pooryorick DOT com>
Mime-Version: 1.0

At 09:44 PM 9/12/2005, you wrote:
>In control panel I changed my $HOME environment variable tonight to <new home directory>, fired up cygwin, and typed ssh <user>@<host>.  I received this error:
>
>Could not create directory '<previous home directory>/.ssh'.
>
>Could someone please explain?

Sure.  It's simple.  'ssh' doesn't use $HOME to figure out your home 
directory.  It uses the directory listed in '/etc/passwd' for the user
you're logging in as.  If you think about it, it makes sense.  Otherwise,
there'd be a paradox (i.e. how can 'ssh' know the environment of the user
it's logging in as until it's finished logging in but it can't finish until 
it finds the home directory and it can't find that until it knows the user's 
environment...)



--
Larry Hall                              http://www.rfk.com
RFK Partners, Inc.                      (508) 893-9779 - RFK Office
838 Washington Street                   (508) 893-9889 - FAX
Holliston, MA 01746                     


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019