SSH connection to Gitlab is getting timeout

I've followed the official Gitlab docs () to make my keys using the comand:

 ssh-keygen -t ed25519 -C ""

But I'm getting timeout error as you can see at this image:All my issues

The first page is the error, the pane below at left is the content of my ~/.ssh/config file, and the last pane is the content of my ~/.ssh directory.

Edit1:

I've tried to connect with telnet with the command telnet gitlab.com 22 and I'm getting telnet: Unable to connect to remote host: Connection timed out.

But I can ping gitlab normally

Ping to Gitlab

Edit2:

I've got it. I have to change my ~/.ssh/config and put these lines:

Host gitlab.com Hostname altssh.gitlab.com User git Port 443 PreferredAuthentications publickey IdentityFile ~/.ssh/id_ed25519

I've followed this tutorial: here

3

1 Answer

I've got it. I have to change my ~/.ssh/config and put these lines:

Host gitlab.com Hostname altssh.gitlab.com User git Port 443 PreferredAuthentications publickey IdentityFile ~/.ssh/id_ed25519

I've followed this tutorial: here

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like