我有以下情况:
Server_A : Host that needs to get packages installed
Server_B : Host that it's used to connect to Server_A
Server_C : Host that it's used to connect to Server_B
Server_D : Host that it's a local mirror
Server_C 可以使用具有正确 mirror.repo 文件的 Server_D 作为镜像。Server_B 可以通过 ssh 隧道安装软件包,方法如下:
[Server_C]% ssh -R 9999:Server_D:80 Server_B
如何创建使用第一个隧道安装软件包的新隧道?
答案1
最后,我终于能够通过从第二台服务器创建新隧道来实现这一点。作为参考,命令如下:
[Server_C]% ssh -R 9999:Server_D:80 Server_B
[Server_B]% ssh -R 80:localhost:9999 Server_A