您的位置:首页 > 其它

git clone 时报错:Permission denied (publickey,gssapi-keyex,gssapi-with-mic)

2014-06-21 09:29 218 查看
我的开发环境:

操作系统::windows7

git客户端:git version 1.9.4.msysgit.0(

ruby:ruby 2.0.0p451 (2014-02-24) [x64-mingw32]

安装好msysgit后,想用来连接openshift,但一直报错:

D:\> git clone ssh://53a3be12e0b8cdeae50005a9@php-rayweb.rhcloud.com/~/git/php.git/

报如下错误:

Theauthenticity of host 'php-rayweb.rhcloud.com (23.22.159.181)' can't be estab

lished.

RSA keyfingerprint is cf:ee:77:cb:0e:fc:02:d7:72:7e:ae:80:c0:90:88:a7.

Are yousure you want to continue connecting (yes/no)? yes

Warning:Permanently added 'php-rayweb.rhcloud.com,23.22.159.181' (RSA) to the l

ist ofknown hosts.

Permissiondenied (publickey,gssapi-keyex,gssapi-with-mic).

有时也报:

ssh: connect to host php-rayweb.rhcloud.com port 22: Bad file number

不管是用rhc setup重新生成并上传公钥,还是单独用ssh-keygen生成密钥并手动在Web界面设置openshift的公钥,
都是一样的结果。

后来不经意间在git的安装目录(F:\develop\tools\Git)下看到了一个.ssh文件夹,但里面没有id_rsa,id_rsa.pub两个文件,于是
我把用户目录下(C:\Users\yu)下的.ssh目录拷贝到了F:\develop\tools\Git目录,覆盖原来的.ssh目录。到此大功造成。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐