Skip to content

Instantly share code, notes, and snippets.

@stonelasley
Created August 20, 2022 17:04
Show Gist options
  • Save stonelasley/1ab6179ffa0cd81f8d1ae852640d8453 to your computer and use it in GitHub Desktop.
Save stonelasley/1ab6179ffa0cd81f8d1ae852640d8453 to your computer and use it in GitHub Desktop.
reset ssh dir permissions
find .ssh/ -type f -exec chmod 600 {} \;; find .ssh/ -type d -exec chmod 700 {} \;; find .ssh/ -type f -name "*.pub" -exec chmod 644 {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment