X-Recipient: archive-cygwin@delorie.com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 51AB3388A438
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
	s=default; t=1615466344;
	bh=C5ptAGCEQwhAP6rxbEGYnER5HJMuPmqeYu+TbqbzBJI=;
	h=Date:To:Subject:References:In-Reply-To:List-Id:List-Unsubscribe:
	 List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc:
	 From;
	b=K77CtsGKEhH6ZVO4UQ3YX6BLQq5D2g6ZPFW4ZnCWx5YXgnKzltqYyx3NOn2ZWluT8
	 tcN7Kich2yZpgH0JlvXYJ6A1CZ+QZu01hYIXMTgzTc63E6HXVKIL/3Irtu+0vlaT1C
	 CljgbTnnHkAt6TRFdzRCGtfepsqlnUXyfKKTbvrI=
X-Original-To: cygwin@cygwin.com
Delivered-To: cygwin@cygwin.com
DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org EAEDF388A018
Date: Thu, 11 Mar 2021 13:38:58 +0100
To: cygwin@cygwin.com
Subject: Re: rsync password prompt doesn't capture input and shows password
 in clear
Message-ID: <YEoPYo/+5L+vUQMc@calimero.vinschen.de>
Mail-Followup-To: cygwin@cygwin.com
References: <3ba5c0ad-369b-4703-f371-a3b2e206447a@roth.lu>
 <YEntmr3dnYxl14vm@calimero.vinschen.de>
 <231883003.20210311134223@yandex.ru>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <231883003.20210311134223@yandex.ru>
X-Provags-ID: V03:K1:H/YWtSkJ8dkZjEsdFq+De/2yx3+rB/idKNHozTqF3pHerU9mNSp
 Gl17gMIC/KX6AMT9gQ1FoPFbH0RDuJtv+nr/eRNNiqa8OQeKH+Wm4oypOFgIogM28z/A2g4
 6UhEshXR+g+4eyVxEtggbWtBacVRPPCEJdK0HinyeyjjAmpjfAYbY1STUgF6/et6s1kDoDQ
 XM2i80o9IRAUG33eFuiKQ==
X-UI-Out-Filterresults: notjunk:1;V03:K0://1K/t5+ASU=:zAn2nJ3XMDu0pjh071zIgt
 GyzVYlQBdm8RjozD3e8Axwws1pzviuuHGcqyUo4OZ9SCDN1pRlUBdWi5uJ4eae4aGW78FNKEw
 AQLzAgQOT10YvYIewbOKmIzkFjdgTSm16mXwFpqytQQP/b7dvzEZODT51WRBFOe9wSW6QG0EA
 5YTdUyG/85EAj1UetD5tif138eUNTmZDknxKRyIL2LsOST/rIchYKzYvwE7D0dniTk4V/B5Ac
 xzJvraRUXNrt7oWZN/aGOlRTE2bxHtrwXrlO9S2qIRVVJWBWtxYzecZjbJji1ar4wutH+ncAE
 LwQvIUHp+qKgS11Mo6Ggb10X8sxCJw91YK3T59ZeFK4cJcfLVyRKMrU3tYe39wofszEo3J837
 dcllQ1qbkhQX3FZW+D4+PMQP0b18KZuubuxutSksbOWES0PU+zueW1SAxomYDu9MRkxuqH+KL
 E+0naPt/Jg==
X-Spam-Status: No, score=-101.0 required=5.0 tests=BAYES_00,
 GOOD_FROM_CORINNA_CYGWIN, JMQ_SPF_NEUTRAL, KAM_DMARC_NONE, KAM_DMARC_STATUS,
 RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_NEUTRAL,
 TXREP autolearn=ham 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 <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=unsubscribe>
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>
From: Corinna Vinschen via Cygwin <cygwin@cygwin.com>
Reply-To: cygwin@cygwin.com
Cc: Corinna Vinschen <corinna-cygwin@cygwin.com>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: cygwin-bounces@cygwin.com
Sender: "Cygwin" <cygwin-bounces@cygwin.com>

On Mar 11 13:42, Andrey Repin wrote:
> Greetings, Corinna Vinschen via Cygwin!
> 
> > On Mar 10 19:11, Marki wrote:
> >> Hello,
> >> 
> >> SSH password prompt captures the input correctly, and does not show it.
> >> 
> >> user@client /cygdrive/c/temp
> >> $ ssh server
> >> Password:
> >> Password:
> >> 
> >> Rsync on the other hand won't even let me enter the password correctly.
> >> 
> >> user@client /cygdrive/c/temp
> >> $ rsync -av xmppdb.db root@server:/tmp/
> >> Password: 123
> >> 123
> >> 123
> >> rsync error: received SIGINT, SIGTERM, or SIGHUP (code 20) at rsync.c(701)
> >> [sender=3.2.4dev]
> 
> > I tried this myself in mintty as well as in a Console window, and in
> > both cases the password was not echoed and taken correctly:
> 
> >   $ rsync -av x.exe user@remote:/tmp/
> >   Password:
> >   sending incremental file list
> >   x.exe
> >   [...]
> 
> > Are you sure you're using the Cygwin rsync?
> 
> -rsync
> +ssh
> 
> There's no MS-provided rsync, but there's ssh in C:\Windows\System32\OpenSSH\

If that ssh is first in $PATH, then that's the potential problem.


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