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

为君一笑 提交于 2019-12-07 02:28:53

问题


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?


回答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




回答2:


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




回答3:


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

Bugzilla report




回答4:


Did you try:

rhc ssh appname

Worked fine for me



来源:https://stackoverflow.com/questions/25491464/how-to-ssh-into-openshift-app-using-the-rhc-command-on-windows

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!