码迷,mamicode.com
首页 > 其他好文 > 详细

gnome-ssh-askpass:No such file or directory && unable to read askpass response

时间:2015-07-22 18:33:06      阅读:560      评论:0      收藏:0      [点我收藏+]

标签:

1、使用git的时候,gnome-ssh-askpass出现“error: cannot run /usr/libexec/openssh/gnome-ssh-askpass: No such file or directory”错误:

shenweiyan@localhost 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://shenweiyan@git.oschina.net: 
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‘”问题:

shenweiyan@localhost 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

标签:

原文地址:http://www.cnblogs.com/shenweiyan/p/4668080.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!