Skip to content

Instantly share code, notes, and snippets.

@kconde2
Last active July 29, 2019 08:04
Show Gist options
  • Save kconde2/9971a8895ef64a1da1167ff3516bbd59 to your computer and use it in GitHub Desktop.
Save kconde2/9971a8895ef64a1da1167ff3516bbd59 to your computer and use it in GitHub Desktop.
SSH permanent server connection
  1. Generate key
ssh-keygen -t rsa
  1. Send public key
cat ~/.ssh/id_rsa.pub | ssh [email protected] "mkdir -p ~/.ssh && cat >>  ~/.ssh/authorized_keys"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment