权限在openshift上被拒绝(publickey,gssapi-keyex,gssapi-with-mic) [英] Permission denied (publickey,gssapi-keyex,gssapi-with-mic) on openshift

查看:171
本文介绍了权限在openshift上被拒绝(publickey,gssapi-keyex,gssapi-with-mic)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在对我的装备进行更改时遇到问题。我试图运行rhc安装程序,我也删除了我的.ssh文件夹,并再次执行rhc安装程序,但那也没有奏效。



不知道是什么改变了,但几个小时前它就起作用了。

 > git push -u< GEAR_NAME> master 
权限被拒绝(publickey,gssapi-keyex,gssapi-with-mic)。
致命:无法从远程存储库读取。

请确保您拥有正确的访问权限
并存在存储库。

 > git remote add devstage3 -f ssh://< GEAR_ID> @< GEAR_NAME>  - < GEAR-DOMAIN> ;. rhcloud.com/~/git/<GEAR_DOMAIN>.git/ 

我也试着开始一个不同的设备,并承诺它,但我得到同样的错误:

 更新< GEAR_NAME> 
无法建立主机'< GEAR_NAME> - < GEAR-DOMAIN> .rhcloud.com(< GEAR_IP>)'的真实性。
RSA密钥指纹是< KEY_FINGERPRINT> ;.
您确定要继续连接(是/否)吗?是
警告:永久性地将'< GEAR_NAME> - < GEAR-DOMAIN> .rhcloud.com,< GEAR_IP>'(RSA)添加到已知主机列表中。
权限被拒绝(publickey,gssapi-keyex,gssapi-with-mic)。
致命:无法从远程存储库读取。

请确保您拥有正确的访问权限
并存在存储库。
错误:无法抓取< GEAR_NAME>


解决方案

删除密钥:rhc sshkey-remove
您也可以从管理控制台删除它们,方法是转到 https://openshift.redhat.com/app/console/设置



完成后,上传公钥(将id_rsa.pub的内容复制到管理控制台):
https://openshift.redhat.com/app/console/keys/new



保存它。在这之后尝试 git clone ,它应该适合你。

I am having issues with committing changes to my gear. I have tried to run rhc setup, I also deleted my .ssh folder and executed rhc setup again but that also didnt work.

Not sure what changed but it worked couple of hours ago.

>git push -u <GEAR_NAME> master
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 remote add devstage3 -f ssh://<GEAR_ID>@<GEAR_NAME>-<GEAR-DOMAIN>.rhcloud.com/~/git/<GEAR_DOMAIN>.git/ 

Also I have tried to start a different gear and commit to it but I am getting the same error:

Updating <GEAR_NAME>
The authenticity of host '<GEAR_NAME>-<GEAR-DOMAIN>.rhcloud.com (<GEAR_IP>)' can't be established.
RSA key fingerprint is <KEY_FINGERPRINT>.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '<GEAR_NAME>-<GEAR-DOMAIN>.rhcloud.com,<GEAR_IP>' (RSA) to the list of known hosts.
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.
error: Could not fetch <GEAR_NAME>

解决方案

Remove the keys: rhc sshkey-remove You can also delete them from the management console, by going to https://openshift.redhat.com/app/console/settings

Once done, upload the public key (copy the content of your id_rsa.pub to management console) : https://openshift.redhat.com/app/console/keys/new

Save it. After this try to git clone and it should work for you.

这篇关于权限在openshift上被拒绝(publickey,gssapi-keyex,gssapi-with-mic)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆