GitHub Connection Deep Dive

今天在将hexo博客进行部署的时候突然发生以下报错:

1
2
3
4
5
6
7
8
9
10
11
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> (E:\Hexo-backup\node_modules\hexo-deployer-git\node_modules\hexo-util\lib\spawn.js:51:21)
at ChildProcess.emit (node:events:518:28)
at cp.emit (E:\Hexo-backup\node_modules\cross-spawn\lib\enoent.js:34:29)
at ChildProcess._handle.onexit (node:internal/child_process:293:12)

在CSDN找到相应问题文档,才成功解决!git报错ssh: connect to host github.com port 22: Connection timed out

  一直想购置服务器玩玩,正巧项目队需要搭建电商软件平台,又看到百度云服务器1折优惠,遂火速入手,虽与想象计划中的高性能服务器天差地别,但是还是满足了一个小心愿,第一次连上服务器的激动溢于言表!

Mac连接

直接在终端输入以下命令:

1
ssh +ip地址

Windows连接

安装MobaXterm进行连接

HTTPS

SSH


GitHub Connection Deep Dive
http://example.com/2025/08/27/Tutorial/GitHub-Connection-Deep-Dive/
Author
Li Qinxuan
Posted on
August 27, 2025
Updated on
September 28, 2025
Licensed under