From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from stargate.mehconsulting.com (stargate.mehconsulting.com [65.78.188.61]) by sourceware.org (Postfix) with ESMTPS id DFFCC386EC42 for ; Fri, 24 Apr 2020 13:43:19 +0000 (GMT) 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 Received: from [127.0.0.1] (stargate.mehconsulting.com [65.78.188.61] (may be forged)) (authenticated bits=0) by stargate.mehconsulting.com (8.14.7/8.14.7) with ESMTP id 03ODhF0d018850 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO) for ; Fri, 24 Apr 2020 06:43:15 -0700 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: <871roeyuy0.fsf@Otto.invalid> <49c12452-3402-54ff-57ba-f61757d99ae0@mehconsulting.com> From: Mark Hansen 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: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Apr 2020 13:43:21 -0000 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!