Permissions 0644 for '/Users/xxx/.ssh/id_rsa' are too open

如果你在配置git仓库或者通过秘钥登陆其他系统出现如下报错:

Permissions 0644 for '/Users/xxx/.ssh/id_rsa' are too open

使用命令改变一下私钥的权限

chmod 400 ~/.ssh/id_rsa

在重新测试一下即可

 

posted @ 2021-11-22 18:00  iDropper  阅读(840)  评论(0编辑  收藏  举报