remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead.

往github上提交代码时报这个错错:8月13号开始密码不好使,用token代替

1. 如何生成token

  1. 个人设置 => Setting
    remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead.

  2. 找到 Developer settings
    remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead.

  3. Personal access tokens
    remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead.

  4. Generate new token
    remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead.

  5. 设置token的有效期,访问权限等

  • 选择要授予此令牌token的范围或权限。
  • 要使用token从命令行访问仓库,请选择repo。
  • 要使用token从命令行删除仓库,请选择delete_repo
  • 其他根据需要进行勾选

remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead.

  • token生成
    remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead.
    记得保存下来,页面刷新后生成的token就看不到了

2.token的好处

相较于密码验证身份,token(令牌)更加安全

唯一: 令牌特定于 GitHub,可以按使用或按设备生成

可撤销:可以随时单独撤销令牌,而无需更新未受影响的凭据

有限 : 令牌可以缩小范围以仅允许用例所需的访问

随机:令牌不需要记住或定期输入的更简单密码可能会受到的字典类型或蛮力尝试的影响

参考博客:https://blog.csdn.net/weixin_41010198/article/details/119698015

remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead.

上一篇:微信公共平台开发-(.net实现)1--成为开发者


下一篇:python3对接BerkeleyDB