I was attempting to clone a repo with git clone git@github.com:someorg/my-repo.git
, but the process takes forever to complete after indicating Cloning into 'my-repo' ...
. I tried :
- Generating a key with
ssh-keygen -t rsa
- Adding the public key located in
~/.ssh/id_rsa.pub
to my GitHub account - Setting up an ssh-agent with
eval "$(ssh-agent -s)"
and adding my key withssh-add ~/.ssh/id_rsa
- Cloning the repo