Home     About Us     RSSRSS

WARNING: UNPROTECTED PRIVATE KEY FILE!

April 2, 2016 by @HKw@! | Filed under centos, Debian, Fedora, Linux, RedHat, Ubuntu.

When i transfer my private key file to my new Mac OS X, i got an error message below:-

lims-air:~ techkaki$ ssh techkaki@ns1.test.my
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@         WARNING: UNPROTECTED PRIVATE KEY FILE!          @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Permissions 0755 for ‘/Users/techkaki/.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.
bad permissions: ignore key: /Users/techkaki/.ssh/id_rsa
techkaki@ns1.test.my’s password:

If you are getting this error then you probably reset the permissions on your hidden .ssh directory in your user folder.

So, the solution for this is, make that file(id_rsa) readable or writable only for the owner with private key. Below is the command

sudo chmod 600 ~/.ssh/id_rsa

After change the permission, my problem is solved.

 

← Previous

Leave a Reply

Your email address will not be published. Required fields are marked *