X-Recipient: archive-cygwin@delorie.com
X-Original-To: cygwin@cygwin.com
Delivered-To: cygwin@cygwin.com
DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org DFFCC386EC42
Authentication-Results: sourceware.org; dmarc=none (p=none dis=none)
 header.from=mehconsulting.com
Authentication-Results: sourceware.org;
 spf=pass smtp.mailfrom=cygwin@mehconsulting.com
DKIM-Filter: OpenDKIM Filter v2.11.0 stargate.mehconsulting.com 03ODhF0d018850
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mehconsulting.com;
 s=default; t=1587735796;
 bh=G1lQMoc5gNbsKXn818OUwD+Gc/e+1zI7npFdfSWpIfg=;
 h=Subject:To:References:From:Date:In-Reply-To:From;
 b=nbWK7R7praQLVd9z1tkKbL5UuWPL9kJ4P5kcXxPFTZu2K+TFps/9iC7ipURxrzHLA
 p7aqLe+6s218qDxRW/4mV/EsTLPAltiaemFCsjmUzekGRKzjNOU8yY8TfkOuFQTg4V
 9tKyToZbZxo1onOAhvKxx4NqV1x1lWWZSUfng6Lw=
Subject: Re: Problems with ssh when I log into my PC using my corporate domain
 while working from home
To: cygwin@cygwin.com
Newsgroups: gmane.os.cygwin
References: <r7n3nu$1u6e$1@ciao.gmane.io> <871roeyuy0.fsf@Otto.invalid>
 <49c12452-3402-54ff-57ba-f61757d99ae0@mehconsulting.com>
 <e2524361-e748-e1fa-5df3-3a4ed4aea8e8@huarp.harvard.edu>
From: Mark Hansen <cygwin@mehconsulting.com>
Message-ID: <8ed7fa18-f3f5-696b-c875-7210ed96426f@mehconsulting.com>
Date: Fri, 24 Apr 2020 06:43:13 -0700
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101
 Thunderbird/52.9.1
MIME-Version: 1.0
In-Reply-To: <e2524361-e748-e1fa-5df3-3a4ed4aea8e8@huarp.harvard.edu>
Content-Language: en-US
X-Spam-Status: No, score=0.9 required=5.0 tests=BAYES_00, DKIM_INVALID,
 DKIM_SIGNED, KAM_DMARC_STATUS, SPF_HELO_PASS, SPF_PASS,
 TXREP autolearn=no 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@cygwin.com
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <http://cygwin.com/mailman/options/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-request@cygwin.com?subject=help>
List-Subscribe: <http://cygwin.com/mailman/listinfo/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=subscribe>
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="us-ascii"; Format="flowed"
Errors-To: cygwin-bounces@cygwin.com
Sender: "Cygwin" <cygwin-bounces@cygwin.com>

On 4/23/2020 11:57 AM, Norton Allen wrote:

> 
> I also have had to deal with this problem. You should certainly read
> https://cygwin.com/cygwin-ug-net/ntsec.html.
> 
> After much experimenting and consultation with Corinna, we decided the
> best solution for me was:
> 
>    * Create /etc/passwd and /etc/group files
>        o For /etc/passwd, I included just my account, and I actually
>          editted it further to use my preferred username (rather than my
>          domain username) and my correct home directory
>    * Edit /etc/nsswitch.conf with:
>        o passwd: files
>        o group: files
> 
> This is not the generally recommended configuration, but in the
> situation where you cannot reach the domain server, it may be the best
> alternative. You may or may not need to back these changes out when you
> are back at work. I have not had a problem at work, but we are only
> loosely connected to the domain, so YMMV.
> 


This solved the issue for me. After doing what was suggested, above, I killed all the
Cygwin processes (actually, I rebooted the machine) and now when I try to perform
commands like ssh and git (which need to access files in my .ssh directory) they
are able to find the files and therefore are working again.

I realize that when I am able to once again work from my office, I may need to undo
these changes, but I'm quite happy that at least for now, it's working again.

Thanks to all who helped with this!
--
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
