gitgithubgithub-enterprise

Github enterprise - remote: Password authentication is not available for Git operations


My git was working fine, then without changing anything than the following problem started to happen, I have tried resetting the cache in

credentials.helper

and have gone through pretty much every stackoverflow answer I could find

remote: Password authentication is not available for Git operations.
remote: You must use a personal access token or SSH key.
remote: See https://github.ibm.com/settings/tokens or
'https://github.ibm.com/WBurney/Blockchain_SDO.git/': 
The requested URL returned error: 403

Thanks


Solution

  • If you have registered a public ssh key to your GitHub enterprise account, you could side-step the issue using an ssh url

    cd /path/to/repo
    git remote set-url origin git@github.ibm.com:WBurney/Blockchain_SDO.git
    

    Then any command like git push/git fetch/git pull/git ls-remote would use the SSH URL set by git remote set-url.

    But regarding your original issue, try and follow "Creating a personal access token for the command line".

    If you are on Mac, update your credentials from the OSX Keychain.

    You might need to remove an old cached credential first.
    (As commented by RayLoveless)

    As drazen Bjelovuk confirms in the comments:

    Updating the password to a personal token in my OSX Keychain worked for me.