从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(密钥/公钥)再执行克隆命令成功解决。