Skip to content

Instantly share code, notes, and snippets.

@tsaoyu
Created February 5, 2017 17:23
Show Gist options
  • Save tsaoyu/7f99731493426f0b33bf1f78fb69c430 to your computer and use it in GitHub Desktop.
Save tsaoyu/7f99731493426f0b33bf1f78fb69c430 to your computer and use it in GitHub Desktop.

cat ~/.ssh/id_rsa.pub | ssh <user>@<hostname> 'cat >> .ssh/authorized_keys && echo "Key copied"'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment