ssh: connect to host github.com port 22: Operation timed out
这篇文章发表于 2023年08月19日,星期六,14:53
使用git push
向github推代码时报如下错误:
ssh: connect to host github.com port 22: Operation timed out fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.
这是防火墙组织了22端口。
修改.ssh
下的config
文件即可
Host github.com HostName ssh.github.com Port 443 User git
HostName改为 ssh.github.com
,Post
改为443端口即可。
关于博主: 评论和私信会在第一时间回复
版权声明: 本博客所有文章除特别声明外,均采用 BY-NC-SA 许可协议。转载请注明出处!