Git出现错误
"C:\Program Files (x86)\Git\bin\git.exe" push -u --recurse-submodules=check -
-progress "origin" refs/heads/dev_civaplugin:refs/heads/dev_civaplugin
remote: Password authentication is not available for Git operations.
remote: You must use a personal access token or SSH key.
remote: See https://github.build.ge.com/settings/tokens or
https://github.build.ge.com/settings/ssh
fatal: unable to access
'https://github.build.ge.com/108012572/NextGenUT.git/': The requested URL
returned error: 403
Done
Press Enter or Esc to close console...
我使用git扩展成功地克隆了远程存储库,并能够创建新分支,但在尝试推送更改时出现上述错误。
我使用工具>putty>生成或导入密钥创建了公钥和私钥,我的电脑用户中没有.SSH文件夹。在GitHub上,我还创建了个人访问令牌,方法是Settings>Developer settings>Personal access tokens。对问题不是很清楚,任何输入都是很好的帮助。
ssh-rsa
开头的公钥(而不是私钥)。公钥文件应该以.pub
结尾;私钥文件应该没有.pub
文件结尾,并且其内容应该清晰地显示-----BEGIN OPENSSH PRIVATE KEY-----
。绝对不要将你的私钥交给第三方,例如Github。-- 此外,由于你只需要粘贴你的公钥,只要你的私钥没有被泄露,你就不必模糊公钥的摘要信息。 - George Pantazesgit push https://<GITHUB_ACCESS_TOKEN>@github.com/<GITHUB_USERNAME>/<REPOSITORY_NAME>.git
我的密码仍然被要求,并提示输入令牌标识。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.
有人遇到过同样的问题吗? - Drosera_capensis