hexo的坑
mxlg Lv4

hexo push 到 GitHub 上,但是 git 报以下错误:

1
2
3
4
$ git push -u origin main
kex_exchange_identification: read: Connection reset by peer
Connection reset by 20.205.243.166 port 22
fatal: Could not read from remote repository.

后来用的解决方法,编辑修改 ~/.ssh/config 文件(不存在则新建):

1
2
3
4
5
# github
Host *github.com
PreferredAuthentications publickey
IdentityFile ~/.ssh/id_rsa
ProxyCommand connect -S 127.0.0.1:10808 -a none %h %p

安装next主题后本地服务打开网站乱码,原因是hexo在5.0之后把swig给删除了需要自己手动安装

1
npm i hexo-renderer-swig
由 Hexo 驱动 & 主题 Keep
访客数 访问量