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.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 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 Date: Tue, 8 Mar 2022 11:13:05 +0300 From: Andrey Repin X-Mailer: The Bat! (v9.3.4) Professional Message-ID: <1883318896.20220308111305@yandex.ru> To: Sanjay Gupta , cygwin AT cygwin DOT 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 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 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: , Reply-To: cygwin AT cygwin DOT com Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com Sender: "Cygwin" 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... -- 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