Last active
November 5, 2016 10:37
-
-
Save indatawetrust/2b4f2d3cba42108118016c4b0d919599 to your computer and use it in GitHub Desktop.
ssh passwordless
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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