Github Windows 没有让我登录 PuTTy
Github not logging me in on PuTTy on Windows
当我尝试在 Windows 上使用 PuTTy 登录 GitHub 时,出现此错误
Username for 'https://github.com': hamood765
Password for 'https://hamood765@github.com':
remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead.
remote: Please see https://github.blog/2020-12-15-token-authentication-requirements-for-git-operations/ for more information.
fatal: unable to access 'https://github.com/hamood765/Testrepo.git/': The requested URL returned error: 403
我已经尝试用个人访问令牌替换我的密码,但没有任何效果。
有谁知道如何解决这个错误?
您可以将 ssh 密钥添加到您的帐户。
然后,在您的存储库中设置新来源。
git remote set-url origin ssh://git@github.com/<username>/<repo>
当我尝试在 Windows 上使用 PuTTy 登录 GitHub 时,出现此错误
Username for 'https://github.com': hamood765
Password for 'https://hamood765@github.com':
remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead.
remote: Please see https://github.blog/2020-12-15-token-authentication-requirements-for-git-operations/ for more information.
fatal: unable to access 'https://github.com/hamood765/Testrepo.git/': The requested URL returned error: 403
我已经尝试用个人访问令牌替换我的密码,但没有任何效果。 有谁知道如何解决这个错误?
您可以将 ssh 密钥添加到您的帐户。
然后,在您的存储库中设置新来源。
git remote set-url origin ssh://git@github.com/<username>/<repo>