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 29679386EC3C
Authentication-Results: sourceware.org;
 dmarc=none (p=none dis=none) header.from=pdinc.us
Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=jpyeron@pdinc.us
DKIM-Filter: OpenDKIM Filter v2.11.0 mail1.pdinc.us 082KLhFV009736
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pdinc.us; s=default;
 t=1599078103; bh=AoJp+8b2TKtQmMmbyxG61sgPdnAsbUH7CdDF0lip5V4=;
 h=From:To:References:In-Reply-To:Subject:Date:From;
 b=d9Z3FwMeUXOpZnK/fPMZ2sPLAb5URAsqYFTtAy9sKDHdxCJMBNmlVhlzMnYAEQFNL
 LTvwkozdKZxnzxwt1ectwVJf5sesFHYmI0Xj7y6GbPsN2F/VaVvf9dRFa+AGHbQCRl
 Y184XM17YIoVYzpCdk8/ALv9Ny0kXYsVDc12pAthBwNHOkdUjxHERZTOAAhtz4Ebis
 sV+yZ8927hiRVNt5oySTY/AA4ryRe2oPDmbOdyzh1FZlqyCdciJxiBhvrw12SGKF3n
 ovOHMLLGCKj7DUqTf9fg8QN0JkiyDKV1eSLOzvmRd1zO3R9YMNMr6OMdivu0Ch+M2M
 kvhZcta94JtBw==
From: "Jason Pyeron" <jpyeron@pdinc.us>
To: <cygwin@cygwin.com>
References: <QB1PR01MB3875A2728468358F5AA23B59CD2F0@QB1PR01MB3875.CANPRD01.PROD.OUTLOOK.COM>
In-Reply-To: <QB1PR01MB3875A2728468358F5AA23B59CD2F0@QB1PR01MB3875.CANPRD01.PROD.OUTLOOK.COM>
Subject: RE: [cygwin] ssh server immediately closing connection
Date: Wed, 2 Sep 2020 16:21:53 -0400
Organization: PD Inc
Message-ID: <038101d68166$b2970fa0$17c52ee0$@pdinc.us>
MIME-Version: 1.0
X-Mailer: Microsoft Outlook 16.0
Thread-Index: AQJnsDRFYQKSz0AD64jU3y/Xn4H1Q6gzbCMw
Content-Language: en-us
X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, DKIM_SIGNED,
 DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, KAM_INFOUSMEBIZ, 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
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-request@cygwin.com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: "Cygwin" <cygwin-bounces@cygwin.com>

> -----Original Message-----
> From: Leroy Tennison
> Sent: Wednesday, September 2, 2020 3:49 PM
> 
> Attempting to connect using blah@1.2.3.4 (the user and IP address have been obfuscated), the first
> time I'm prompted to accept the host's fingerprint and, after I do, the connection is immediately
> closed.  Trying again I get an immediate "Connection closed by 1.2.3.4 port 22".  I have tried both
> 32-bit and 64-bit Cygwin (after removing what was previously installed).  I used ssh-host-config and
> ssh-user-config for setup, the lines in sshd_config which aren't commented out are:
> 
> StrictModes no
> AuthorizedKeysFile      .ssh/authorized_keys
> Subsystem       sftp    /usr/sbin/sftp-server

Please detail the windows service configuration. I see that you are running as cyg_server account. Please try as SYSTEM.

Please confirm the issue is the same in the windows event log 

-Jason

--
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
