delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2021/03/11/07:54:39

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 957E43887026
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1615467276;
bh=QHidXCywYsXu75Z/2gjHWlTLNm5/b8VlMy7EcmnfnM4=;
h=Date:To:Subject:In-Reply-To:References:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:
From;
b=fQUxlQU9oDEBBMAmKPe5USeZoFuT+Hc7n3Eg4YrZ+rqlcnBm+QBj6RjYP3gEE0j1p
hCSVXXmq8GA48eQy5xElVkfhj57VoDMa7OC1FI8ME3+sDp1WokIOCsQvqeLxmBBPnU
hLYUtR2OvTQOoGva7n2E+qHqV7anOyssFiaOfSNU=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 5B16238708B9
DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-05.nifty.com 12BCrvtu011204
X-Nifty-SrcIP: [118.243.85.178]
Date: Thu, 11 Mar 2021 21:53:57 +0900
To: cygwin AT cygwin DOT com
Subject: Re: rsync password prompt doesn't capture input and shows password
in clear
Message-Id: <20210311215357.c6c663f81dd5ada71cce77ee@nifty.ne.jp>
In-Reply-To: <YEoPYo/+5L+vUQMc@calimero.vinschen.de>
References: <3ba5c0ad-369b-4703-f371-a3b2e206447a AT roth DOT lu>
<YEntmr3dnYxl14vm AT calimero DOT vinschen DOT de>
<231883003 DOT 20210311134223 AT yandex DOT ru>
<YEoPYo/+5L+vUQMc AT calimero DOT vinschen DOT de>
X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.30; i686-pc-mingw32)
Mime-Version: 1.0
X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, DKIM_SIGNED,
DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, NICE_REPLY_A, RCVD_IN_DNSWL_NONE,
SPF_HELO_NONE, SPF_PASS, 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 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>
From: Takashi Yano via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Takashi Yano <takashi DOT yano AT nifty DOT ne DOT jp>
Errors-To: cygwin-bounces AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces AT cygwin DOT com>

On Thu, 11 Mar 2021 13:38:58 +0100
Corinna Vinschen wrote:
> 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 AT client /cygdrive/c/temp
> > >> $ ssh server
> > >> Password:
> > >> Password:
> > >> 
> > >> Rsync on the other hand won't even let me enter the password correctly.
> > >> 
> > >> user AT client /cygdrive/c/temp
> > >> $ rsync -av xmppdb.db root AT 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 AT 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.

That seems to be the cause. I can reproduce the issue by:

env PATH="/cygdrive/c/Windows/system32/OpenSSH:$PATH" rsync -av somefile user AT server:/tmp

in mintty with 64bit cygwin.

-- 
Takashi Yano <takashi DOT yano AT nifty DOT ne DOT jp>
--
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