Host github.com User git HostName github.com PreferredAuthentications publickey IdentityFile ~/.ssh/github Host gitlab.com User git HostName gitlab.com PreferredAuthentications publickey IdentityFile ~/.ssh/gitlab