Skip to content

Instantly share code, notes, and snippets.

@rponte
Last active December 5, 2019 18:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rponte/076f6fb7cc62792acad268c58d44d4ef to your computer and use it in GitHub Desktop.
Save rponte/076f6fb7cc62792acad268c58d44d4ef to your computer and use it in GitHub Desktop.
Fixing file permissions for ssh keys and config
chmod 700 ~/.ssh
chmod 644 ~/.ssh/authorized_keys
chmod 644 ~/.ssh/known_hosts
chmod 644 ~/.ssh/config
chmod 600 ~/.ssh/id_rsa
chmod 644 ~/.ssh/id_rsa.pub
# others keys
chmod 600 ~/.ssh/github_rsa
chmod 644 ~/.ssh/github_rsa.pub
chmod 600 ~/.ssh/mozilla_rsa
chmod 644 ~/.ssh/mozilla_rsa.pub
@rponte
Copy link
Author

rponte commented Dec 5, 2019

based on this gist

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment