Openshift-git clone拒绝权限(公钥、gssapi-keyex、带mic的gssapi)



我在openshift online上创建了一个新帐户,并创建了我的第一个应用程序。我在本地机器上安装了rhc。我第一次使用rhc setup -l loginname设置ssh密钥我使用gitclone来克隆远程repo,它运行良好。然而,在更改和字符串进行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

我尝试了这个论坛中提供的一些解决方案,比如使用ssh-add等,但都没有成功。然后,我确保.ssh目录下和我的openshift在线帐户中的所有现有ssh密钥都已删除,ssh代理管理的所有身份也已删除。然后我再次启动rhc setup。这再次创建了默认的ssh密钥,并询问我是否可以上传我选择是的公钥。然而,它给了我以下错误:

An SSH connection could not be established to appname-domain-name.rhcloud.com.
Your SSH configuration may not be correct, or the application may not be
responding. connection closed by remote host (Net::SSH::Disconnect)

请帮忙。

我在尝试从命令行克隆时遇到了同样的问题。。。

C:> git clone GIT_URL  DIRECTORY_TO_CREATE

最后,从GIT UI进行克隆解决了这个问题。转到菜单项"所有程序"-->GIT-->GIT GUI,然后选择"克隆现有存储库"。

相关内容

最新更新