Error: Git command error (gnome-ssh-askpass:26734): Gtk-WARNING **: cannot open display:
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
unset SSH_ASKPASS