Skip to content

Instantly share code, notes, and snippets.

@vko-online
Last active February 2, 2016 06:23
Show Gist options
  • Save vko-online/a292c6b423b52bfed16d to your computer and use it in GitHub Desktop.
Save vko-online/a292c6b423b52bfed16d to your computer and use it in GitHub Desktop.
Copy your id_rsa.pub to remove machine so that you don't need to type password everytime
cat ~/.ssh/id_rsa.pub | ssh user@1.1.1.1 "mkdir -p ~/.ssh && cat >> ~/.ssh/authorized_keys"
//where user is username, 1.1.1.1 is your ip-address
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment