Skip to content


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 ""
# 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/

SSH Keys Setting

Edit this page
Last updated on 8/27/2021