From: Gavin Sinclair <gsinclair@soyabean.com.au>
To: Igor Pechtchanski <cygwin@cygwin.com>
Subject: Re: ssh problem with $HOME
Date: Fri, 05 Sep 2003 09:33:00 -0000 [thread overview]
Message-ID: <8824123.20030905193228@soyabean.com.au> (raw)
In-Reply-To: <Pine.GSO.4.56.0309041240220.1861@slinky.cs.nyu.edu>
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/
next prev parent reply other threads:[~2003-09-05 9:33 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-09-04 12:08 Gavin Sinclair
2003-09-04 16:43 ` Igor Pechtchanski
2003-09-05 9:33 ` Gavin Sinclair [this message]
2003-09-05 16:15 ` Bill C. Riemers
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8824123.20030905193228@soyabean.com.au \
--to=gsinclair@soyabean.com.au \
--cc=cygwin@cygwin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).