Skip to content

Instantly share code, notes, and snippets.

Last active August 29, 2015 14:19
What would you like to do?
Set local machine's public key as authorized on remote machine over SSH
cat ~/.ssh/ | ssh root@ '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