Skip to content

Instantly share code, notes, and snippets.

@Peelz
Created August 8, 2020 10:11
Show Gist options
  • Save Peelz/99caece460dc1ac58656a3f15472d863 to your computer and use it in GitHub Desktop.
Save Peelz/99caece460dc1ac58656a3f15472d863 to your computer and use it in GitHub Desktop.
# without ".ssh" directory
cat ~/.ssh/id_rsa.pub | ssh username@server.dreamhost.com "mkdir ~/.ssh; cat >> ~/.ssh/authorized_keys"
# or (alread have ".ssh: directory)
cat ~/.ssh/id_rsa.pub | ssh username@server.dreamhost.com "cat >> ~/.ssh/authorized_keys"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment