简体   繁体   中英

Permission denied (publickey,gssapi-keyex,gssapi-with-mic) in OpenShift

While trying to ssh into OpenShift (DIY instance), I am getting this message:

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

I did the following:

  • I pasted the public key through the online interface in OpenShift.
  • I was able to clone and push changes to the git repo they provided.
  • The permissions for my private key is 400 (Even changed it to 600, 700 and 755 but no avail).
  • Checked the known_hosts file and the instance info got added their already.
  • ssh -vv ssh://54191dcf5973cac267000c76@diy-jikslight.rhcloud.com 2&> c.log
  • Log file: c.log
  • Ran rhc setup when nothing worked, but nothing changed.
  • I am using OSX Mavericks, iTerm2 and zsh.

Any idea why this happens when my git pulls and pushes are accepted?

Try logging in the server using: $ ssh 54191dcf5973cac267000c76@diy-jikslight.rhcloud.com

The above error comes when the server can't authenticate your private key. Make sure your current terminal's home directory has the private key whose public key pair resides on server.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM