WARNING: UNPROTECTED PRIVATE KEY FILE!

If you are getting this kind of error the the permissions on your files are modified incorrectly:

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@         WARNING: UNPROTECTED PRIVATE KEY FILE!          @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Permissions 0744 for '/home/your_name/.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.
bad permissions: ignore key: /home/your_name/.ssh/id_rsa





@ .ssh $ ls -alt
..
-rw-r--r--@  1 your_name  staff   222 Nov 26  2012 id_rsa.pub
-rw-r--r--   1 your_name  staff   887 Nov 20  2012 id_rsa
...
@ .ssh $ 

To fix this problem change permissions:

@ .ssh $ chmod 600 id_rsa
@ .ssh $ chmod 600 id_rsa.pub
@ .ssh $ ls -alt
total 80
...
-rw-------@  1 uki  staff   222 Nov 26  2012 id_rsa.pub
-rw-------   1 uki  staff   887 Nov 20  2012 id_rsa_cnh
...
@ .ssh $ 


No comments:

Post a Comment