Skip to content

Instantly share code, notes, and snippets.

@schuyberg
Created October 2, 2017 22:16
Show Gist options
  • Save schuyberg/9f3ac094a39e8a04e1b28d7862876436 to your computer and use it in GitHub Desktop.
Save schuyberg/9f3ac094a39e8a04e1b28d7862876436 to your computer and use it in GitHub Desktop.
known hosts permissions
chmod 700 $HOME/.ssh
chmod go-w $HOME $HOME/.ssh
chmod 600 $HOME/.ssh/authorized_keys
chown `whoami` $HOME/.ssh/authorized_keys
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment