使用git从openshift克隆应用报错

来源:互联网 发布:it资产管理系统 php 编辑:程序博客网 时间:2024/06/05 03:24

从https://openshift.redhat.com/app/console/applications点进相关application。
找到source code:ssh://xxx@xxx.rhcloud.com/~/git/xxx.git/

执行git clone ssh://xxx@xxx.rhcloud.com/~/git/xxx.git/
报错:

Permission denied (publickey,gssapi-keyex,gssapi-with-mic).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

一番纠结后确定密钥的原因,安网上教程在git安装目录.ssh目录下新增config文件,写入Host IdentityFile仍然失败。

尝试将密钥拷贝的.ssh目录下,改名id_rsa/id_rsa.pub(密钥/公钥)再执行克隆命令成功解决。

0 0