首页 Paddle框架 帖子详情
OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 10054问题解决办法
收藏
快速回复
Paddle框架 问答学习资料 1271 1
OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 10054问题解决办法
收藏
快速回复
Paddle框架 问答学习资料 1271 1


1.现象

fatal: unable to access 'https://github.com/livingbody/star_world/': OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 10054
(base) PS H:\livingbody\star_world>


2.原因
 

为了验证我的猜想,我需要查看这个项目的remote到底是什么,使用以下命令

 

(base) PS H:\livingbody\star_world\star_world> git config --get remote.origin.url
https://github.com/livingbody/star_world.git


 

3.解决办法

(base) PS H:\livingbody\star_world\star_world> git remote set-url origin git@github.com:livingbody/star_world.git
(base) PS H:\livingbody\star_world\star_world> git config --get remote.origin.url
git@github.com:livingbody/star_world.git
(base) PS H:\livingbody\star_world\star_world> git push
The authenticity of host 'github.com (52.78.231.108)' can't be established.
ECDSA key fingerprint is SHA256:p2QAMXNIC1TJYWeIOttrVc98/R1BUFWu3/LiyKgUfQM.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'github.com,52.78.231.108' (ECDSA) to the list of known hosts.
Enumerating objects: 4, done.
Counting objects: 100% (4/4), done.
Delta compression using up to 6 threads
Compressing objects: 100% (3/3), done.
Writing objects: 100% (3/3), 316 bytes | 158.00 KiB/s, done.
Total 3 (delta 0), reused 0 (delta 0)
To github.com:livingbody/star_world.git
  de0b886..2c6504f main -> main


 

4.总结分析
 

这次问题的解决涉及到两个核心知识。

ssh keys的正确设置
只有git协议才可以使用ssh-keys文件,从而实现一键git push。https协议只支持账户密码输入。雪上加霜的是,在今年8月13日以后,git不再支持https协议。

remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead.

0
收藏
回复
全部评论(1)
时间顺序
JavaRoom
#2 回复于2021-12

所以说用https下载和git@下载是不一样的。

0
回复
需求/bug反馈?一键提issue告诉我们
发现bug?如果您知道修复办法,欢迎提pr直接参与建设飞桨~
在@后输入用户全名并按空格结束,可艾特全站任一用户