From Git Bash, generate a new SSH key. Note the key location, e.g.
(/c/users/shlut/Documents/.ssh/id_rsa)
.
ssh-keygen -t rsa -b 4096 -C "[email protected]"
From Git Bash, add the SSH key to the SSH Agent.
eval $(ssh-agent -s)
ssh-add /c/users/shlut/Documents/.ssh/id_rsa
Add the new SSH Key to your GitHub account.
- Profile
- Settings
- SSH and GPG Keys
- New SSH Key
-
Paste the contents of
id_rsa.pub
and give it a name (e.g. Work Computer).
See also: