git命令无法拉取最新代码 发表于 2023-01-28 1git pull origin master 显示 timeout 但网页可以访问github.com 12345ssh -vvv git@github.comdebug1: Connecting to github.com port 22.ssh: connect to host github.com port 22: Operation timed out 1telnet github.com 22 连不上 1234➜ bang-api git:(master) telnet github.com 443Trying 198.18.0.118...Connected to github.com.Escape character is '^]'. 使用的IP不是一个公网IP,同事是可以的,从同事哪里要了一个正确的IP,修改hosts 123sudo vi /etc/hosts20.205.243.166 github.com 然后就可以了