Pivotal Cloud Foundry登录问题 [英] Pivotal Cloud Foundry login issue

查看:77
本文介绍了Pivotal Cloud Foundry登录问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个PWS帐户,在安装Cloud Foundry命令行界面(CLI)之后,我尝试从Windows命令提示符,CYGWIN终端和Gitbash登录。
在上述所有情况下,我都无法通过 cf登录

I have a PWS account and after installing Cloud Foundry command line interface (CLI), I tried login from windows command prompt, CYGWIN terminal and Gitbash. In all the above cases, I cannot login by cf login

但是如果发出命令,我可以登录:
cf auth电子邮件密码
但是问题出在命令是我在命令行上公开密码。

But I am able to login if i issue the command: cf auth email password But the problem with this command is that I am exposing my password on the command line.

问题:我想知道Cloud Foundry命令行界面的用户如何登录PWS。

Question: I would like to know how users of Cloud Foundry Command Line Interface, login to the PWS.

更新04/29:分享尝试 cf登录 Cygwin Gitbash 中的c>。两者都给出相同类型的错误响应。
请注意,除非明确要求,否则我不想在命令行中将-p密码作为纯文本输入。

Update 04/29: Sharing what i see while trying cf login in Cygwin and Gitbash. Both gives the same type of error response. Note that I don't want to put -p password as plaintext in command line unless I am asked explicitly.

mypc /d/spiderman
$ cf login -a https://api.run.pivotal.io
API endpoint: https://api.run.pivotal.io

Email> myemail@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.80.0)
Not logged in. Use 'cf login' to log in.
FAILED
Unable to authenticate.

它甚至都不要求输入密码,并且响应无法身份验证!

在Windows命令提示符下:

In windows command prompt:

D:\spiderman>cf login
API endpoint: https://api.run.pivotal.io

Email> myemail@gmail.com

Password>  [I gave correct password]
Authenticating...
Credentials were rejected, please try again

@Kumaresh Babu
我尝试了您的建议,但仍然无法进行身份验证[在cygwin中尝试过]

@Kumaresh Babu I tried what you suggested and still unable to authenticate [Tried in cygwin]

mypc /d/spiderman
$ cf login -a https://api.run.pivotal.io --skip-ssl-validation -o my-org -s development API endpoint: https://api.run.pivotal.io

Email> myemail@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.80.0)
Not logged in. Use 'cf login' to log in.
FAILED
Unable to authenticate.

@Kumaresh Babu

@Kumaresh Babu

我尝试了Windows命令提示符中使用相同的命令,它确实有效,我能够登录。

I tried the same command in windows command prompt and it worked, I am able to login.

cf login -a https://api.run.pivotal.io --skip-ssl-validation -o my-org -s development
API endpoint: https://api.run.pivotal.io

Email> myemail@gmail.com

Password>
Authenticating...
OK

Targeted org my-org

Targeted space development



API endpoint:   https://api.run.pivotal.io (API version: 2.80.0)
User:           myemail@gmail.com
Org:            my-org
Space:          development


推荐答案

您可以尝试

cf login -a https://api.run.pivotal.io --skip-ssl-validation -o <Org_Name> -s <Space_Name>

这篇关于Pivotal Cloud Foundry登录问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆