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: List-Subscribe: List-Archive: List-Post: List-Help: , 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: <414591698 DOT 20190219230838 AT yandex DOT ru> From: Thomas Wolff Message-ID: 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> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit 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