手记

git clone 报错 Permissions 0777 for '~/.ssh/id_rsa' are too open.

报错内容

Permissions 0777 for ‘/Users/username/.ssh/id_rsa’ are too open.
It is recommended that your private key files are NOT accessible by others.
This private key will be ignored.

解决方案

chmod 600 ~/.ssh/id_rsa

原因

报错内容说的是你给这个密钥文件的权限太大了,所有它就不怎么安全了,所以降低一下这个文件的权限就好了

0人推荐
随时随地看视频
慕课网APP