其他分享
首页 > 其他分享> > SSH隧道访问内网GITLAB

SSH隧道访问内网GITLAB

作者:互联网

GITLAB所在局域网内网IP:192.168.0.100(例)

GITLAB所在局域网的机器IP:192.168.0.224(例)

服务器IP地址:43.118.100.100(例)

1.建立GITLAB在服务器上的反向代理

  在192.168.0.224上输入命令:

  ssh -N -g -R 43.118.100.100:2002:192.168.0.100:80 user@43.118.100.100

2.git设置代理

  git config --global http.proxy 43.118.100.100:2223

3.clone操作

  git clone http://xxxx/xxxx/xxxx.git

标签:git,xxxx,100.100,GITLAB,192.168,SSH,内网,43.118
来源: https://blog.csdn.net/chenxiangyangxy/article/details/118382968