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

Posted 柳鲲鹏

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了git sync fatal: Authentication failed for https://github.com/ did not exit cleanly (exit code 128)(代相关的知识,希望对你有一定的参考价值。

  • 具体错误
git.exe push -v --progress "origin" master:master
Logon failed, use ctrl+c to cancel basic credential prompt.
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: Authentication failed for 'https://github.com/quantum6/openjdk8-x86-amd64/'
Pushing to https://github.com/quantum6/openjdk8-x86-amd64


git did not exit cleanly (exit code 128) (25678 ms @ 2021/10/23 19:23:09)

原因是不支持密码方式了 

  • 产生KEY

打开git-bash输入命令:

ssh-keygen -t rsa -b 4096

cat ~/.ssh/id_rsa.pub
ssh-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:

quantum6
SHA256:wfqWASnmKIG1jDntX9bxB2xTJKOwWp4Z8BbuONCGpbk

If you believe this key was added in error, you can remove the key and disable
access at the following location:

https://github.com/settings/keys

 

以上是关于git sync fatal: Authentication failed for https://github.com/ did not exit cleanly (exit code 128)(代的主要内容,如果未能解决你的问题,请参考以下文章

Err "Kernel panic - not syncing: Fatal exception"

出现kernel panic not syncing :fatal exception错误后通过禁用selinux启动系统

repo sync 更新源码 android-12.0.0_r34, fatal: 不能重置索引文件至版本 ‘v2.27^0‘。

repo sync 更新源码 android-12.0.0_r34, fatal: 不能重置索引文件至版本 ‘v2.27^0‘。

2022-07-10:以下go语言代码输出什么?A:A,B;B:A,C:A,fatal error;D:fatal error... func main() { var m sync.Mute

git 解决fatal: Not a git repository