Last active
August 29, 2018 04:57
-
-
Save martin-cotta/5c8b0ca4761c684ec69d98d6fff6f850 to your computer and use it in GitHub Desktop.
Set up an SSH key
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Generate public/private rsa key pair | |
ssh-keygen | |
# Add the key to the ssh-agent | |
eval `ssh-agent` | |
ssh-add -K ~/.ssh/id_rsa | |
# Copy public key content | |
pbcopy < ~/.ssh/id_rsa.pub | |
# Verify configuration | |
ssh -T [email protected] | |
# So that your computer remembers your password each time it restarts, | |
# open (or create) the ~/.ssh/config file and add these lines to the file: | |
# Host * | |
# UseKeychain yes |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment