基于 HTTP 代理的 svn [英] svn over HTTP proxy

查看:24
本文介绍了基于 HTTP 代理的 svn的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的是笔记本电脑 (Ubuntu),其网络使用 HTTP 代理(仅允许 http 连接).
当我将 svn up 用于 'http://.....' 之类的 url 时,一切都很酷(谷歌浏览器存储库工作正常),但现在我需要从服务器使用 'svn://....',我看到连接被拒绝.
我已经在/etc/subversion/servers 中设置了代理配置,但它没有帮助.
有人有意见/解决方案吗?

I'm on laptop (Ubuntu) with a network that use HTTP proxy (only http connections allowed).
When I use svn up for url like 'http://.....' everything is cool (google chrome repository works perfect), but right now I need to svn up from server with 'svn://....' and I see connection refused.
I've set proxy configuration in /etc/subversion/servers but it doesn't help.
Anyone have opinion/solution?

推荐答案

In /etc/subversion/servers 你正在设置 http-proxy-host,它什么都没有与 svn:// 相关,它连接到通常运行在由 svnserve 命令启动的端口 3690 上的不同服务器.

In /etc/subversion/servers you are setting http-proxy-host, which has nothing to do with svn:// which connects to a different server usually running on port 3690 started by svnserve command.

如果您可以访问服务器,则可以将 svn+ssh:// 设置为 在此处解释.

If you have access to the server, you can setup svn+ssh:// as explained here.

更新:您也可以尝试使用 connect-tunnel,它使用您的 HTTPS 代理服务器建立隧道连接:

Update: You could also try using connect-tunnel, which uses your HTTPS proxy server to tunnel connections:

connect-tunnel -P proxy.company.com:8080 -T 10234:svn.example.com:3690

然后你会使用

svn checkout svn://localhost:10234/path/to/trunk

这篇关于基于 HTTP 代理的 svn的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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