Issue
I am trying to use SSH method to clone gitlab project, and I follow the instructions in the website https://docs.gitlab.com/ee/ssh/ but it failed, below is the log that I run the command “ssh -Tvvv [email protected]”, I have tried on several computers but the same problem happened. could anyone help me to figure out the problem, thanks!
Best Regards, Simon
Solution
Make sure to answer yes at the "The authenticity of host 'gitlab.com' can't be established
" step.
If you don't, the SSH connection won't complete, and the clone will fail.
That step should be asked only once, meaning your next ssh -Tvvv [email protected]
should not ask you again the same question, since ~/.known_hosts
will have been updated.
This is safer than StrictHostKeyChecking=no
.
Answered By - VonC