This repository has been archived on 2025-03-28. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
coryd.dev-eleventy/src/posts/2020/ssh-directory-permissions.md

916 B

date title draft tags
2020-11-09 .ssh directory permissions false
SSH
development

I was recently setting up a new, always-on machine that I do occasional dev work. This dev work typically consists of routine maintenance and, a requirement of that, is sshing into and running software updates on manually managed servers (yes, manually managed1).

I sync my .ssh configuration using mackup. However, while setting up and then using a key I received a warning that my configured .ssh directory permissions were too open. If you ever run into this, the solution is fairly simple2:

chmod 700 ~/.ssh
chmod 644 ~/.ssh/id_rsa.pub
chmod 600 ~/.ssh/id_rsa

Try reconnecting using the key in question and the warning should be resolved.


  1. Think small-scale WordPress or one-off projects. ↩︎

  2. Where id_rsa is your key name. ↩︎