Skip to content

Instantly share code, notes, and snippets.

@col
Created January 31, 2013 07:11
Show Gist options
  • Save col/4680947 to your computer and use it in GitHub Desktop.
Save col/4680947 to your computer and use it in GitHub Desktop.
Quick command to add my public jey to a remote servers authorized keys.
ssh user@host 'echo '`cat ~/.ssh/id_rsa.pub`' >> ~/.ssh/authorized_keys'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment