【问题标题】:Still have a problem even after activating TLS1.2 on windows7即使在 Windows 7 上激活 TLS1.2 后仍然有问题
【发布时间】:2022-01-22 07:52:52
【问题描述】:

我正在尝试使用远程命令在 Github 上上传一个项目,我得到了这个:

致命: Une erreur s'est produite lors de l'envoi de la demande。 致命的:La demande a été放弃:Impossible de créer un canal sécurisé SSL/TLS。 “https://github.com”的用户名:meriam-hamdaoui “https://meriam-hamdaoui@github.com”的密码: remote:对密码身份验证的支持已于 2021 年 8 月 13 日移除。请改用个人访问令牌。 远程:请参阅https://github.blog/2020-12-15-token-authentication-requirements-for-git-operations/ 了解更多信息。 致命:“https://github.com/meriam-hamdaoui/testing-again.git/”的身份验证失败

我查看了谷歌,所以我更新了我的系统我激活了 TLS1.2 然后我执行了这两行:

 $unset SSH_ASKPASS

$ git push -u origin main

我在网页上得到“身份验证成功”,但仍然得到这个:

致命: Une erreur s'est produite lors de l'envoi de la demande。 致命的:La demande a été放弃:Impossible de créer un canal sécurisé SSL/TLS。 “https://github.com”的用户名:meriam-hamdaoui “https://meriam-hamdaoui@github.com”的密码: remote:对密码身份验证的支持已于 2021 年 8 月 13 日移除。请改用个人访问令牌。 远程:请参阅https://github.blog/2020-12-15-token-authentication-requirements-for-git-operations/ 了解更多信息。 致命:“https://github.com/meriam-hamdaoui/testing-again.git/”的身份验证失败

谁能告诉我如何解决这个问题??

【问题讨论】:

    标签: git github tls1.2


    【解决方案1】:

    这应该与您对 GitHub 帐户密码的使用有关,而不是与 TLS 相关。

    尝试使用PAT (a Personal Access Token) 代替您的密码进行相同的推送。那么它应该可以工作了。

    如果 Git 从未提示您输入凭据,请检查您的 git configi credential helper 和 remove the old credentials from your credentials cache

    【讨论】:

    • 我在另一个项目中遇到了同样的问题,但解决方案不起作用
    • @maya 在另一个项目上,git remote -v 返回什么? (你的 git 版本是什么?git version 会显示它)
    • 'git remote -v' 返回 >origin github.com/meriam-hamdaoui/first-website.git (fetch) >origin github.com/meriam-hamdaoui/first-website.git (push) 我的 git 版本是 2.34.1.windows.1
    • 好吧,我创建了另一个令牌并且它起作用了,我想我每次都需要一个新令牌,谢谢 :)
    猜你喜欢
    • 2021-10-14
    • 2017-08-16
    • 2021-08-16
    • 1970-01-01
    • 2017-03-03
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-03-31
    相关资源
    最近更新 更多