rsync password prompt doesn't capture input and shows password in clear

Takashi Yano takashi.yano@nifty.ne.jp
Thu Mar 11 12:53:57 GMT 2021


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>


More information about the Cygwin mailing list