Skip to content

Instantly share code, notes, and snippets.

@martin-cotta
Last active August 29, 2018 04:57
Show Gist options
  • Save martin-cotta/5c8b0ca4761c684ec69d98d6fff6f850 to your computer and use it in GitHub Desktop.
Save martin-cotta/5c8b0ca4761c684ec69d98d6fff6f850 to your computer and use it in GitHub Desktop.
Set up an SSH key
# 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 git@bitbucket.org
# 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