unable to read askpass response from '/usr/libexec/openssh/gnome-ssh-askpass

苗森
2023-12-01

今天在git push origin master 时,竟然出现了错误 unable to read askpass response from '/usr/libexec/openssh/gnome-ssh-askpass

搜索出来下面一段话。让SSH_ASKPASS关闭掉即可。

However, for some wierd reason, upon trying to pull/push commits from/to the Git repository, the bash shell tries to open the gnome-ssh-askpass dialogue and it fails. I wanted to prevent the bash shell from attempting to launch the dialogue box. To do this, all I had to do is run the following command in the terminal:
$ unset SSH_ASKPASS

To prevent it in future, you can add the above line in your .bashrc or .bash_profile.

Wish you trouble-free working!

 类似资料: