1、使用git的时候,gnome-ssh-askpass出现“error: cannot run /usr/libexec/openssh/gnome-ssh-askpass: No such file or directory”错误:
[email protected] 17:05:20 ~ => git push origin master error: cannot run /usr/libexec/openssh/gnome-ssh-askpass: No such file or directory Username for ‘https://git.oschina.net‘: shenweiyan error: cannot run /usr/libexec/openssh/gnome-ssh-askpass: No such file or directory Password for ‘https://[email protected]‘: Counting objects: 3, done. Delta compression using up to 2 threads. Compressing objects: 100% (2/2), done. Writing objects: 100% (2/2), 230 bytes | 0 bytes/s, done. Total 2 (delta 1), reused 0 (delta 0) To https://git.oschina.net/shenweiyan/BirthDF.git 89f911f..809863f master -> master
解决: yum install openssh-askpass
2、安装完openssh-askpass,又出现“error: unable to read askpass response from ‘/usr/libexec/openssh/gnome-ssh-askpass‘”问题:
[email protected] 17:30:20 ~ => git push origin master (gnome-ssh-askpass:10884): Gtk-WARNING **: cannot open display: error: unable to read askpass response from ‘/usr/libexec/openssh/gnome-ssh-askpass‘ Username for ‘https://git.oschina.net‘:
解决:echo ‘unset SSH_ASKPASS‘ >>~/.bashrc && source ~/.bashrc
gnome-ssh-askpass:No such file or directory && unable to read askpass response
时间: 2024-11-07 05:19:53