Error: Git command error (gnome-ssh-askpass:26734): Gtk-WARNING **: cannot open display:

Posted on Updated on

I’ve been working on the project remotely through the command line, I just have only the repository access to share source code to the team, now I was getting the following error message wile I push/pull bash redirect password prompt to gnome askpass for password input. This could be annoying and block the work flow.

[root@srv-20 data]# git pull

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

The solution for fix this issue is to force bash to stop password redirection to GUI , with the below command you can either use the command runtime or  in .bashrc



Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s