解决hexo d 报超时的问题

本文最后更新于:June 20, 2022 pm

1、问题

运行hexo d时报错

image-20210425194953535

报错可以看出是连接超时的问题

2、解决

找到git的安装目录,找到ssh_config文件,使用记事本打开

image-20210425195146015

把如下内容复制到ssh_config文件中

1
2
3
4
5
6
Host github.com
User git
Hostname ssh.github.com
PreferredAuthentications publickey
IdentityFile ~/.ssh/id_rsa
Port 443

添加完成后如下图

image-20210425195319230

再次输入 hexo d 即可顺利运行

image-20210425195421262


本博客所有文章除特别声明外,均采用 CC BY-SA 4.0 协议 ,转载请注明出处!