From: Mark Hansen <cygwin@mehconsulting.com>
To: cygwin@cygwin.com
Subject: Re: Problems with ssh when I log into my PC using my corporate domain while working from home
Date: Thu, 23 Apr 2020 11:10:24 -0700 [thread overview]
Message-ID: <49c12452-3402-54ff-57ba-f61757d99ae0@mehconsulting.com> (raw)
In-Reply-To: <871roeyuy0.fsf@Otto.invalid>
On 4/23/2020 10:26 AM, ASSI wrote:
> Mark Hansen writes:
>> Here is my user id (from the id command) when I log in from the office:
>>
>> uid=1293438(Mark.Hansen) gid=1049089(Domain Users) ...
>>
>> Here is the same when I've logged in with the machine at home:
>>
>> uid=1293438(MAN+User(244862)) gid=1293438
>>
>> (MAN) is the domain.
>
> That likely means that when you connect from home, you cannot talk to the
> corporate domain server or you are ion a different domain. The domain
> part is only shown when it isn't the primary domain IIRC and since the
> numerical user instead of the name is shown, that SID did not resolve.
>
>> The actual problem I'm having is that Cygwin tools like ssh, git, etc. can't find my .ssh
>> directory. They are looking in "/" rather than my home directory.
>
> Depending on how this is set up in your domain, you might need to point
> either Cygwin or sshd to use a separate local directory. You have no
> network access on Windows (i.e. you won't be able to access any fils
> shares) until you've authenticated with a password.
>
>> I tried copying my .ssh directory from my home to "/" and although it was created, the
>> files have the wrong permissions and I'm unable to change them.
>
> You would need to be either an admin and/or the user who installed
> Cygwin for that to work, but you shouldn't do that.
>
>> Is there something I can tweak to get Cygwin to understand which user I am so the ssh
>> stuff can start working again?
>
> If Cygwin doesn't know who you are, then that means Windows doesn't know
> either, so fixing this on the Cygwin side won't get you much further.
>
>
> Regards,
> Achim.
>
I think Windows knows who I am. I log into the machine using my normal domain login
credentials. The machine looks the way it does when I log in when the machine is in the
office - the desktop is the same, etc. - it's not acting like I'm a new user or anything
like that.
Everything on the Windows side seems to be working fine. The only issue I've found is with
Cygwin. Is there a way (short of removing and reinstalling Cygwin) that I can get Cygwin
to recognize my current user so ssh and git can know where my home directory is located?
next prev parent reply other threads:[~2020-04-23 18:10 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-21 15:33 Mark Hansen
2020-04-21 21:52 ` Mark Hansen
2020-04-23 11:54 ` Mark Hansen
2020-04-23 12:51 ` Marco Atzeri
2020-04-23 15:25 ` Mark Hansen
2020-04-23 19:19 ` Marco Atzeri
2020-04-23 19:30 ` Marco Atzeri
2020-04-23 21:50 ` Mark Hansen
2020-04-24 5:11 ` Brian Inglis
2020-04-23 17:26 ` ASSI
2020-04-23 18:10 ` Mark Hansen [this message]
2020-04-23 18:57 ` Norton Allen
2020-04-24 13:43 ` Mark Hansen
2020-04-23 19:33 ` Achim Gratz
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=49c12452-3402-54ff-57ba-f61757d99ae0@mehconsulting.com \
--to=cygwin@mehconsulting.com \
--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).