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> (D:\realworspace\blog\main\node_modules\hexo-deployer-git\node_modules\hexo-util\lib\spawn.js:51:21) at ChildProcess.emit (node:events:514:28) at cp.emit (D:\realworspace\blog\main\node_modules\cross-spawn\lib\enoent.js:34:29) at ChildProcess._handle.onexit (node:internal/child_process:294:12)
修复思路
更换 ssh host 地址
更换git的方式用http
deploy.git-log检查 针对问题修复
修复成功
使用GitHub的443端口
1 2 3 4 5 6 7 8 9 10
$ vim ~/.ssh/config ``` # Add section below to it Host github.com Hostname ssh.github.com Port 443 ``` $ ssh -T git@github.com Hi xxxxx! You've successfully authenticated, but GitHub does not provide shell access.