public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* SSH Home Directory
@ 2016-06-28 13:58 Chris Sutcliffe
  2016-06-28 14:06 ` Mark Hansen
  2016-06-28 14:12 ` Corinna Vinschen
  0 siblings, 2 replies; 5+ messages in thread
From: Chris Sutcliffe @ 2016-06-28 13:58 UTC (permalink / raw)
  To: The Cygwin Mailing List

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

-- 
Chris Sutcliffe

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: SSH Home Directory
  2016-06-28 13:58 SSH Home Directory Chris Sutcliffe
@ 2016-06-28 14:06 ` Mark Hansen
  2016-06-28 18:06   ` Chris Sutcliffe
  2016-06-28 14:12 ` Corinna Vinschen
  1 sibling, 1 reply; 5+ messages in thread
From: Mark Hansen @ 2016-06-28 14:06 UTC (permalink / raw)
  To: cygwin

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: SSH Home Directory
  2016-06-28 13:58 SSH Home Directory Chris Sutcliffe
  2016-06-28 14:06 ` Mark Hansen
@ 2016-06-28 14:12 ` Corinna Vinschen
  2016-06-28 18:34   ` Chris Sutcliffe
  1 sibling, 1 reply; 5+ messages in thread
From: Corinna Vinschen @ 2016-06-28 14:12 UTC (permalink / raw)
  To: cygwin

[-- Attachment #1: Type: text/plain, Size: 603 bytes --]

On Jun 28 09:38, 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'.

OpenSSH never honors $HOME.  It checks explicitely for your home dir
setting in the user DB.  See https://cygwin.com/cygwin-ug-net/ntsec.html
for various methods setting your home dir.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: SSH Home Directory
  2016-06-28 14:06 ` Mark Hansen
@ 2016-06-28 18:06   ` Chris Sutcliffe
  0 siblings, 0 replies; 5+ messages in thread
From: Chris Sutcliffe @ 2016-06-28 18:06 UTC (permalink / raw)
  To: The Cygwin Mailing List

On 28 June 2016 at 09:58, Mark Hansen wrote:
> On 6/28/2016 6:38 AM, Chris Sutcliffe wrote:
>> 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.
>
> 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

Thank you!

Cheers,

Chris

-- 
Chris Sutcliffe

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: SSH Home Directory
  2016-06-28 14:12 ` Corinna Vinschen
@ 2016-06-28 18:34   ` Chris Sutcliffe
  0 siblings, 0 replies; 5+ messages in thread
From: Chris Sutcliffe @ 2016-06-28 18:34 UTC (permalink / raw)
  To: The Cygwin Mailing List

On 28 June 2016 at 10:06, Corinna Vinschen wrote:
> On Jun 28 09:38, Chris Sutcliffe wrote:
>> 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'.
>
> OpenSSH never honors $HOME.  It checks explicitely for your home dir
> setting in the user DB.  See https://cygwin.com/cygwin-ug-net/ntsec.html
> for various methods setting your home dir.

Thanks Corinna!

I guess that's what I get being a long time Cygwin user who hasn't
read recent documentation. :)

Cheers,

Chris

-- 
Chris Sutcliffe

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-06-28 14:12 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-06-28 13:58 SSH Home Directory Chris Sutcliffe
2016-06-28 14:06 ` Mark Hansen
2016-06-28 18:06   ` Chris Sutcliffe
2016-06-28 14:12 ` Corinna Vinschen
2016-06-28 18:34   ` Chris Sutcliffe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).