Skip to content

Instantly share code, notes, and snippets.

Last active Jan 2, 2017
What would you like to do?
Add SSH Keys to server

How to add your ssh keys in one line

cat ~/.ssh/ | ssh user@hostname "mkdir -p ~/.ssh && cat >>  ~/.ssh/authorized_keys"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment