Skip to content

Instantly share code, notes, and snippets.

@helix84
Created November 19, 2018 10:43
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save helix84/305b6165062d3c61577ea743dea37ebf to your computer and use it in GitHub Desktop.
Save helix84/305b6165062d3c61577ea743dea37ebf to your computer and use it in GitHub Desktop.
#!/bin/sh
chmod 700 ~/.ssh
chmod 600 ~/.ssh/* # for private keys
chmod 644 ~/.ssh/*.pub # for public keys
chmod 644 ~/.ssh/known_hosts
chmod 600 ~/.ssh/authorized_keys
chmod 600 ~/.ssh/config
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment