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. _______________________________________________ openssh-unix-dev mailing list openssh-unix-dev@xxxxxxxxxxx https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev