1200字范文,内容丰富有趣,写作的好帮手!
1200字范文 > git sync fatal: Authentication failed for https://github.com/ did not exit cleanly (exit code 128)

git sync fatal: Authentication failed for https://github.com/ did not exit cleanly (exit code 128)

时间:2021-04-18 07:28:20

相关推荐

git sync fatal: Authentication failed for https://github.com/ did not exit cleanly (exit code 128)

具体错误

D:\github\openjdk8-x86-amd64-arm64-aarch64>git push origin masterinfo: please complete authentication in your browser...fatal: An error occurred while sending the request.fatal: The request was aborted: Could not create SSL/TLS secure channel.Username for '': quantum6Password for 'https://quantum6@':remote: Support for password authentication was removed on August 13, . Please use a personal access token instead.remote: Please see https://github.blog/-12-15-token-authentication-requirements-for-git-operations/ for more information.fatal: Authentication failed for '/quantum6/openjdk8-x86-amd64-arm64-aarch64/'

原因是不支持密码方式了,改用令牌token

产生KEY

打开git-bash输入命令:

ssh-keygen -t rsa -b 4096cat ~/.ssh/id_rsa.pubssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDE3Xu+zoNiZFmASBRDK+vKSTYkuqFPH8VisOfS/VH0jEdPoIXK9wAmVQwjy1EYtzInCUFbVBpdKM5GshPQrKhkLTA9oAbnANfLVtTx1iA10q4G5KyfB9RLgp8fG5nJDrZEvNLFwp+9MCwyU55jcgdbcOQyJQXA3GWGKE4c+WNViAUmrPpeYGvVmz5WLh8lCpZFpPjlPZpvjSTJfw== quantum6@WIN7

GITHUB新建SSHKEY

Sign in to GitHub · GitHub

SSH Keys

把cat内容复制到网页。

收到的邮件

The following SSH key was added to your account:quantum6SHA256:wfqWASnmKIG1jDntX9bxB2xTJKOwWp4Z8BbuONCGpbkIf you believe this key was added in error, you can remove the key and disableaccess at the following location:/settings/keys

新建令牌。直接打开

/settings/tokens/new

修改Expiration为No expiration(或者其他),所有的都选上(以后搞清楚了再定制新的)。点击Generate token。复制token令牌,类似:

ghp_EGL3ejUIdtAUwMs1fe6mIeefc2Amn3f9SvB

修改配置,更新代码

全网首发:github已经设置了令牌token,为什么还要验证用户密码_柳鲲鹏-CSDN博客

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。