When trying to load my keys I get this error
ssh-add ~/.ssh
Permissions 0755 for '/home/starkers/.ssh' are too open.
Note that the permissions are too open for the .ssh
directory, not an actual key.
Modifying the ownership doesn't change anything:
chmod 755 ~/.ssh
ssh-add ~/.ssh
Permissions 0755 for '/home/starkers/.ssh' are too open.
The thing is, I need to write to this directory when I create new keys, so what's it on about?
Your .ssh
directory should have permissions 0700
. Not 0600 (too strict) or 0755 (too permissive). Do:
chmod -R 700 ~/.ssh
Use -R
to recursively change permissions for all files in there.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With