nixcraft ([personal profile] nixcraft) wrote2017-01-26 04:20 pm

How To Fix SSH "WARNING: UNPROTECTED PRIVATE KEY FILE!" on Unix/MacOS/Linux

If you are getting this error then you probably reset the permissions on your keys:

chmod 0400 ~/.ssh/key
chmod 0700 ~/.ssh/
ssh -i ~/.ssh/key user@server




More info: Fixing ssh error.

Post a comment in response:

This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting