作为断电的一部分,密码身份验证被暂时禁用.请改用个人访问令牌 [英] Password authentication is temporarily disabled as part of a brownout. Please use a personal access token instead

查看:43
本文介绍了作为断电的一部分,密码身份验证被暂时禁用.请改用个人访问令牌的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用用户名密码来推送我的代码,它工作了几个月但突然我无法做到并收到此错误:

'https://github.com' 的用户名:shreyas-jadhavhttps://shreyas-jadhav@github.com"的密码:远程:作为断电的一部分,密码身份验证被暂时禁用.请改用个人访问令牌.远程:请参阅 https://github.blog/2020-07-30-token-authentication-requirements-for-api-and-git-operations/了解更多信息.

请注意,该链接没有帮助.即使使用生成的令牌也无济于事.

<块引用>

版主注意:这是

按照建议,我去了

我删除了(所有)GitHub 行

现在我去了终端并推送了一个虚拟代码

git push

终端要求我输入帐户的电子邮件和密码.

我输入了我的电子邮件,并输入了我之前生成的令牌作为密码.

它又开始工作了.

I was using a username password for pushing my code, it was working for several months but suddenly I'm not able to do it and getting this error:

Username for 'https://github.com': shreyas-jadhav
Password for 'https://shreyas-jadhav@github.com': 
remote: Password authentication is temporarily disabled as part of a brownout. Please use a personal access token instead.
remote: Please see https://github.blog/2020-07-30-token-authentication-requirements-for-api-and-git-operations/ for more information.

Please note that the link doesn't help. Even using the generated token doesn't help.

Moderator Note: This is part of a planned and soon-to-be permanent service change by GitHub

解决方案

EDIT

Previously accepted answer https://stackoverflow.com/a/68192528/15507251 does the job, but it is not safe because we store the token in plain text.

Storing it in the keychain is the better approach in my honest opinion.

For Visual Studio Code please read this answer: https://stackoverflow.com/a/68192584/7942242

For Windows:

you can try the @Venryx comment below but I haven't tested it.


For Mac:

I just faced this issue now

As suggested, I went to the dev settings by following this url and generated a token

Then I went to my key chain access in my Mac

I deleted (all) the row for GitHub

Now I went to the terminal and pushed a dummy code

git push

Terminal asked me to enter the email and password for my account.

I entered my email and, for the password, I entered the token that I generated earlier.

And it started to work again.

这篇关于作为断电的一部分,密码身份验证被暂时禁用.请改用个人访问令牌的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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