首页
首页

hexo博客问题更新

2024-01-20

Error:Please make sure you have the correct access rights
and the repository exists.

解决方案:可能公钥出问题了,重新生成github里的ssh并部署到本地即可。

经测试还是不行,ping github.com 显示连接超时,

ssh: connect to host github.com port 22: Connection timed out

最终问题所在及解决方案如下:

解决方案:最近解析的github.com 域名被墙,在C盘——用户——你的主机名文件夹中找到.ssh文件夹;(此前配置SSH时会生成该文件夹)在.ssh文件夹中新建文件 config,不带后缀,添加如下:

Host github.com User YourEmail(你的邮箱)

Hostname ssh.github.com

PreferredAuthentications publickey

IdentityFile ~/.ssh/id_rsa

Port 443

再执行如下:

ssh -T git@github.com,按照提示输入 yes 即可。

🌹
加油,越来越好