在openshift上被允许拒绝(publickey,gssapi-keyex,gssapi-with-mic)

 浪漫的美食 发布于 2023-01-29 18:28

我在修改我的装备时遇到问题.我试图运行rhc设置,我也删除了我的.ssh文件夹并再次执行rhc设置,但这也没有用.

不知道发生了什么变化,但它在几个小时前工作了.

>git push -u  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://@-.rhcloud.com/~/git/.git/ 

此外,我试图启动一个不同的齿轮并承诺,但我得到同样的错误:

Updating 
The authenticity of host '-.rhcloud.com ()' can't be established.
RSA key fingerprint is .
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '-.rhcloud.com,' (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 

boris1993.. 22

如果您使用的是Windows,则可以尝试以下步骤:

    通常你可以找到你的ssh公钥 c:\\users\\YOUR_USERNAME\\.ssh

    将您的openshift公钥复制到您的git的ssh-key文件夹

    假设我们有git in d:\\git

    然后我们需要将公钥复制c:\\users\\YOUR_USERNAME\\.sshd:\\git\\.ssh

    试试它是否有效


special0ne.. 17

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

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

保存.在此尝试之后git clone,它应该适合您.

4 个回答
  • 如果您使用的是Windows,则可以尝试以下步骤:

      通常你可以找到你的ssh公钥 c:\\users\\YOUR_USERNAME\\.ssh

      将您的openshift公钥复制到您的git的ssh-key文件夹

      假设我们有git in d:\\git

      然后我们需要将公钥复制c:\\users\\YOUR_USERNAME\\.sshd:\\git\\.ssh

      试试它是否有效

    2023-01-29 18:29 回答
  • 删除密钥:rhc sshkey-remove您也可以从管理控制台删除它们,方法是访问https://openshift.redhat.com/app/console/settings

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

    保存.在此尝试之后git clone,它应该适合您.

    2023-01-29 18:29 回答
  • 对我有用的是使用Git Bash生成密钥

    ssh-keygen -t rsa -b 4096 -C "your_email@example.com"
    

    然后将密钥添加到ssh-agent此处所述

    https://help.github.com/articles/generating-a-new-ssh-key/

    2023-01-29 18:29 回答
  • 有同样的问题,浪费了几个小时,我正在使用centos 7.以下解决了我的问题.

    在linux上:

      "cd /home/your_username/.ssh"

      查看"id_rsa.pub"并复制内容

      在openshift中,从UI创建一个键并粘贴"*.pub"文件中的内容

      保存新密钥

      尝试从本地计算机重新连接

    希望以上有所帮助.请注意,在Mac上它工作从单词go只有linux游戏我的错误.

    2023-01-29 18:29 回答
撰写答案
今天,你开发时遇到什么问题呢?
立即提问
热门标签
PHP1.CN | 中国最专业的PHP中文社区 | PNG素材下载 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有