nikvdp/pbproxy

Misleading hint on missing key-based ssh authentication

Closed this issue · 3 comments

The readme says: "make sure you have key-based ssh authentication set up (otherwise you'll have to enter your password each time you copy or paste)". Not quite so for copy, because the input would mix up with the password, not allowing entering it.

I suggest to add -o "KbdInteractiveAuthentication no" to ssh invocations, at least for copy, to prevent the issue.

Are you able to reproduce this? I disabled my ssh keys and tested briefly and pbcopy works as expected because ssh (smartly) reads the password from /dev/tty rather than stdin to prevent exactly the situation you're describing.

Closing for now, but if you are able to reproduce this please reopen and share the repro steps!

Sorry, I was wrong. As you said, It reads the password from /dev/tty.

No worries, appreciate the thought!