Skip to content

Instantly share code, notes, and snippets.

@ryanhs
Created March 2, 2023 14:28
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 ryanhs/b5029baefb093c161766dd140c011d6b to your computer and use it in GitHub Desktop.
Save ryanhs/b5029baefb093c161766dd140c011d6b to your computer and use it in GitHub Desktop.
SSH .ssh fix permissions
#!/bin/sh
chmod 700 ~/.ssh
chmod 600 ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa.pub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment