今天在进行向ssh-agent服务中添加git密钥时,出现下面错误
Permissions 0644 for '/root/.ssh/id_rsa.pub' are too open.
It is required that your private key files are NOT accessible by others.
This private key will be ignored.
根据翻译应该是权限太大,访问太过随意,ssh自身的安全策略把我的操作命令拒绝了
修改把权限降低即可
chmod 0600 ~/.ssh/id_rsa.pub
解决,nice!