无法通过SSH进行openshift [英] Can not SSH to openshift

查看:158
本文介绍了无法通过SSH进行openshift的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在通过SSH访问Openshift时遇到问题. 我仍然可以通过Git将代码推送到Openshift.但是,当尝试通过SSH传输到Openshift时,服务器拒绝并显示错误消息没有可用的支持的身份验证方法(服务器发送:公钥,gssapi-keyex,gssapi-with-mic".我使用的是Windows 7.

I have problem with accessing SSH to Openshift. I still can push code to Openshift via Git. But when trying to SSH to Openshift, the server denied with error "no supported authentication methods available (server sent: public key, gssapi-keyex, gssapi-with-mic". I'm using Windows 7.

您知道问题出在哪里以及如何解决吗?

Do you know what's the problem and how to solve it?

推荐答案

此答案适用于Windows用户. 谁使用puttygen.exe生成了RSA密钥. 然后,您通过Web控制台将PUBLIC密钥添加到您的Openshift帐户中. 而且您可以在OK中输入PUTTY,但不能从GIT-BASH进行SSH(或者不能通过SSH进行git clone).

This answer is for Windows users. Who used puttygen.exe to generate your RSA keys. And you added the PUBLIC key to your Openshift account, via the web console. And you can PUTTY in OK, but not SSH from GIT-BASH (or cannot git clone via SSH).

一个常见的原因是puttygen.exe生成的密钥是PUTTY特定的文件. 您可以从puttygen.exe程序中将其转换为OPENSSH格式. (菜单>转化>导出OpenSSH密钥) 将其保存到与原始PUTTY生成的PUBLIC/PRIVATE密钥对相同的目录中的新文件.

One common reason is the key generated by puttygen.exe, is a PUTTY specific file. You can convert this to OPENSSH format, from within the puttygen.exe program. (Menu > Conversions > Export OpenSSH Key) Save it to a new file, in the same directory as your original PUTTY generated PUBLIC/PRIVATE key pair.

从〜/.ssh/config文件中引用此OPENSSH密钥. 如果没有此配置文件,请参见此处的步骤4. https://confluence.atlassian.com/display/BITBUCKET/Set + up + SSH + for + Git

Reference this OPENSSH key from your ~/.ssh/config file. See step 4 here, if you dont have this config file. https://confluence.atlassian.com/display/BITBUCKET/Set+up+SSH+for+Git

通过打开GIT-BASH进行测试,然后尝试使用您的特定"ssh user@yourhost.rhcloud.com"(不带引号,以及用户和您的主机特定于您的帐户的位置).如果可行,那么您应该很好...

Test by opening GIT-BASH, and trying your specific "ssh user@yourhost.rhcloud.com" (without the quotes, and where user and your host are specific to your account). If that works, you should be good to go...

这篇关于无法通过SSH进行openshift的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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