Skip to content

Instantly share code, notes, and snippets.

@indatawetrust
Last active November 5, 2016 10:37
Show Gist options
  • Save indatawetrust/2b4f2d3cba42108118016c4b0d919599 to your computer and use it in GitHub Desktop.
Save indatawetrust/2b4f2d3cba42108118016c4b0d919599 to your computer and use it in GitHub Desktop.
ssh passwordless
ssh-keygen -t rsa
ssh root@*.*.*.* mkdir -p .ssh
cat ~/.ssh/id_rsa.pub | ssh root@*.*.*.* 'cat >> ~/.ssh/authorized_keys'
ssh root@*.*.*.* "chmod 700 .ssh; chmod 640 ~/.ssh/authorized_keys"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment