如何远程访问 Subversion 服务器

发布于 2024-08-26 18:58:13 字数 237 浏览 11 评论 0原文

我昨天刚刚在我的家用计算机上安装了 VisualSVN 服务器,我可以在本地主机上正常访问我的存储库,但是当我尝试远程访问它时,它无法连接。我应该配置其他东西还是不可能?

我使用 https://servername/svn 作为浏览器中的 URL,并且家庭计算机位于路由器后面。这仅供个人使用。

谢谢

I just installed VisualSVN server yesterday at my home computer and I can access my repositories ok at localhost but when I try to access it remotely, it won't connect. Am I supposed to configure something else or is it not possible?

I'm using https://servername/svn as the URL in my browser and the home computer is behind a router. This is only for personal use.

Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

凉风有信 2024-09-02 18:58:13

您确定您不在家时可以正常使用 servername 名称解析吗?要进行远程访问,您至少需要:

  • 服务器的公共 IP 号码,任何 RFC1918 号码(例如 192.168.XX)都无法从外部访问。
  • 名称解析;通过正式注册的 DNS 名称或通过主机文件。
  • 如果您的路由器中有防火墙,它必须允许 https (TCP/443) 流量。
  • 如果您的服务器位于专用网络上,并且您想通过路由器的官方 IP 访问它,则需要端口转发。

Are you sure that you have working name resolution for servername when not at home? For remote access to work you will at least require:

  • Public IP number of your server, any RFC1918 numbers such as 192.168.X.X won't be accessible from the outside.
  • Name resolution; either through a officially registered DNS name or through a host file.
  • If there is a firewall in your router it must allow https (TCP/443) traffic.
  • If your server is on a private network and you want to access it through your router's official IP you will need port forwarding.
如此安好 2024-09-02 18:58:13

默认情况下,您的路由器可能不允许端口 443 (SSL) 上的流量通过。您可能必须制定规则才能实现这一点。许多路由器将此称为“DMZ”或类似的设置。基本思想是允许该一个端口上的流量到达受保护网络内的一台特定计算机。

Your router likely does not allow traffic through on port 443 (SSL) by default. You may have to set up a rule to let that happen. Many routers call this setting up a DMZ or something similar. The basic idea is to allow traffic on that one port to one specific computer inside your protected network.

人间不值得 2024-09-02 18:58:13

你说的远程是什么意思?远程如在同一 LAN 中或远程如通过互联网。

首先,确保家庭计算机上的防火墙不会阻止外部对 Subversion 的访问。

如果在同一个局域网上仍然有问题,那么我不知道。

对于 WAN,您有 3 个选项

  1. 将路由器配置为 DMZ 到您的家庭计算机(转发所有端口,安全性最低的选项)
  2. 配置路由器以将端口转发到您的家庭计算机以允许外部访问
  3. 配置 IPSec 或其他 VPN 类型技术。 (超出我的专业领域)

一旦您转发了端口或进行了任何配置,那么您如何访问您的家庭计算机?您无法通过互联网使用 192.168.*。您必须获取公共 IP 地址并使用它进行连接(我推荐 http://ipchicken.com )。如果您的公共 IP 地址是动态的,那么您将需要获取动态 IP 地址服务,例如 http://no-ip .com 这样您就可以获得一个始终指向您家庭计算机的免费域名,然后您只需使用该域名而不是使用您的家庭 IP 地址,它就始终有效。

What do you mean by remote? Remote as in on the same LAN or remote as in across the internet.

First off, make sure your firewall on the home computer isn't blocking outside access to subversion.

If you still have problems on the same LAN, then I dont know.

For WAN, you have 3 options

  1. Configure the router to DMZ to your home computer (forward all ports, the least secure option)
  2. Configure the router to do a port-forwarding to your home computer to allow outside access
  3. Configure IPSec or some other VPN type technology. (out of my area of expertise)

Once you have the ports forwarded or whatever configured, then how are you accessing your home computer? You can not use 192.168.* across the internet. You must get your public IP address and connect using it(I recommend http://ipchicken.com ). If your public IP address is dynamic, then you will need to get a dynamic IP address service such as http://no-ip.com so that you can get a free domain name that will always point at your home computer, and then you just use that domain name instead of using your home IP address and it will always work.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文