Skip to content

Instantly share code, notes, and snippets.

@helmutgranda
Last active December 15, 2015 08:29
Show Gist options
  • Save helmutgranda/5230878 to your computer and use it in GitHub Desktop.
Save helmutgranda/5230878 to your computer and use it in GitHub Desktop.
SSH to Dreamhost without having to enter credentials every time.
([ -f ~/.ssh/id_rsa.pub ] || ssh-keygen -t rsa ) && (ssh user@example.com "([ -d ~/.ssh ]||mkdir -m 700 ~/.ssh) && cat >> ~/.ssh/authorized_keys && chmod 600 ~/.ssh/authorized_keys" < ~/.ssh/id_rsa.pub)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment