Can't login to CF
I am having a problem using the cf command line. The password works for logging into the bluemix.net webpage, but not on the cf command line. What's wrong?
$ cf login
API endpoint> https://api.ng.bluemix.net
Email> xxxxxx@gmail.com
Password> Authenticating... Credentials were rejected, please try again.
Password> Authenticating... Credentials were rejected, please try again.
Are you using Cygwin terminal? Try to install CF tool on Windows workstation directly if you are. Known issue with running CF with Cygwin.
I may be responding to a very old post, but it might help someone.
When using cf login
in Cygwin, or git bash
provide username and password in the same command as below.
cf login [-a API_URL] [-u USERNAME] [-p PASSWORD]
This way you can log into PCF.
Guess you are using Git Bash under Windows OS, this is a known issue. Suggest using cmd.exe instead.
If you are using Cygwin or Git Bash, you can add winpty
before the command to make it work:
winpty cf login
And you can create an alias in your bash startup script to avoid typing winpty
every time:
alias cf='winpty cf'
I just have the same problem and am currently trying it on Mac Bash.
First try logging into the http://bluemix.net user interface . If that doesn't work, you probably need to reset your password.