Skip to content

Instantly share code, notes, and snippets.

@sheerlox
Forked from ChristopherA/sshgpgperm.sh
Last active March 12, 2018 11:28
Show Gist options
  • Save sheerlox/8f9f9c2e045d171ef3b851e99a9a3ce5 to your computer and use it in GitHub Desktop.
Save sheerlox/8f9f9c2e045d171ef3b851e99a9a3ce5 to your computer and use it in GitHub Desktop.
SSH & GPG Folders Permissions
chmod 755 ~
chmod 600 ~/.ssh/*
chmod 600 ~/.ssh/id_*
chmod 600 ~/.ssh/github_rsa
chmod 644 ~/.ssh/*.pub
chmod 644 ~/.ssh/authorized_keys
chmod 700 ~/.ssh
chmod 600 ~/.gnupg/*
chmod 700 ~/.gnupg
chmod 700 ~/.gnupg/openpgp-revocs.d/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment