Error in libcrypto 问题纪录

这几天重新开始配置了 hexo 博客,今天换到笔记本上推送的时候报了如题上面的错误。但是服务器密钥是从 git 仓库拷贝过来的,其他配置也都正确。那是怎么回事呢。

1
2
3
4
nothing to commit, working tree clean
Load key "C:\\Users\demo\.ssh\git": error in libcrypto
git@1.2.3.4: Permission denied (publickey).
fatal: Could not read from remote repository.

如果能确保密钥文件内容不变的话,查看下是不是文件的换行符格式被改了,我这边通过 git 同步下来的推送密钥就被改成了 CR LF,我们手动修改成 Unix 的就可以了。

image-20240602231730216


Error in libcrypto 问题纪录
https://blog.404503.xyz/2024/06/02/Error-in-libcrypto-问题纪录/
作者
XiaoGang
发布于
2024年6月2日
许可协议