Skip to content

Instantly share code, notes, and snippets.

@Narven
Created September 12, 2019 11:36
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 Narven/bbdc9312d32e501c50dc5e51714ad9d1 to your computer and use it in GitHub Desktop.
Save Narven/bbdc9312d32e501c50dc5e51714ad9d1 to your computer and use it in GitHub Desktop.
Fixs all permissions for .ssh folder and its content
sudo chmod 700 ~/.ssh
sudo chmod 644 ~/.ssh/*.pub
sudo chmod 600 ~/.ssh/id_rsa
@Narven
Copy link
Author

Narven commented Sep 12, 2019

Just sudo mv fixssh.sh /usr/local/bin/fixssh
Run any time... fixssh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment