1. Open a terminal.
2. Navigate to the .ssh folder. Mostly located under your home directory.
3. Make sure that your private key file is located under the .ssh directory.
4. Type in the following command
chmod 0400 id_dsaNOTE: Where id_dsa is the filename of your private key file.
That's it! You're all done!