- ssh-keygen is run via:
ssh-keygen -t rsa -b 4096 -a 100 - A private key
id_rsaand public keyid_ras.pubare created - The public key (
id_rsa.pub) is provide to the github account for association - The private key (
id_rsa) is placed within the users.sshfolder (typically the folder is located at%userprofile%\.sshon Windows) - The
configorssh_configfile is created/modified to point to the private key
Host * github.com
HostName github.com
User git
IdentityFile ~/.ssh/<id_rsa>
IdentitiesOnly yes
Note: The config may point to more than one private key
Host * github.com
HostName github.com
User git
IdentityFile ~/.ssh/<id_rsa>
IdentitiesOnly yes
Host * github.com
HostName github.com
User git
IdentityFile ~/.ssh/<id_rsa_2>
IdentitiesOnly yes