【问题标题】:How to ssh into openshift app using the 'rhc' command on windows?如何在 Windows 上使用“rhc”命令 ssh 进入 openshift 应用程序?
【发布时间】:2014-10-18 22:21:14
【问题描述】:

我正在尝试使用 'rhc' 命令通过 ssh(从 Windows)进入我的 Openshift 应用程序

rhc app-ssh <app name>

我在这里遵循了 Openshift 指令:

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

Putty 返回错误“Putty 命令行错误:未知选项“-V”然后失败。我的谷歌搜索表明 putty 有一个“-v”(小写)选项用于打开 Verbose。我不确定是否是一回事。

如果我使用 Putty GUI,一切正常。我想弄清楚如何使用命令行 ssh 进入我的 openshift 应用程序。

如何在 Windows 上使用 'rhc' 命令通过 ssh 连接到我的 openshift 应用程序?

【问题讨论】:

    标签: windows openshift putty openshift-client-tools


    【解决方案1】:
    • 首先您需要生成私钥和公钥。你可以使用 puttygen 来做到这一点。
    • 然后您应该将公钥导入您的 OpenShift 帐户。
    • 然后在 putty 中使用私钥。

    这里有详细的instruction with illustrations

    【讨论】:

      【解决方案2】:

      您是否尝试先运行 rhc setup 命令以查看是否所有配置正确?

      【讨论】:

      • RHC 安装程序已运行并报告一切已配置。当我尝试 'rhc app-ssh . Putty 不喜欢 rhc 发送给它的命令行参数。还有其他想法吗?
      【解决方案3】:

      这是 Windows RHC 中的一个错误。他们将其修复为分叉版本。

      Bugzilla report

      【讨论】:

        【解决方案4】:

        你试过了吗:

        rhc ssh appname
        

        对我来说很好用

        【讨论】:

          猜你喜欢
          • 2013-06-29
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 2014-08-03
          • 1970-01-01
          • 1970-01-01
          • 2023-03-19
          • 1970-01-01
          相关资源
          最近更新 更多