Github enterprise - remote: Password authenticatio

2019-03-25 05:17发布

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

3条回答
何必那么认真
2楼-- · 2019-03-25 05:35
git remote set-url origin git@github.ibm.com:WBurney/Blockchain_SDO.git

The above git command will works

查看更多
forever°为你锁心
3楼-- · 2019-03-25 05:49

The accepted answer will work only for ssh, not for https.

The cache reset commends seems to have recently changed. For me that eventually made it work.

git credential reject
protocol=https
host=github.<YOUR_COMP>.com
查看更多
Deceive 欺骗
4楼-- · 2019-03-25 05:53

If you have registered a public ssh key to your GitHib 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
git push

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.

查看更多
登录 后发表回答