i try to get Gitlab with SSH working, but it won't.
I have done following steps:
1 ) generate ssh-key
ssh-keygen -t rsa -C "[email protected]" -b 4096
2 ) named the key "id_rsa" in folder /Users/myUserName/.ssh/
3) copied the key via
pbcopy < ~/.ssh/id_rsa.pub
4) insert the key into gitlab
When i now try to clone a repository i receive the following error:
$ git clone [email protected]:myName/repositoryName/ repoName
Cloning into 'repoName'...
ssh: connect to host gitlab.com port 22: Operation timed out
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
What is going wrong?
git clone [email protected]:myName/repositoryName/ repoName