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.

      

+4


source to share


6 answers


Are you using Cygwin terminal? Try to install CF tool on Windows workstation directly if you are. Known issue with running CF with Cygwin.



+4


source


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.

+1


source


Guess you are using Git Bash under Windows OS, this is a known issue. Suggest using cmd.exe instead.

0


source


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'

      

0


source


I just have the same problem and am currently trying it on Mac Bash.

0


source


First try logging into the http://bluemix.net user interface . If that doesn't work, you probably need to reset your password.

-2


source







All Articles