Gnome-ssh-askpass is a part of the OpenSSH contrib files. Use from your .xsession or equivalent: export SSH_ASKPASS=/usr/local/bin/gnome-ssh-askpass2 ; ssh-add