From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from forward500p.mail.yandex.net (forward500p.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:110]) by sourceware.org (Postfix) with ESMTPS id 68A43385800E for ; Tue, 8 Mar 2022 08:20:04 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 68A43385800E Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=yandex.ru Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=yandex.ru Received: from vla1-2e2fe8fd096a.qloud-c.yandex.net (vla1-2e2fe8fd096a.qloud-c.yandex.net [IPv6:2a02:6b8:c0d:3495:0:640:2e2f:e8fd]) by forward500p.mail.yandex.net (Yandex) with ESMTP id 5489AF01169; Tue, 8 Mar 2022 11:20:02 +0300 (MSK) Received: from vla3-3dd1bd6927b2.qloud-c.yandex.net (vla3-3dd1bd6927b2.qloud-c.yandex.net [2a02:6b8:c15:350f:0:640:3dd1:bd69]) by vla1-2e2fe8fd096a.qloud-c.yandex.net (mxback/Yandex) with ESMTP id xehlDB0LMe-K2fuVnx3; Tue, 08 Mar 2022 11:20:02 +0300 X-Yandex-Fwd: 2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1646727602; bh=ZjxV6mcmU7xXm6GrmtbbqVAwHAkaPW4er3Rlz/T8fzU=; h=In-Reply-To:Subject:To:From:Message-ID:References:Date:Reply-To; b=TBFgPB3tZagN1sQL9Cngsil8hqffCodctmTVtWdyLOBzbeIUueFxUsJYNMpSI7vJY q5yF0jc+7ogsl4pH2UcEqU5WCfxVUKjCbZZuXPTKMwI+An/1wkOB+1PU4jrlKb0rAo If7QUpeQMXasfT0Ie0piING4UG7OQaeaU4EdATQg= Authentication-Results: vla1-2e2fe8fd096a.qloud-c.yandex.net; dkim=pass header.i=@yandex.ru Received: by vla3-3dd1bd6927b2.qloud-c.yandex.net (smtp/Yandex) with ESMTPSA id FGVGiljZeE-K1KGvYKm; Tue, 08 Mar 2022 11:20:01 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client certificate not present) Received: from [192.168.1.10] (HELO daemon2.darkdragon.lan) by daemon2 (Office Mail Server 0.8.12 build 08053101) with SMTP; Tue, 08 Mar 2022 08:13:05 -0000 Date: Tue, 8 Mar 2022 11:13:05 +0300 From: Andrey Repin X-Mailer: The Bat! (v9.3.4) Professional Reply-To: cygwin@cygwin.com Message-ID: <1883318896.20220308111305@yandex.ru> To: Sanjay Gupta , cygwin@cygwin.com Subject: Re: cygwin ssh connection from mac to windows Connection closed by XX.XX.XXX.XX port 22 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, KAM_NUMSUBJECT, KAM_THEBAT, NICE_REPLY_A, RCVD_IN_DNSWL_LOW, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE, XM_LIGHT_HEAVY autolearn=no autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) 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: Tue, 08 Mar 2022 08:20:06 -0000 Greetings, Sanjay Gupta! > Issue gets resolved when I did and used my domain password. > So my question is, is this needs to always run whenevery password gets > changed as per domain policy ? Yes. > I read docs about setuid changes and so forth but unable to understand much. > I have tried creating local account also but still it does not resolve > issue unless I did following. > passwd -R Yes. > $ ./passwd.exe -R > This functionality stores a password in the registry for usage by services > which need to change the user context and require network access. Typical > applications are interactive remote logons using sshd, cron task, etc. > This password will always tried first when any privileged application is > about to switch the user context. > Note that storing even obfuscated passwords in the registry is not overly > secure. Use this feature only if the machine is adequately locked down. > Don't use this feature if you don't need network access within a remote > session. > You can delete the stored password by specifying an empty password. > Enter your current password: > Re-enter your current password: > Can someone explain use of password -R and why I need to do it ? See docs. https://cygwin.com/cygwin-ug-net/ntsec.html#ntsec-nopasswd3 -- With best regards, Andrey Repin Monday, March 7, 2022 22:31:12 Sorry for my terrible english...