Failed to connect to github.com port 443 after 21067 ms: Could not connect to server
添加到 GitHub Settings → SSH and GPG keys。
·
SSH连接方案
-
生成SSH密钥
bash
ssh-keygen -t ed25519 -C "your_email@example.com"
-
添加密钥到ssh-agent
bash
eval "$(ssh-agent -s)" ssh-add ~/.ssh/id_ed25519
-
在GitHub账户添加公钥
-
复制
cat ~/.ssh/id_ed25519.pub输出内容 -
添加到 GitHub Settings → SSH and GPG keys
-
-
测试SSH连接
bash
ssh -T git@github.com
更多推荐
所有评论(0)