Skip to content

Tags

On this page

Use ssh key for Git

Reference: Generating a new SSH key and adding it to the ssh-agent - GitHub Docs

Generate ssh key

ssh-keygen -t ed25519 -C "your_email@example.com"
# Start the ssh-agent in the background.
eval "$(ssh-agent -s)"
# Add your SSH private key to the ssh-agent
ssh-add ~/.ssh/id_ed25519

Add ssh key to Github

cat .ssh/id_ed25519.pub

SSH Keys Setting

Edit this page
Last updated on 8/27/2021