I'm having two gitlab.com accounts and since GitLab does not allow me to use the same ssh key, I have to generate two ssh keys.
I'm trying to config the ssh, here is my config:
Host company
HostName gitlab.com
User vunh
IdentityFile ~/.ssh/id_rsa
Host private
Hostname gitlab.com
User hoangvu271297
IdentityFile ~/.ssh/private
Both accounts are logged in to the same domain gitlab.com.
Previously, I did not config anything because I only use the id_rsa. Until now the id_rsa still works fine but I can not find a way out to clone the project using the private one. I tried many configs on the Internet but no one works.
Is there any way to deal with this situation? I knew it is configurable if there are two different hosts such as gitlab.com and work.gitlab.com
Many thanks.