Gtk-WARNING **: cannot open display – how to fix

When you are using git via SSH, the first time you try to commit something, you might get this error:

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

The fix is really quite simple:

[bash]unset SSH_ASKPASS[/bash]

Leave a Reply

Your email address will not be published. Required fields are marked *