delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2016/06/28/09:58:36

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=rM24EOUcBrtFO5c0
4mEvdHcM/sydzSyox+FBbTg+uBzEhVqKc8rHCT+rjt8UXL6IX86+3KHeWIX7Gj3r
gKHWWUAU4KJfgmptMhSSI4BXucf+23z9NXNo531fUe8m5P/kqbAkr8hbWGbZCKsZ
xdXsrD+yFHyPNM8SJgaDaliYE1w=
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=KgzOb7hLwG6epcgJyzJaIP
LC0JM=; b=rb6OasybQv978NVwn4Ph+wj7nwwvFLPABkOsLLHLRP4NKOzeXzoJD5
3H+tIkEltrHXCyKymZvnZScJrUoxpTRxEZmWFPIM8a7Lb1u5CQSqRY81RTrsywFm
hMRdmyeAcJe4YK2ZmgdH8X6MRjckaO1DlGti78BwZ+3prTC4+inkU=
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-Virus-Found: No
X-Spam-SWARE-Status: No, score=2.4 required=5.0 tests=AWL,BAYES_50,KAM_LAZY_DOMAIN_SECURITY,SPF_HELO_PASS autolearn=no version=3.3.2 spammy=H*r:sk:stargat, H*f:CAGHJv4dRtUm, H*f:oMgttxR9, H*f:sk:VwDw AT ma
X-HELO: stargate.mehconsulting.com
Subject: Re: SSH Home Directory
To: cygwin AT cygwin DOT com
References: <CAGHJv4dRtUm=gz=oMgttxR9+QYM_rm_NEbQFnyY30x=GL+VwDw AT mail DOT gmail DOT com>
From: Mark Hansen <meh AT winfirst DOT com>
Message-ID: <3092e361-480b-8304-475a-f1d36d38efcf@winfirst.com>
Date: Tue, 28 Jun 2016 06:58:09 -0700
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.1.1
MIME-Version: 1.0
In-Reply-To: <CAGHJv4dRtUm=gz=oMgttxR9+QYM_rm_NEbQFnyY30x=GL+VwDw@mail.gmail.com>

On 6/28/2016 6:38 AM, Chris Sutcliffe wrote:
> Hi,
>
> I have my $HOME path setup as /cygdrive/c/Users (using Windows 7)
> however ssh doesn't seem to honour that.  When I fire up ssh, I get:
>
> Could not create directory '/home/csutclif/.ssh'.
>
> Why is it defaulting to /home?  Is there a way to configure ssh to
> point to the $HOME path?  I have a .ssh directory with my private key
> in /cygdrive/c/Users/csutlif.
>
> Thanks,
>
> Chris
>

You need to configure your home directory using the db_home setting in /etc/nsswitch.conf.
See the following section in the Cygwin User's Guide:

https://cygwin.com/cygwin-ug-net/ntsec.html#ntsec-mapping-passwdinfo



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