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 myemail@gmail.com 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 5394cd33e0b8cde6ce000132@ghost-mydomain.rhcloud.com
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?
Had the same problem as described by OP. Interestingly, at first everything worked (git, rhc ssh, putty). And from one day to another the problem occured.
Neither creating new rsa keys nor installing another net-ssh version as described in one of the answers helped.
Finally I removed my application with help of the openshift web console and created it new. Now (using the rsa keys that didn't work before) git and putty work fine while rhc ssh still yields the error message "The server did not respond correctly."
I could overcome same problem by generating rsa key on my own as root, in the terminal run:
ssh-keygen
. Asks for a passphrase, then it generates the keys. When done, open the public key at /root/.ssh/id_rsa.pub, copy its content and paste it in openshift panel under Settings -> Add new key... button. Then runrhc ssh appname
and will ask for your passphrase and workThe similar problem was solved by changing the
net-ssh
gemand then install a stable version. I would suggest to avoid beta versions. because
2.9.3.beta
was giving me this problem and now2.9.2
working just fine.and also try to remove the old key, because there could be a possibility that public key is modified by another application or account.