简体   繁体   English

OpenShift中的权限被拒绝(公钥,gssapi-keyex,gssapi-with-mic)

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

While trying to ssh into OpenShift (DIY instance), I am getting this message: 尝试通过ssh进入OpenShift(DIY实例)时,出现以下消息:

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

I did the following: 我做了以下事情:

  • I pasted the public key through the online interface in OpenShift. 我通过OpenShift的在线界面粘贴了公钥。
  • I was able to clone and push changes to the git repo they provided. 我能够克隆更​​改并将其推送到他们提供的git repo中。
  • The permissions for my private key is 400 (Even changed it to 600, 700 and 755 but no avail). 我的私钥的权限为400(即使将其更改为600、700和755,也无济于事)。
  • Checked the known_hosts file and the instance info got added their already. 检查了known_hosts文件,实例信息已添加。
  • ssh -vv ssh://54191dcf5973cac267000c76@diy-jikslight.rhcloud.com 2&> c.log
  • Log file: c.log 日志文件: c.log
  • Ran rhc setup when nothing worked, but nothing changed. 在没有任何效果但没有任何更改的情况下运行rhc setup
  • I am using OSX Mavericks, iTerm2 and zsh. 我正在使用OSX Mavericks,iTerm2和zsh。

Any idea why this happens when my git pulls and pushes are accepted? 知道为什么当我的git pull和push被接受时会发生这种情况吗?

Try logging in the server using: $ ssh 54191dcf5973cac267000c76@diy-jikslight.rhcloud.com 尝试使用以下命令$ ssh 54191dcf5973cac267000c76@diy-jikslight.rhcloud.com服务器: $ 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. 确保当前终端的主目录具有私钥,其公钥对位于服务器上。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 无法通过ubuntu中的配置文件将ssh连接到ec2。 权限被拒绝(公钥,gssapi-keyex,gssapi-with-mic) - Unable to connect ssh to ec2 through config file in ubuntu. Permission denied (publickey,gssapi-keyex,gssapi-with-mic) SSH错误:权限被拒绝(publickey,gssapi-with-mic) - SSH Error: Permission denied (publickey,gssapi-with-mic) 错误:权限被拒绝(公钥) - Error: Permission denied (publickey) SourceTree 总是权限被拒绝(公钥) - SourceTree always Permission denied (publickey) GitLab SSH 权限被拒绝(公钥) - GitLab SSH Permission denied (publickey) Permission denied (publickey)(我可以登录Tiger但不能上传文件) - Permission denied (publickey)(I can log in Tiger but can not upload the file) 自从升级到macOS 10.12(Sierra)以来,在使用Capistrano部署代码时遇到了问题,“Permission denied(publickey)”。 - Problems deploying code with Capistrano since upgrading to macOS 10.12 (Sierra), “Permission denied (publickey).” git@github.com:执行 brew cask 安装“程序”时权限被拒绝(公钥) - git@github.com: Permission denied (publickey) when doing a brew cask install “program” mkdir()权限被拒绝-PHP - mkdir() permission denied - PHP Ionic 2权限在OSX上被拒绝 - Ionic 2 Permission Denied on OSX
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM