Skip to content

Instantly share code, notes, and snippets.

@brianunlam
Created September 5, 2019 21:20
Show Gist options
  • Save brianunlam/ea0bf926bf7114f0d1d731fb9bda5eb5 to your computer and use it in GitHub Desktop.
Save brianunlam/ea0bf926bf7114f0d1d731fb9bda5eb5 to your computer and use it in GitHub Desktop.
login to remote server without entering your pass every time.
# 1. Create an SSH Key. If you already have one (for sure you have) skip this step.
# Use the ssh-keygen command to create an SSH key. Accept all the defaults by pressing ENTER at every prompt. You’ll want to leave the passphrase empty.
ssh-keygen
# 2. Copy the SSH Public Key to the Remote Host
ssh-copy-id user_for_remote_server@remote_server
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment