git pull 报错:ssh: connect to host github.com port 22: Connection timed out

在执行 git pull 时提示错误:

ssh: connect to host github.com port 22: Connection timed out

解决方案:
  1. 添加 config 文件
    vim ~/.ssh/config

  2. 添加如下内容

Host github.com
 Hostname ssh.github.com
 Port 443

ssh: connect to host github.com port 22: Connection timed out

posted @ 2024-01-16 21:55  Jeffxue  阅读(224)  评论(0编辑  收藏  举报