Permission denied (publickey,gssapi-keyex,gssapi-with-mic) on openshift

前端 未结 11 1121
既然无缘
既然无缘 2021-02-03 23:52

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.

相关标签:
11条回答
  • 2021-02-04 00:09

    The following answer might be helpful. Add GSSAPIAuthentication no into .ssh/config

    $ cat .ssh/config
    Host *
      ServerAliveInterval 240
      GSSAPIAuthentication no
    
    0 讨论(0)
  • 2021-02-04 00:11

    Had the same issue and wasted hours, I'm using centos 7. The following solved my problem.

    On linux:

    1. "cd /home/your_username/.ssh"
    2. View "id_rsa.pub" and copy contents
    3. On openshift create a key from the UI and paste the contents from your "*.pub" file
    4. Save your new key
    5. Try reconnecting from your local machine

    Hope the above helps. Note, on mac it worked from the word go only linux game me errors.

    0 讨论(0)
  • 2021-02-04 00:14

    I would also recommend trying to SSH in first. With SSH use the -vv flag to show more of the connection information. My guess is that SSH is trying to use a different key than what you uploaded to the server

    0 讨论(0)
  • 2021-02-04 00:15

    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.

    0 讨论(0)
  • 2021-02-04 00:19

    if you are using Windows, you can try the following steps:

    1. look for your ssh public key usually you can find it at c:\\users\\YOUR_USERNAME\\.ssh

    2. copy your openshift public key to your git's ssh-key folder

      suppose we have git in d:\\git

      then we need to copy the public key from c:\\users\\YOUR_USERNAME\\.ssh to d:\\git\\.ssh

    3. try if it works

    0 讨论(0)
提交回复
热议问题