我无法连接我的gitlab服务器。webUI使用Cludflare和客户端证书进行保护。但是这并不重要,因为我想和ssh连接。
ssh -Tvvv git@gitlab.domain
OpenSSH_8.9p1 Ubuntu-3, OpenSSL 3.0.2 15 Mar 2022
debug1: Reading configuration data /home/userdir/.ssh/config
debug1: /home/userdir/.ssh/config line 1: Applying options for gitlab.domain
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 *
debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts' -> '/home/userdir/.ssh/known_hosts'
debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts2' -> '/home/userdir/.ssh/known_hosts2'
debug2: resolving "gitlab.domain" port 12345
debug3: resolve_host: lookup gitlab.domain:12345
debug3: ssh_connect_direct: entering
debug1: Connecting to gitlab.domain [123.123.123.123] port 12345.
debug3: set_sock_tos: set socket 3 IP_TOS 0x10
debug1: connect to address 123.123.123.123 port 12345: Connection timed out
debug1: Connecting to gitlab.domain [123.123.123.123] port 12345.
debug3: set_sock_tos: set socket 3 IP_TOS 0x10~/..ssh/config
Host gitlab.domain
HostName gitlab.domain
User gitlabuser
Port 12345
PreferredAuthentications publickey
IdentityFile ~/.ssh/git(密钥存储在相应的帐户中)
这是什么原因?
发布于 2022-08-05 05:05:50
只要curl -v telnet://gitlab.domain:12345显示超时,就意味着:
在您的计算机之间没有打开网络路由,gitlab.domain:12345
。
再次检查您的GitLab ssh port configuration,并确保它已启动和运行,使用您需要的端口。
https://stackoverflow.com/questions/73242153
复制相似问题