简体   繁体   English

Subversion over ssh - 从Windows主机访问Linux上的远程存储库

[英]Subversion over ssh - access to the remote repository on Linux from Windows host

I created a repository in Mandriva Linux and want to access it from Windows host. 我在Mandriva Linux中创建了一个存储库,并希望从Windows主机访问它。

mkdir /home/user/myrepo/
svnadmin create /home/user/myrepo/

To do this, i installed a client TortoiseSVN 1.7.9 . 为此,我安装了一个客户端TortoiseSVN 1.7.9

I set the path - 我设定了路径 -

svn+ssh://user@ip/home/user/myrepo/

Where ip== ip of remote linux host. 其中ip == ip的远程linux主机。

I'm trying to do a review of the repository, but get an error - 我正在尝试对存储库进行审核,但是收到错误 -

Unable to connect to a repository at URL 'svn+ssh://user@ip/home/user/myrepo/' Can't create tunnel. 无法连接到URL'svn + ssh:// user @ ip / home / user / myrepo /'的存储库无法创建隧道。

What could be the reason for the error? 可能是错误的原因是什么?

You need to edit your configuration file (%appdata%\\Subversion\\config), there is a section called tunnels where you have an out commented line like this: 你需要编辑你的配置文件(%appdata%\\ Subversion \\ config),有一个名为tunnels的部分,你有一个像这样的注释行:

ssh = C:\\Program Files\\TortoiseSVN\\bin\\TortoisePlink.exe

If you use a key for authorization you can add this parameter for skipping the password entry part: 如果使用密钥进行授权,则可以添加此参数以跳过密码输入部分:

-i c:\\Path\\to\\putty-ssh-key.ppk

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM