Reputation: 16403
I want to open an ssh session in particular directory on openshift. If I type
rhc ssh myapp "cd app-root/repo ; bash"
it does open a session in that particular directory, and I can type commands, but there is no command prompt. If I just type
rhc ssh myapp
I do get the command prompt. How do I get the command prompt back when I add the cd app-root/repo ; bash
?
Upvotes: 1
Views: 36
Reputation: 26016
Use -t
switch to force TTY allocation on the server:
rhc ssh --ssh "ssh -tt" myapp "cd app-root/repo ; bash"
should do the job.
Upvotes: 1