210105-Permissions for .ssh/id_rsa are too open

ssh私钥权限问题,导致登录服务器时,提示异常

1
2
3
4
5
6
7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: UNPROTECTED PRIVATE KEY FILE! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Permissions 0750 for '/Users/user/.ssh/id_rsa' are too open.
It is required that your private key files are NOT accessible by others.
This private key will be ignored.
Load key "/Users/user/.ssh/id_rsa": bad permissions

解决这个问题的一个手段是将它的权限设置为700

1
chmod -R 700 .ssh/
Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×