public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Takashi Yano <takashi.yano@nifty.ne.jp>
To: cygwin@cygwin.com
Subject: Re: rsync password prompt doesn't capture input and shows password in clear
Date: Thu, 11 Mar 2021 21:53:57 +0900	[thread overview]
Message-ID: <20210311215357.c6c663f81dd5ada71cce77ee@nifty.ne.jp> (raw)
In-Reply-To: <YEoPYo/+5L+vUQMc@calimero.vinschen.de>

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@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.

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

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

in mintty with 64bit cygwin.

-- 
Takashi Yano <takashi.yano@nifty.ne.jp>

      reply	other threads:[~2021-03-11 12:54 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-10 18:11 Marki
2021-03-10 20:58 ` Andrey Repin
2021-03-10 22:42   ` Marki
2021-03-10 22:54     ` Andrey Repin
2021-03-10 23:20       ` Marki
2021-03-11  2:11         ` David Dombrowsky
2021-03-11 10:14 ` Corinna Vinschen
2021-03-11 10:42   ` Andrey Repin
2021-03-11 12:38     ` Corinna Vinschen
2021-03-11 12:53       ` Takashi Yano [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210311215357.c6c663f81dd5ada71cce77ee@nifty.ne.jp \
    --to=takashi.yano@nifty.ne.jp \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).