This is an example for a personal MacbookAir, to connect github.com.
ssh-keygen -t rsa -f ~/.ssh/id_rsa,github.com -C "github,macbookair_perso"
chmod 600 ~/.ssh/id_rsa,github.com
Then in ~/.ssh/config
:
Host github.com
Hostname github.com
User mon_compte_github
IdentityFile ~/.ssh/id_rsa,github.com
ssh -vT [email protected]
ssh-keygen -f ~/.ssh/id_rsa,github.com -p