Created
September 23, 2016 06:38
-
-
Save michaldarda/b134d3dea4cea8ace6412ea64a40181b to your computer and use it in GitHub Desktop.
Repairs ssh permissions
This file contains hidden or 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
#!/bin/sh | |
find ~/.ssh -type f -exec chmod 600 {} \; | |
chmod 755 ~/.ssh | |
chmod 644 ~/.ssh/authorized_keys |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment