我无法将主机添加到OpenShift.com上的已知主机列表中。我收到以下错误消息:
...
Cloning into 'persiandm'...
The authenticity of host 'github.com (192.30.252.129)' can't be established.
RSA key fingerprint is 16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48.
Are you sure you want to continue connecting (yes/no)? yes
Failed to add the host to the list of known hosts (/var/lib/openshift/$USER/.ssh/known_hosts).
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
答案 0 :(得分:0)
这个问题也在这里得到解答
Openshift plone quickstart permission denied
如果不起作用,请尝试以下
删除键:rhc sshkey-removed
完成后,上传公钥(将id_rsa.pub的内容复制到管理控制台)
保存。
使用控制台
您也可以从管理控制台删除它们,方法是转到https://openshift.redhat.com/app/console/setting
完成后,上传公钥(将id_rsa.pub的内容复制到管理控制台):https://openshift.redhat.com/app/console/keys/new
答案 1 :(得分:0)
据我所知,非超级用户无法修改Openshift实例中的已知主机。我离开了使用自定义文件夹,但我想并非所有技术都允许它。 RedHat支持工程师告诉我,不推荐使用跨齿轮SSH通信,不应该工作(!)。幸运的是,至少有时候这样做。