delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2022/03/08/03:20:43

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 <anrdaemon AT yandex DOT ru>
X-Mailer: The Bat! (v9.3.4) Professional
Message-ID: <1883318896.20220308111305@yandex.ru>
To: Sanjay Gupta <sanjay92 AT gmail DOT com>, 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: <CANbXC7NYBLLbE285707qEXXd7=XppbdX+63n9W-v_NCX4j_0xw@mail.gmail.com>
References: <CANbXC7Mi8u=p7+34=OqFowzF+kqgKdnJ-anh4sGjaun3vQQz8g AT mail DOT gmail DOT com>
<CANbXC7NYBLLbE285707qEXXd7=XppbdX+63n9W-v_NCX4j_0xw AT mail DOT gmail DOT com>
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
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
Reply-To: cygwin AT cygwin DOT com
Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019