Skip to content

Instantly share code, notes, and snippets.

@michaldarda
Created September 23, 2016 06:38
Show Gist options
  • Save michaldarda/b134d3dea4cea8ace6412ea64a40181b to your computer and use it in GitHub Desktop.
Save michaldarda/b134d3dea4cea8ace6412ea64a40181b to your computer and use it in GitHub Desktop.
Repairs ssh permissions
#!/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