环境:
windows 10
Git Bash
到这这个问题的原因可能是 ssh的公钥没有配置好;
具体检查的方法是:
windows上的公钥和密钥是放在了目录:
Step1 找到git的安装目录, 并找到
在该目录下 找到 .ssh
修改 ssh_config的配置即可
修改内容如下:
在文件中追加:
1
2 Host github.com
3
4 User git
5
6 Hostname ssh.github.com
7
8 PreferredAuthentications publickey
9
10 IdentityFile ~/.ssh/id_ed25519
11
12 Port 443
其中的 IdentityFile ~/.ssh/id_ed25519 需要换成自己的公钥路径;
做完以上步骤后就可以用git bash更新代码了;
;
Original: https://www.cnblogs.com/greentomlee/p/14613993.html
Author: 修雨轩陈
Title: 解决 git 上传: Failed to connect to github.com port 443: Timed out
原创文章受到原创版权保护。转载请注明出处:https://www.johngo689.com/566258/
转载文章受原作者版权保护。转载请注明原作者出处!