* ssh problem with $HOME @ 2003-09-04 12:08 Gavin Sinclair 2003-09-04 16:43 ` Igor Pechtchanski 0 siblings, 1 reply; 4+ messages in thread From: Gavin Sinclair @ 2003-09-04 12:08 UTC (permalink / raw) To: cygwin Hi, When attempting a "cvs update" using over the ssh protocol (well, you know what I mean ;), I get the following error: $ cvs up Could not create directory '/home/Gavin Sinclair/.ssh'. That is surprising, because: $ echo $HOME /home/gavin I have read the manpage, /usr/doc/*, googled, and searched the archives, but found nothing. The manpage (ssh), in particular, says that $HOME/.ssh is where the heart is, so I suspect a Cygwin nuance. Of course cvs is involved here, but I doubt it's having any influence. Does anybody know what might be going on? Thanks, Gavin -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/ ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: ssh problem with $HOME 2003-09-04 12:08 ssh problem with $HOME Gavin Sinclair @ 2003-09-04 16:43 ` Igor Pechtchanski 2003-09-05 9:33 ` Gavin Sinclair 0 siblings, 1 reply; 4+ messages in thread From: Igor Pechtchanski @ 2003-09-04 16:43 UTC (permalink / raw) To: Gavin Sinclair; +Cc: cygwin On Thu, 4 Sep 2003, Gavin Sinclair wrote: > Hi, > > When attempting a "cvs update" using over the ssh protocol (well, you > know what I mean ;), I get the following error: > > $ cvs up > Could not create directory '/home/Gavin Sinclair/.ssh'. > > > That is surprising, because: > > $ echo $HOME > /home/gavin > > > I have read the manpage, /usr/doc/*, googled, and searched the > archives, but found nothing. The manpage (ssh), in particular, says > that $HOME/.ssh is where the heart is, so I suspect a Cygwin nuance. > Of course cvs is involved here, but I doubt it's having any influence. > > Does anybody know what might be going on? > > Thanks, > Gavin It's likely that the ssh daemon uses a different place to compute your $HOME (usually /etc/passwd). The default /etc/profile will use the Windows environment variable instead, if it's set. Please make sure your /etc/profile contains the correct path to your home directory, and that you don't set your $HOME somewhere where not all apps have access to it (e.g., your Windows environment). If that doesn't help, please (re)read the problem reporting guidelines at <http://cygwin.com/problems.html> before posting. Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_ pechtcha@cs.nyu.edu ZZZzz /,`.-'`' -. ;-;;,_ igor@watson.ibm.com |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D. '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! "I have since come to realize that being between your mentor and his route to the bathroom is a major career booster." -- Patrick Naughton -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/ ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: ssh problem with $HOME 2003-09-04 16:43 ` Igor Pechtchanski @ 2003-09-05 9:33 ` Gavin Sinclair 2003-09-05 16:15 ` Bill C. Riemers 0 siblings, 1 reply; 4+ messages in thread From: Gavin Sinclair @ 2003-09-05 9:33 UTC (permalink / raw) To: Igor Pechtchanski On Friday, September 5, 2003, 2:42:57 AM, Igor wrote: > On Thu, 4 Sep 2003, Gavin Sinclair wrote: >> Hi, >> >> When attempting a "cvs update" using over the ssh protocol (well, you >> know what I mean ;), I get the following error: >> >> $ cvs up >> Could not create directory '/home/Gavin Sinclair/.ssh'. >> >> >> That is surprising, because: >> >> $ echo $HOME >> /home/gavin >> >> >> I have read the manpage, /usr/doc/*, googled, and searched the >> archives, but found nothing. The manpage (ssh), in particular, says >> that $HOME/.ssh is where the heart is, so I suspect a Cygwin nuance. >> Of course cvs is involved here, but I doubt it's having any influence. >> >> Does anybody know what might be going on? >> >> Thanks, >> Gavin > It's likely that the ssh daemon uses a different place to compute your > $HOME (usually /etc/passwd). The default /etc/profile will use the > Windows environment variable instead, if it's set. Please make sure your > /etc/profile contains the correct path to your home directory, and that > you don't set your $HOME somewhere where not all apps have access to it > (e.g., your Windows environment). That has fixed the problem; thanks. Maybe I had manually set it before, which was trashed when I reinstalled Cygwin recently. It's a pain to have these out of sync, but that's life in a Windows world. I wasn't sure what you meant by the last sentence above. I do set $HOME in windows, so all apps can benefit from it, and /etc/profile honours that. Why ssh feels the need to look at /etc/passwd, when it is documented to look at $HOME, I don't know. Thanks again, Gavin -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/ ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: ssh problem with $HOME 2003-09-05 9:33 ` Gavin Sinclair @ 2003-09-05 16:15 ` Bill C. Riemers 0 siblings, 0 replies; 4+ messages in thread From: Bill C. Riemers @ 2003-09-05 16:15 UTC (permalink / raw) To: gsinclair, Igor Pechtchanski > I wasn't sure what you meant by the last sentence above. I do set > $HOME in windows, so all apps can benefit from it, and /etc/profile > honours that. Why ssh feels the need to look at /etc/passwd, when it > is documented to look at $HOME, I don't know. Quite simple. When you run "ssh" it calls "sshd" through a socket connection. sshd is running as SYSTEM. It is unlikely that the home directory for the $HOME directory for SYSTEM is the same as your home directory. Since "sshd" is a unix program, not a Windows program it uses the standard method of setting the $HOME environmental variable, which is to look it up from /etc/passwd. For example, on the computer I'm on now, my $HOME is /home/docbill . My wife's $HOME is /home/olivia . SYSTEM's $HOME is /home/SYSTEM. So if I do: ssh -l olivia localhost sshd has to find out what my wife's home directory. Not my home directory, nor SYSTEM's home directory. If instead it where just to use the current value of "$HOME", I could change it to enter my wife's account even if I did not know her password or the Administrator's password. Bill -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/ ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2003-09-05 16:15 UTC | newest] Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2003-09-04 12:08 ssh problem with $HOME Gavin Sinclair 2003-09-04 16:43 ` Igor Pechtchanski 2003-09-05 9:33 ` Gavin Sinclair 2003-09-05 16:15 ` Bill C. Riemers
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).