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

我的开发环境:

操作系统::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目录。到此大功造成。





评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值