O'Reilly logo

OpenShift Cookbook by Shekhar Gulati

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

SSH into the application gear using rhc

In this recipe, you will learn how to use rhc to SSH into the application gear.

Getting ready

In order to complete this recipe, you will need rhc installed on your machine. Also, you will need to make use of the OpenShift application created in The Creating an OpenShift application using the rhc command-line client recipe.

How to do it…

To SSH into the application gear, open a new command-line terminal and run the following command:

$ rhc ssh --app myapp

The --app option is not required if you are running the command within the application Git repository.

How it works…

Every OpenShift application gear acts and behaves like a virtual server that you can access using SSH. A gear is assigned a unique user ID and ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required