Skip to content

Instantly share code, notes, and snippets.

@kkirsche
Last active August 29, 2015 14:19
Show Gist options
  • Save kkirsche/9f66317af307775559c7 to your computer and use it in GitHub Desktop.
Save kkirsche/9f66317af307775559c7 to your computer and use it in GitHub Desktop.
Set local machine's public key as authorized on remote machine over SSH
cat ~/.ssh/id_rsa.pub | ssh root@10.211.55.9 'mkdir -p ~/.ssh/; touch ~/.ssh/authorized_keys; cat >> .ssh/authorized_keys'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment