Skip to content

Instantly share code, notes, and snippets.

@miodeqqq
Created August 6, 2019 12:18
Show Gist options
  • Save miodeqqq/fbc5454d00d6e619f34ea9ca097127a6 to your computer and use it in GitHub Desktop.
Save miodeqqq/fbc5454d00d6e619f34ea9ca097127a6 to your computer and use it in GitHub Desktop.
#!/bin/sh
cat ~/.ssh/id_rsa.pub | ssh username@hostname "mkdir ~/.ssh; cat >> ~/.ssh/authorized_keys"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment