X-Recipient: archive-cygwin AT delorie DOT com X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org C3DF0385DC0B Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=nexgo.de Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=Stromeko AT nexgo DOT de From: ASSI To: cygwin AT cygwin DOT com Subject: Re: Problems with ssh when I log into my PC using my corporate domain while working from home References: Date: Thu, 23 Apr 2020 19:26:47 +0200 In-Reply-To: (Mark Hansen's message of "Tue, 21 Apr 2020 08:33:17 -0700") Message-ID: <871roeyuy0.fsf@Otto.invalid> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 X-VADE-STATUS: LEGIT X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, RCVD_IN_DNSWL_LOW, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: cygwin-bounces AT cygwin DOT com Sender: "Cygwin" 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. -- +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ SD adaptation for Waldorf rackAttack V1.04R1: http://Synth.Stromeko.net/Downloads.html#WaldorfSDada -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple