Why is chmod 600 recommended on a public authorized_key??
When inserting (pasting) a public SSH key on a user’s folder, within a Droplet, Im seeing a lot of people urge to
chmod 700 ~/.ssh
and then to
chmod 600 ~/.ssh/authorized_keys
But if i *chmod 600 ~/.ssh/authorized_keys* with my user then i am not able to login via ssh, i need to change it to *chmod 755 ~/.ssh/authorized_keys* in order to connect.
Which leads to my question: Why is so important to have a public key under chmod 600??
And why im not being able to connect with chmod 600 but only with chmod 755?
Thanks in advanced
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.×