ssh:connect to host github.com port 22 发表于 2025-05-11 相关链接知乎链接 相关问题部分截图如下: 问题描述本地仓库在推送到github远端仓库时出现报错如下 123456> git pull --tags origin mainssh: connect to host github.com port 22: Connection timed outfatal: Could not read from remote repository.Please make sure you have the correct access rightsand the repository exists. 解决方案新建~/.ssh/config文件, 写入如下内容 123Host github.com Hostname ssh.github.com Port 443 保存后问题解决