Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save nelsestu/d09aa5cd62721cfffa6ae7d6a7a3130f to your computer and use it in GitHub Desktop.
Save nelsestu/d09aa5cd62721cfffa6ae7d6a7a3130f to your computer and use it in GitHub Desktop.
shh key file permissions

General file permissions for ssh.

chmod 700 ~/.ssh
chmod 600 ~/.ssh/id_rsa
chmod 644 ~/.ssh/id_rsa.pub  
chmod 644 ~/.ssh/authorized_keys
chmod 644 ~/.ssh/known_hosts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment