Posts

Showing posts from October 30, 2018

Tell SSH to use a graphical prompt for key passphrase

Image
Clash Royale CLAN TAG #URR8PPP up vote 33 down vote favorite 11 How can I force SSH to request passphrases using a graphical prompt (GTK, for example) instead of the standard one that uses the terminal? I tried setting SSH_ASKPASS=/usr/bin/ssh-askpass but it seems to have no effects. The problem is the fact the openssh documentation says If ssh does not have a terminal associated with it but DISPLAY and SSH_ASKPASS are set, it will execute the program specified by SSH_ASKPASS and open an X11 window to read the passphrase. An ssh launched from the command line, in my case as the result of a git push , will have a terminal associated with it, so the SSH_ASKPASS logic seems to be ignored. Please note that I am not referring to ssh-add , but to generic ssh invocations towards an hosts for which a key pair is present but protected by a passphrase. ssh share | improve this question edited Jul 22 '13 at 23:17 asked Jul 22 '13 at 15:43