delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
DomainKey-Signature: | a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:subject:to:references:from:message-id:date | |
:mime-version:in-reply-to:content-type | |
:content-transfer-encoding; q=dns; s=default; b=RhnwPm+bn81E7bQS | |
gF3xcCPBYghtcyKw8j4oSqXw2Fb3qLZjL3LvGqhPYnpMP4Qm8wqSbUn63BmNQKXi | |
3xuncoutwHgISd6HTRazXSLHyLdIxpDS/RBNsXOmY/Xe/lu1UIK16tXWnlO7Qegl | |
0jnYZKWpTE+vzMuPLcSYVc1AILQ= | |
DKIM-Signature: | v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:subject:to:references:from:message-id:date | |
:mime-version:in-reply-to:content-type | |
:content-transfer-encoding; s=default; bh=rIDq9Aacm3wx/qQxW5HR0U | |
V5y2I=; b=UGGGRwXG/CEIVerUtFO9ntWmgkUhda4oEpO4iQ5lYieRQuiP51cCBm | |
XaXwFlOm0bLebk3dLyZB2+9kv69ajKmmIQz0NVSx7A0Km66aztFZb38ujimOzEVz | |
RyTG8KC/NhW190yfOTYHrHIm9qms2mCIasr8YwDx9zNQz/DXQGYhg= | |
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 |
Authentication-Results: | sourceware.org; auth=none |
X-Spam-SWARE-Status: | No, score=-0.9 required=5.0 tests=BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_NONE autolearn=no version=3.3.2 spammy=smart, excuse, operational |
X-HELO: | mout.kundenserver.de |
Subject: | Re: ssh confused about home directory? |
To: | cygwin AT cygwin DOT com |
References: | <BYAPR05MB573676B0D2BDCB42E8514BC4877C0 AT BYAPR05MB5736 DOT namprd05 DOT prod DOT outlook DOT com> <414591698 DOT 20190219230838 AT yandex DOT ru> |
From: | Thomas Wolff <towo AT towo DOT net> |
Message-ID: | <d3fbb08f-c874-ff96-a1b8-d02c1c549ff3@towo.net> |
Date: | Tue, 19 Feb 2019 23:00:39 +0100 |
User-Agent: | Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.5.0 |
MIME-Version: | 1.0 |
In-Reply-To: | <414591698.20190219230838@yandex.ru> |
X-IsSubscribed: | yes |
Am 19.02.2019 um 21:08 schrieb Andrey Repin: > Greetings, Boylan, Ross! > >> I recently installed cygwin on Win 10, both 64 bit. >> When I run ssh in a cygwin shell it complains >> Could not create directory '/home/rdboylan/.ssh'. >> The /home directory is empty--that is, it has no rdboylan subdirectory. >> My home directory appears to be /cygdrive/c/Users/rdboylan; that is the >> value of $HOME > This is the answer. > You rely on your shell being smart enough to pick environment variable as > operational directive, but SSH knows nothing about it and fails. > >> and where I end up when I do cd. >> As far as I can tell from the docs, having c:/Users/rdboylan as home is >> fine, but ssh doesn't seem to be respecting it. >> /etc/nsswitch.conf has no uncommented lines and /etc/passwd does not exist > Which explains the failure. But it does not excuse it. That's background information while the authoritative guide for users should be the manuals. The ssh manual refers to ~, without defining what that exactly means. The bash manual defines ~ to be equivalent with $HOME which also sometimes fails in bash. Documentation and behaviour is inconsistent, probably because in other POSIX systems, there are typically not so many variations in setting up $HOME, or ~, whichever... -- 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |