Skip to content

Instantly share code, notes, and snippets.

@kitingChris
Last active May 8, 2018 17:18
Show Gist options
  • Save kitingChris/15c9331462138b2eac71bede40a27544 to your computer and use it in GitHub Desktop.
Save kitingChris/15c9331462138b2eac71bede40a27544 to your computer and use it in GitHub Desktop.
fix ssh permissions
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