Host ssh.gitlab.gnome.org port 22: Network is unreachable

I cannot validate ssh connection with my public ssh key. Following the instruction - I generated pair of rsa keys and added the following ssh config:

Host gitlab.gnome.org
PreferredAuthentications publickey
IdentityFile ~/.ssh/id_rsa

Trying to check connection with ssh -T git@gitlab.gnome.org

Error:
OpenSSH_8.2p1 Ubuntu-4ubuntu0.2, OpenSSL 1.1.1f 31 Mar 2020
ssh: connect to host gitlab.com port 22: Network is unreachable

Also tried with another parameters:
Port 443
User git

Error:
OpenSSH_8.2p1 Ubuntu-4ubuntu0.2, OpenSSL 1.1.1f 31 Mar 2020
debug1: kex_exchange_identification: banner line 0: HTTP/1.1 400 Bad Request
debug1: kex_exchange_identification: banner line 8:
debug1: kex_exchange_identification: banner line 9: 400 Bad Request
debug1: kex_exchange_identification: banner line 10:
debug1: kex_exchange_identification: banner line 11:

400 Bad Request


debug1: kex_exchange_identification: banner line 12:
cloudflare
debug1: kex_exchange_identification: banner line 13:
debug1: kex_exchange_identification: banner line 14:
kex_exchange_identification: Connection closed by remote host

Public key added to the user profile on gitlab gnome
What I’m doing wrong?

Hi,

Hm, looks like it’s the wrong server…

In the ssh config, the Host should be ssh.gitlab.gnome.org (it’s what I have on my side).

1 Like

gwillems, thanks

Here while sending the post I have : “An error occurred: Sorry, new users can only put 3 links in a post.” So my log will be customized:

ssh_gitlab_gnome_site=ssh.gitlab.gnome.org

With $ssh_gitlab_gnome_site I have “Network is unreachable” error.

ssh -Tvvv git@gitlab.gnome.org
OpenSSH_8.2p1 Ubuntu-4ubuntu0.2, OpenSSL 1.1.1f 31 Mar 2020
debug1: Reading configuration data /home/username/.ssh/config
debug1: /home/username/.ssh/config line 14: Applying options for gitlab.gnome.org
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: include /etc/ssh/ssh_config.d/*.conf matched no files
debug1: /etc/ssh/ssh_config line 21: Applying options for *
debug2: resolving “$ssh_gitlab_gnome_site” port 443
debug2: ssh_connect_direct
debug1: Connecting to $ssh_gitlab_gnome_site [8.43.85.27] port 443.
[ about 3 minutes hanging ]
debug1: connect to address 8.43.85.27 port 443: Connection timed out
debug1: Connecting to $ssh_gitlab_gnome_site [2620:52:3:1:5054:ff:fe8f:413d] port 443.
debug1: connect to address 2620:52:3:1:5054:ff:fe8f:413d port 443: Network is unreachable
ssh: connect to host $ssh_gitlab_gnome_site port 443: Network is unreachable

If you wrap quoted logs in “triple backticks” (or “preformatted text” in the menu), then discourse won’t try to turn text into clickable links and (AFAIK) the limit doesn’t apply.

This also makes it easier to distinguish quoted output from user comments:

$ ssh -Tvvv git@gitlab.gnome.org
OpenSSH_8.2p1 Ubuntu-4ubuntu0.2, OpenSSL 1.1.1f 31 Mar 2020
debug1: Reading configuration data /home/username/.ssh/config
debug1: /home/username/.ssh/config line 14: Applying options for gitlab.gnome.org
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: include /etc/ssh/ssh_config.d/*.conf matched no files
debug1: /etc/ssh/ssh_config line 21: Applying options for *
debug2: resolving “ssh.gitlab.gnome.org” port 443

Where does that port come from?

1 Like

@fmuellner Thanks

This is ssh connection logs in vvv (verbose) mode. I’ve copied this from terminal.

Trying to publish this logs again with markdown formatting:

ssh -Tvvv git@gitlab.gnome.org
OpenSSH_8.2p1 Ubuntu-4ubuntu0.2, OpenSSL 1.1.1f 31 Mar 2020
debug1: Reading configuration data /home/username/.ssh/config
debug1: /home/username/.ssh/config line 14: Applying options for gitlab.gnome.org
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: include /etc/ssh/ssh_config.d/*.conf matched no files
debug1: /etc/ssh/ssh_config line 21: Applying options for *
debug2: resolving “ssh.gitlab.gnome.org” port 443
debug2: ssh_connect_direct
debug1: Connecting to ssh.gitlab.gnome.org [8.43.85.27] port 443.
[ about 3 minutes hanging ]
debug1: connect to address 8.43.85.27 port 443: Connection timed out
debug1: Connecting to ssh.gitlab.gnome.org [2620:52:3:1:5054:ff:fe8f:413d] port 443.
debug1: connect to address 2620:52:3:1:5054:ff:fe8f:413d port 443: Network is unreachable
ssh: connect to host ssh.gitlab.gnome.org port 443: Network is unreachable

Update. Yes, links can be specified inside markdawn code section without restriction.