From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 99699 invoked by alias); 28 Jun 2016 13:58:23 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 99689 invoked by uid 89); 28 Jun 2016 13:58:22 -0000 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@ma X-HELO: stargate.mehconsulting.com Received: from stargate.mehconsulting.com (HELO stargate.mehconsulting.com) (65.78.188.61) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Tue, 28 Jun 2016 13:58:11 +0000 Received: from [127.0.0.1] (stargate.mehconsulting.com [65.78.188.61] (may be forged)) (authenticated bits=0) by stargate.mehconsulting.com (8.14.7/8.14.7) with ESMTP id u5SDw9fa011781 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO) for ; Tue, 28 Jun 2016 06:58:09 -0700 Subject: Re: SSH Home Directory To: cygwin@cygwin.com References: From: Mark Hansen Message-ID: <3092e361-480b-8304-475a-f1d36d38efcf@winfirst.com> Date: Tue, 28 Jun 2016 14:06:00 -0000 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: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2016-06/txt/msg00404.txt.bz2 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