Unable to login to Openshift

HGB picture HGB · Jun 14, 2014 · Viewed 9.5k times · Source

I have been trying to connect to my application via Openshift for days and still have no luck.

I am no certain of which forum to go at this point because I am not getting help anywhere.

1) I am going via terminal and running sudo rhc setup (the reason why I am using sudo is because without it, it did not go to the next step)

2) I am then prompted to do the following:

This wizard will help you upload your SSH keys, set your application namespace, and check
that other programs like Git are properly installed.

Using an existing token for [email protected] to login to openshift.redhat.com

Saving configuration to /Users/myuser/.openshift/express.conf ... done

Checking for git ... found git version 1.9.2

Checking common problems .Enter passphrase for /Users/myuser/.ssh/id_rsa: 
Enter passphrase for /Users/myuser/.ssh/id_rsa: 
Enter passphrase for /Users/myuser/.ssh/id_rsa: 

3) I created this SSH key twice and it will never accept my password giving me the following error:

An SSH connection could not be established to ghost-mydomain.rhcloud.com. Your SSH
configuration may not be correct, or the application may not be responding. Could not    parse
PKey: no start line (ArgumentError)

4) Yet confusingly it gives me the following result

Checking for a domain ... mydomain

Checking for applications ... found 1

ghost http://ghost-mydomain.rhcloud.com/

You are using 1 of 3 total gears
The following gear sizes are available to you: small

Your client tools are now configured.

5) I then use the access command given on my application page:

ssh [email protected]

It prompts me to type in my password and no matter how many times I enter it, it fails: Saving password to keychain failed

What am I doing wrong? How can I simply login to openShift and use my application?

Answer

njjnex picture njjnex · Jan 4, 2015

When your got

SSH connection could not be established to myapp-mydomain.rhcloud.com. Your SSH configuration may not be correct, or the application may not be responding. Could not parse PKey: no start line (ArgumentError)

just delete ssh keys id_rsa from .ssh directory and than run rhc setup it will create new one for you with the same name.