Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save fxp/ba7d46d2eee707de3a04ac8374aba3d6 to your computer and use it in GitHub Desktop.
Save fxp/ba7d46d2eee707de3a04ac8374aba3d6 to your computer and use it in GitHub Desktop.
Add public key to server as authorized_keys on ubuntu
mkdir ~/.ssh
touch ~/.ssh/authorized_keys
chmod 600 ~/.ssh/authorized_keys
echo "ssh-rsa xxx" >> ~/.ssh/authorized_keys
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment