In this recipe, you will learn how to view the gear directory listing without performing SSH into the server using rhc.
To step through this recipe, you will need rhc installed on your machine. Also, we will use the OpenShift application created in the Creating an OpenShift application using the rhc command-line client recipe.
To run the
ls command without performing SSH into the application server, you should run the following command:
$ rhc app-ssh --app myapp --command ls
rhc ssh command is a short hand for
rhc app-ssh. Both these commands allow you to SSH into an application gear.
rhc app-ssh command internally uses the SSH command-line ...