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:

[bash]
(gnome-ssh-askpass:1266): Gtk-WARNING **: cannot open display:
[/bash]

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 *