Skip to content

Instantly share code, notes, and snippets.

@nfreader
Created September 22, 2011 19:38
Show Gist options
  • Save nfreader/1235804 to your computer and use it in GitHub Desktop.
Save nfreader/1235804 to your computer and use it in GitHub Desktop.
ssh [email protected] "cat ~/.ssh/id_rsa.pub | ssh $2 'mkdir ~/.ssh; cat >> ~/.ssh/authorized_keys; exit;' exit;"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment