正在验证...凭据被拒绝,请重试。使用Git Bash登录PCF时出现问题

时间:2019-02-28 16:22:32

标签: pcf pcfdev

我已经按照URL

  1. https://github.com/cloudfoundry/cli/issues/171
  2. Pivotal Cloud Foundry login issue

但是事情对我来说还没有解决。你能指导我吗?

$ cf login -a https://api.run.pivotal.io --skip-ssl-validation
API endpoint: https://api.run.pivotal.io

Email> pxxx.axxx@gmail.com
Authenticating...
Credentials were rejected, please try again.
Authenticating...
Credentials were rejected, please try again.
Authenticating...
Credentials were rejected, please try again.


API endpoint:   https://api.run.pivotal.io (API version: 2.131.0)
Not logged in. Use 'cf login' to log in.
FAILED
Unable to authenticate.

这是

$ cf --version
cf.exe version 6.40.0+07673feb9.2018-10-08

如果我尝试使用Windows CMD,则效果很好。作为Windows用户,我想使用Git Bash使其工作。有任何快速指示吗?

1 个答案:

答案 0 :(得分:0)

这似乎是已知问题,因为Windows仅支持cmd和powershell。
可以使用winpty

来解决
winpty cf login