Skip to content

Instantly share code, notes, and snippets.

@rsercano
Last active June 24, 2016 05:34
Show Gist options
  • Save rsercano/c7f56e3fe344490fa6767bcf49e7db95 to your computer and use it in GitHub Desktop.
Save rsercano/c7f56e3fe344490fa6767bcf49e7db95 to your computer and use it in GitHub Desktop.
mkdir .ssh
chmod 700 .ssh
cd .ssh
touch authorized_keys
chmod 600 authorized_keys

in local

cat ~/.ssh/id_rsa.pub | ssh user@123.45.56.78 "cat >>  ~/.ssh/authorized_keys"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment