这几天发现博客推不上去了
SSH一直连接超时

1
2
3
4
5
6
7
8
9
10
ssh: connect to host github.com port 22: Connection timed out
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
FATAL Something's wrong. Maybe you can find the solution here: https://hexo.io/docs/troubleshooting.html
Error: Spawn failed
at ChildProcess.<anonymous> (/data/data/com.termux/files/home/hexo/node_modules/hexo-util/lib/spawn.js:51:21)
at ChildProcess.emit (node:events:513:28)
at ChildProcess._handle.onexit (node:internal/child_process:291:12)

22端口被墙,443端口仍然可以Ping通

启用hosts

访问https://hosts.gitcdn.top/hosts.txt
获取最新hosts,添加至系统

更换443端口

在.ssh/config,写入

1
2
Host github.com
Hostname 20.205.243.160