Skip to content

Instantly share code, notes, and snippets.

@mathias
Created July 6, 2011 14:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mathias/1067345 to your computer and use it in GitHub Desktop.
Save mathias/1067345 to your computer and use it in GitHub Desktop.
.ssh directory setup for future reference
chmod 700 .ssh
chmod 600 .ssh/authorized_keys
Reference:
This file is readable by more than just you. Newer versions of ssh see this, recongize it as a security hole, and prevent you from doing something stupid. Lesson Learned: Make sure that the files in .ssh are writable only by you, on both machines, and non-executable by anyone.
^ reference http://joey.ubuntu-rocks.org/blog/2008/06/08/ssh-authorized_keys-permissions-or-why-ssh-is-smarter-than-you/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment