Can not SSH to openshift

2019-04-06 11:26发布

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?

标签: ssh openshift
8条回答
兄弟一词,经得起流年.
2楼-- · 2019-04-06 11:57

This answer is for Linux users. If you have the same problem, disabling GSSAPI may help.

Edit your ~/.ssh/config (user) or /etc/ssh/ssh_config (system-wide) file to set GSSAPIAuthentication no.

Source: Speed up SSH logon by disabling GSSAPIAuthentication

Connecting the SSH servers can sometimes be delayed when the client and server try to sort out if they should be using GSSAPI to authenticate.

查看更多
疯言疯语
3楼-- · 2019-04-06 12:01

I'm also using Windows 7 and I had the same problem.

I created ssh keys with rhc tool and then public key for putty (id_rsa.ppk). Their permissions (GIT Bash, "ls -l" command) were 700 (but I couldn't connect):

-rwx------+ 1 User123 None 1706 Mar  4 19:46 id_rsa
-rwx------+ 1 User123 None 1464 Mar  4 19:52 id_rsa.ppk
-rwx------+ 1 User123 None  394 Mar  4 19:46 id_rsa.pub

So I changed the permission (with chmod command) to 755:

-rwxr-xr-x+ 1 User123 None 1706 Mar  4 19:46 id_rsa
-rwxr-xr-x+ 1 User123 None 1464 Mar  4 19:52 id_rsa.ppk
-rwxr-xr-x+ 1 User123 None  394 Mar  4 19:46 id_rsa.pub

And then both git-bash and ssh from putty started working. I know that these are not the most secure permissions, but for me it's enough. It may also help to run git/putty as administrator, but I didn't try that.

查看更多
登录 后发表回答