Skip to content

Instantly share code, notes, and snippets.

@filipesperandio
Last active August 29, 2015 14:21
Show Gist options
  • Save filipesperandio/83b162149244aed76d84 to your computer and use it in GitHub Desktop.
Save filipesperandio/83b162149244aed76d84 to your computer and use it in GitHub Desktop.
Allow for non-password ssh
#!/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