Randy j. Keener
System Administrator
Tropian, Inc.
20813 Stevens Creek Blvd
Cupertino, CA 95014
ph 408.579.9291
fx 408.865.1385
pg 888.950.0789
mobile 408.242.8123
randy.keener@tropian.com
www.tropian.com
-----Original Message-----
From: Philip Flip Kromer [mailto:flip@mrflip.com]
Sent: Friday, April 05, 2002 3:53 AM
To: ssh-l@erdelynet.com
Subject: [ssh-l] SSHD "Could not chdir to home: No such file or directory"
Fix
Hello,
I installed sshd and cygwin a while ago and make a sneaky, persistent
mistake that I thought I would warn others about...
ssh to my windows machine gave the error
$ ssh me@localhost
Could not chdir to home directory /h/me: No such file or directory
sshd would still log me in, and would still set me in my home directory
(which does exist). The only problem (besides just annoyance) was that it
would not find my ~/.ssh to do RSA authentication with.
Turns out, when I setup cygwin I ran
$ mount -b -c / # This is bad! Sets / for this user only.
to make local drives appear at /c, /d, etc. However, without the -s flag
this is a per-user setting. sshd runs under the SYSTEM account, and sees the
system default setting of /cygdrive/c, /cygdrive/d, etc.
I should have instead run
$ mount -b -s -c / # This is good! Sets / for all users.
Thanks to Corinna Vinschen at Cygwin for figuring out my mistake.
To fix this, I quit all cygwin programs. Then, in regedit, I removed, under
HKU\S-1-5-21-*-*-*-*\Software\Cygnus Solutions\Cygwin\mounts v2\ the
keys "cygdrive flags" and "cygdrive prefix". Finally, I ran
$ mount -b -s -c /
and now everyone is happy :-)
Cheers,
flip
PS Some other people have reported this error, so perhaps it should be added
to the FAQ at http://tech.erdelynet.com/cygwin-sshd.asp ?
[See
http://www.cygwin.com/ml/cygwin/1999-09/msg00276.html
http://www.cygwin.com/ml/cygwin/2000-09/msg00032.html
http://www.cygwin.com/ml/cygwin/2000-10/msg00758.html
http://www.cygwin.com/ml/cygwin/2000-11/msg01274.html
]
-- List Information: http://tech.erdelynet.com/maillist-ssh-l.asp List Archives: http://erdelynet.com/archive/ssh-l/ -- List Information: http://tech.erdelynet.com/maillist-ssh-l.asp List Archives: http://erdelynet.com/archive/ssh-l/Received on Fri Apr 5 11:39:38 2002
This archive was generated by hypermail 2.1.8 : Fri Jul 29 2005 - 17:33:34 EDT