Skip to content

Instantly share code, notes, and snippets.

@kkirsche
Last active August 29, 2015 14:19
Embed
What would you like to do?
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