Last active
August 29, 2015 14:21
-
-
Save filipesperandio/83b162149244aed76d84 to your computer and use it in GitHub Desktop.
Allow for non-password ssh
This file contains 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
#!/usr/bin/env bash | |
SERVER=$1 | |
ssh $SERVER mkdir -p .ssh | |
cat ~/.ssh/id_rsa.pub | ssh $SERVER "cat >> .ssh/authorized_keys" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment