So, currently I’m trying to setup 2 SSH keys, one for the company GitLab and one for my personal GitHub. For context, I followed this steps and this is my current /.ssh/config file:
# Company account
Host gitlab.company.com
HostName gitlab.company.com
User my_user
IdentityFile ~/.ssh/id_rsa_company
IdentitiesOnly yes
# Github account
Host github.com
HostName github.com
User my_user
IdentityFile ~/.ssh/id_rsa_personal
IdentitiesOnly yes
Also, these are the files created at /.ssh/: id_rsa_company, id_rsa_personal, id_rsa_company.pub, id_rsa_personal.pub
If I run ssh -T [email protected]
, the message displayed is Hi {my_github_user}! You've successfully authenticated, but GitHub does not provide shell access.
. For my understanding, the setup worked.
The problem is, when i run git clone [email protected]:my_github_user/repository_name.git
it gets stuck like this and no progress is made after long minutes waiting:
remote: Enumerating objects: 59, done.
remote: Counting objects: 100% (59/59), done.
remote: Compressing objects: 3% (2/54)
I have tried to clone the GitHub repository with the new SSH key and the command gets stuck with no response. Tried cloning with HTTPS and didn’t work too.
Any ideas of what could be happening on my case?
luigi- is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.