I want to not type my username and password every time when work with something git, so my ssh config is:
Host gitlab.com
HostName gitlab.com
PreferredAuthentications publickey
IdentityFile /root/.ssh/id_rsa_gitlab
IdentitiesOnly yes
Host github.com
HostName github.com
PreferredAuthentications publickey
IdentityFile /root/.ssh/id_rsa
IdentitiesOnly yes
I makes 2 different rsa keys, add pub keys to github and gitlab, but it keep asking me login and pass, pls can someone help me with it?