git - OpenShift : Unable to log in using rhc on Windows 7

标签 git bash authentication windows-7 openshift-client-tools

我在 Windows 7 上使用 Git Bash 通过 rhc 登录 OpenShift。当我在控制台中输入“rhc setup”时,我收到以下消息:

OpenShift Client Tools (RHC) Setup Wizard

This wizard will help you upload your SSH keys, set your application namespace, and check that other programs like Git are properly installed.

If you have your own OpenShift server, you can specify it now. Just hit enter to use the server for OpenShift Online: openshift.redhat.com. Enter the server hostname: |openshift.redhat.com|

我在没有输入任何主机名的情况下按下了回车键,我收到了以下消息:

You can add more servers later using 'rhc server'.

Using sh***@gmail.com to login to openshift.redhat.com Password:

然后我输入密码并按下回车键,但没有任何反应。我没有收到进一步的消息。我已经尝试过几次,但每次都会发生同样的事情。我也尝试从 .ssh 文件夹中删除 id_rsa 文件,但输入密码后仍然没有任何反应。我也再次检查了我的密码,我可以使用基于 Web 的控制面板毫无问题地登录。

rhc 在我第一次安装并成功登录时确实运行良好,但从那以后我就遇到了这个问题。现在已经有几天了。可能是什么问题?

最佳答案

我在 Windows 8 上遇到同样的问题。我输入密码后它挂起。无论我输入什么密码,行为都是一样的。以前,当我输入我的 Openshift 登录密码时,该命令继续执行。

您可以通过在命令中添加 --token 参数来解决这个问题。要找到 token ,登录到 Openshift,转到设置,向下滚动到授权并单击最新的 OpenShift 控制台行。这将显示 token 值以及如何使用它,例如

rhc 端口转发应用 --token xxxxxxxx

这很不方便,我想知道如何避免必须使用 --token 参数。

关于git - OpenShift : Unable to log in using rhc on Windows 7,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33098661/

相关文章:

facebook - 身份验证后xmpp登录失败

git - 权限被拒绝(公钥)。 heroku git :clone myapp - on Windows

regex - Linux 用包含双引号的变量替换

android - iOS/Android透明(隐形)认证

从 `systemd` 服务脚本中找不到 Python 模块

bash - 如何从 bash 的 PATH 环境变量中获取第一个目录?

authentication - Picketlink 没有选择我的用户定义的验证器

git - Azure - Kudu - 将更改推送回 git

git - 从 Git 存储库中提取特定版本文件

git - 由于 ECMDERR "Server aborted the SSL handshake",Bower 无法下载