当前位置:论坛首页 > Linux面板 > 讨论

【已完成】gittlab反向代理后git ssh超时

发表在 Linux面板2023-2-14 22:42 [复制链接] 2 3467

本帖最后由 堡塔运维香菜卷 于 2023-3-30 12:18 编辑

一键部署的gitlab8,然后反向代理,与宝塔公用一个nginxnginx['enable'] = false
gitlab_workhorse['listen_network'] = "tcp"
gitlab_workhorse['listen_addr'] = "127.0.0.1:8021"
已经配置好反向代理
但在执行  git clone 的时候,https是可以正常执行的
采用ssh的话就会报错

$ git clone git@git.****.vip:root/****.git
Cloning into '***'...
ssh: connect to host git.***.vip port 22: Connection timed out
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

(***为保护隐私)

22端口是开放的,这种情况怎么解决啊,求助求助

使用道具 举报 只看该作者 回复
发表于 2023-2-14 23:46:05 | 显示全部楼层
您好,具体参考下面帖子看下能否帮助到你
https://blog.csdn.net/moneyshi/article/details/85267702
使用道具 举报 回复 支持 反对
发表于 2023-2-15 11:25:16 | 显示全部楼层
谢花郎 发表于 2023-2-14 23:46
您好,具体参考下面帖子看下能否帮助到你
https://blog.csdn.net/moneyshi/article/details/85267702 ...

并不生效,我已经再相关配置文件里修改host为我解析的域名了,https 与 shh地址栏中均是我的域名,git clone https可以 git clonr git@***** 就报超时
使用道具 举报 回复 支持 反对
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

普通问题处理

论坛响应时间:72小时

问题处理方式:排队(仅解答)

工作时间:白班:9:00 - 18:00

紧急运维服务

响应时间:3分钟

问题处理方式:宝塔专家1对1服务

工作时间:工作日:9:00 - 18:30

宝塔专业团队为您解决服务器疑难问题

点击联系技术免费分析

工作时间:09:00至18:30

快速回复 返回顶部 返回列表