I'm hosting 5 of my sites on OpenShift. Sometimes I need to connect to my applications through ssh. On Windows, I'm using putty to do that.

Here is small "how-to" about connecting to the OpenShift application.

First, you need a private and a public keys. To generate them you need puttygen

Open puttygen and press generate:

puttygen

 

Move your mouse in "Key" area until progress bar is full.

Then type your passphrase and press save private key.

puttygen

Also, copy all text from Public key section (starts from ssh-rsa)

Now go to OpenShift web interface. Select settings and press "Add a new key..." button.

Insert public key here

OpenShift add key

Press 'Create'. Now you OpenShift account is ready to recieve connections subscribed with generated private key, but you need to know where to connect.

Go to your application and copy username and host address

openshift url

Now open putty and past it there:

putty

 

Go to Connection -> SSH -> Auth and set Private key file for authentication

putty

Now save putty session and connect to OpenShift application.