Read-only on /dev/tty causes ssh-add to show passwords when typed and ssh'ing to new hosts to fail
James Keener
jim at jimkeener.com
Sun Jul 20 21:51:25 EST 2014
Lookin into it more I believe that readpassphrase falls back to stdin when /dev/tty isn't accessible.
I wonder if ssh-add could be more proactive by checking /dev/tty and the presence of $DISPLAY to provide a warning or abort with an error before calling readpassphrase. I didn't think ssh-add could fix a bad configuration :)
The issue is that I know there are many use cases for ssh-add (many of which i don't know) and being able to accommodate them all may be difficult.
Jim
--
Sent from my Android device with K-9 Mail. Please excuse my brevity.
More information about the openssh-unix-dev
mailing list