Created
September 12, 2019 11:36
-
-
Save Narven/bbdc9312d32e501c50dc5e51714ad9d1 to your computer and use it in GitHub Desktop.
Fixs all permissions for .ssh folder and its content
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo chmod 700 ~/.ssh | |
sudo chmod 644 ~/.ssh/*.pub | |
sudo chmod 600 ~/.ssh/id_rsa |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Just
sudo mv fixssh.sh /usr/local/bin/fixssh
Run any time...
fixssh