Last active
May 8, 2018 17:18
-
-
Save kitingChris/15c9331462138b2eac71bede40a27544 to your computer and use it in GitHub Desktop.
fix 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
sudo chmod go-w ~/ && \ | |
sudo chmod 600 ~/.ssh/* && \ | |
sudo chmod 644 ~/.ssh/*.pub && \ | |
sudo chmod -f 644 ~/.ssh/authorized_keys && \ | |
sudo chmod 644 ~/.ssh/known_hosts && \ | |
sudo chmod 700 ~/.ssh && \ | |
sudo chown $(id -un):$(id -gn) ~/.ssh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment