How to ssh into openshift app using the 'rhc' command on windows?
Asked Answered
M

4

6

I am trying to ssh (from windows) into my Openshift app using the 'rhc' command

rhc app-ssh <app name>

I have followed the Openshift instruction here:

https://www.openshift.com/forums/openshift/how-to-rhc-app-ssh-command

Putty is returning the error "Putty Command Line Error: unknown option "-V" and then fails. My google searches indicate putty has a "-v" (lowercase) option for turning on Verbose. I'm not sure if it's one in the same.

If I use the Putty GUI everything works fine. I would like to figure out how to ssh into my openshift app using the command line.

How do I ssh into my openshift app using the 'rhc' command on windows?

Middlebrooks answered 25/8, 2014 at 17:43 Comment(0)
M
0

It's a bug in RHC for windows. They fixed it in a forked version.

Bugzilla report

Middlebrooks answered 20/10, 2014 at 23:6 Comment(0)
A
1
  • First you need to generate private and public key. You can use puttygen to do that.
  • Then you should import public key into your OpenShift account.
  • And then use private key with putty.

Here is detailed instruction with illustrations

Ahq answered 11/1, 2015 at 22:3 Comment(0)
L
0

Did you try running the rhc setup command first to see if everything is configured correctly?

Laurenlaurena answered 25/8, 2014 at 18:0 Comment(1)
RHC setup was run and reported back everything was configured. I got the same error when I tried 'rhc app-ssh <app-name>. Putty is not liking the command line arguments that rhc is sending to it. Any other ideas?Middlebrooks
M
0

It's a bug in RHC for windows. They fixed it in a forked version.

Bugzilla report

Middlebrooks answered 20/10, 2014 at 23:6 Comment(0)
A
0

Did you try:

rhc ssh appname

Worked fine for me

Artificiality answered 8/3, 2016 at 10:29 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.