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

David Dombrowsky
Thu Mar 11 02:11:15 GMT 2021

On 3/10/21 6:20 PM, Marki wrote:
> Only then I showed that the same is not true for rsync. When I input a
> password, it will get echoed and also rsync will not process it, since
> standard input somehow goes elsewhere.

If I had to guess, it's probably the same as the problems I was seeing
with gpg-agent not being able to capture the tty correctly to prompt for
the password.  I never had a problem with the ssh agent though.

Unfortunately I do not have a good solution for it, as it seems to
happen only to some people some time on some systems.  After fighting
with it for an afternoon, I simply wrote a pinentry program with my
password hardcoded into it.  Yay for security.

The hack is here for reference (DO NOT USE ON PUBLIC PRODUCTION

I recheck the stock program every few months, and this problem still exists.

David Dombrowsky | Chief Software Engineer
6th Street Radio LLC | | 518-374-3204

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: OpenPGP digital signature
URL: <>

More information about the Cygwin mailing list