Skip to content

Instantly share code, notes, and snippets.

@DerfOh

DerfOh/add-keys.md

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

How to add your ssh keys in one line

cat ~/.ssh/id_rsa.pub | 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