Skip to content

Instantly share code, notes, and snippets.

@petergloor
Last active April 12, 2023 04:47
Show Gist options
  • Save petergloor/960c9702afa27a9a1cdc9f1894cab1dc to your computer and use it in GitHub Desktop.
Save petergloor/960c9702afa27a9a1cdc9f1894cab1dc 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