Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can not SSH to openshift

Tags:

ssh

openshift

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?

like image 308
Thang Nguyen Avatar asked Dec 17 '13 01:12

Thang Nguyen


1 Answers

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).

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.

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

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

like image 139
Sagan Avatar answered Sep 21 '22 14:09

Sagan