Permissions 0644 for ‘/root/.ssh/id_rsa’ are too open.

部署内网服务器,用来替代旧服务器,于是连证书一并复制过来,当链接git服务器时提示了“Permissions 0644 for ‘/root/.ssh/id_rsa’ are too open.”

原来是我的.ssh id_rsa文件权限太大导致,于是使用如下操作进行修复:

1
chmod 0600 ~/.ssh/id_rsa