通过 SSH 隧道从工作子网上的机器访问 SVN 服务器 [英] Access SVN server from machine on work subnet via an SSH tunnel

查看:65
本文介绍了通过 SSH 隧道从工作子网上的机器访问 SVN 服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试通过到另一台单独机器的 SSH 隧道访问我的工作 SVN 服务器.

I'm attempting to access my work SVN server via an SSH tunnel to a separate machine.

是这样的:(Local_Machine) -- SSH_Tunnel --> (Workstation) -- LAN --> (SVN_Server)

Something like this: (Local_Machine) -- SSH_Tunnel --> (Workstation) -- LAN --> (SVN_Server)

我目前可以通过 ssh 隧道进入我的工作站,但无法通过本地机器上的隧道访问 svn 服务器.

I can currently tunnel into my workstation via ssh, but cannot access the svn server via the tunnel on my local machine.

我正在尝试做的事情是否可行,或者我是否还需要从工作站通过隧道连接到 SVN_Server?

Is what I'm attempting to do possible, or do I need to also tunnel into the SVN_Server from the Workstation?

更多信息:本地机器是使用腻子隧道的 Windows 7 机器.Workstation 是另一个使用 winsshd 的 Windows 7 机器.SVN_Server 是一个 Windows Server 2008 盒子(无 SSH 访问)

Further information : Local machine is a Windows 7 box using putty to tunnel. Workstation is another Windows 7 box using winsshd. SVN_Server is a Windows Server 2008 box (No SSH access)

推荐答案

远程隧道的端点不需要在同一台机器上.因此,您可以设置从本地机器到远程 SVN 服务器的隧道.这是您可以使用 ssh 命令行执行此操作的方式:

The endpoint of a remote tunnel doesn't need to be on the same machine. So, you can set up a tunnel that goes from your local machine to the remote SVN server. This is how you might do that using the ssh command line:

ssh -L 3690:svn_server:3690 workstation

这会连接到您工作站上的 SSH 服务器,并在 svn_server 上建立从本地端口 3690 到端口 3690 的隧道.

This connects to your SSH server on your workstation, and sets up a tunnel from local port 3690 to port 3690 on svn_server.

如果您已经通过隧道到达您的工作站,您可以将上述隧道嵌入您已有的隧道内.

If you're already going through a tunnel to get to your workstation, you can embed the above tunnel inside the tunnel you've already got.

这篇关于通过 SSH 隧道从工作子网上的机器访问 SVN 服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆