Aug 20, 2014

Disabling genome-ssh-askpass

I've encountered an issue trying to pull commits to a remote server by remote controlling via ssh using MacOSX Terminal.

However, the server keeps returning the following error

(gnome-ssh-askpass:18368): Gtk-WARNING **: cannot open display:

The remote server is a linux using gnome desktop environment. But the GUI cannot displayed when using tty mode. So I survey the Internet and found the following solution.

unset SSH_ASKPASS

You can add this line to rc.local or ~/.bash_profile if you wanna disable it forever and ever~

Referenced from:
[Blog @ Codonomics: How to disable gnome-ssh-askpass?]