3

系统和连接细节

我使用的是运行 Windows 7 的 64 位系统。我安装了 Open VPN 和 Tortoise SVN 64 位。

存储库位于远程系统中,我们使用 VPN 连接。

到目前为止我做了什么

我已按照必要的步骤启动 VPN 连接 -

  • 在 Open VPN 安装路径的 config 文件夹中添加了一些项目特定的配置文件。从团队成员的工作设置中获取这些文件。
  • 使用用户启动 Open VPN 连接。
  • 运行 Putty 的 Pageant.exe,选择 .ppk 文件并输入密码。

到这里为止一切都很好。

然后我转到本地目录并尝试使用 Tortoise SVN 签出远程存储库 URL。但它会引发以下错误 -

结帐失败

To better debug SSH connection problems, remove the -q option from 'ssh' in the [tunnels] section of your Subversion configuration file.
Network connection closed unexpectedly

以下是我的 Subversion 配置文件的 [tunnels] 部分的内容 -

### Section for configuring tunnel agents.
[tunnels]
### Configure svn protocol tunnel schemes here.  By default, only
### the 'ssh' scheme is defined.  You can define other schemes to
### be used with 'svn+scheme://hostname/path' URLs.  A scheme
### definition is simply a command, optionally prefixed by an
### environment variable name which can override the command if it
### is defined.  The command (or environment variable) may contain
### arguments, using standard shell quoting for arguments with
### spaces.  The command will be invoked as:
###   <command> <hostname> svnserve -t
### (If the URL includes a username, then the hostname will be
### passed to the tunnel agent as <user>@<hostname>.)  If the
### built-in ssh scheme were not predefined, it could be defined
### as:
# ssh = $SVN_SSH ssh
### If you wanted to define a new 'rsh' scheme, to be used with
### 'svn+rsh:' URLs, you could do so as follows:
# rsh = rsh
### Or, if you wanted to specify a full path and arguments:
# rsh = /path/to/rsh -l myusername
### On Windows, if you are specifying a full path to a command,
### use a forward slash (/) or a paired backslash (\\) as the
### path separator.  A single backslash will be treated as an
### escape for the following character.

这是错误中提到的部分吗?我在那里看不到任何-q选项。现在应该怎么做。

注意 - 我也在超级用户上发布了同样的问题 - https://superuser.com/q/295439/50101。我在那里没有得到任何答案。让我知道是否应该删除/关闭。

更新
我尝试使用 Smartsvn 6。当 Openvpn gui 正在运行并且腻子选美正在运行时,我选择了“公钥/私钥身份验证”,选择了 .ppk 文件并输入了密码短语。我得到这个错误 -

An error occurred while processing an SVN command 
File '\path\to\key-file.ppk' is not a valid OpenSSH DSA or RSA private key file.

有任何想法吗?为什么会出现这个错误?这怎么可能解决或任何指针?队友有一个运行 Windows xp 的 32 位系统,他们能够结帐。而我和另一个新成员有一个运行 Windows 7 的 64 位系统,面临同样的问题。

更多详细
信息 用于结帐的存储库 URL 类似于 svn+ssh://@...com/var/svn/reposito‌​ries//

队友从未生成任何其他密钥或任何东西。他们只是将一些文件放入他们打开的 VPN 配置文件夹(一些 .ppk、.key、.crt 和一些打开的 vpn 配置文件)。

更新 3
使用 puttygen 生成 RSA/DSA 密钥时,“要生成的密钥类型”下有 3 个选项 -> 1. SSH-1(RSA)2. SSH-2 RSA3. SSH-2 DSA. 我选择了SSH-1(RSA)。点击保存私钥。然后再次按照相同的步骤进行结帐。我还选择了Tortoise SVN-> settings-> Network-> SSH Client-> 在那里浏览了pageant.exe文件。结帐仍然不成功->提示“无法加载此密钥(无法打开文件)”,然后出现相同的错误-

To better debug SSH connection problems, remove the -q option from 'ssh' in the [tunnels] section of your Subversion configuration file.
Network connection closed unexpectedly

更新 4
一位新队友(在一个系统上工作,64 位运行 Windows 7,和我一样)已成功从远程服务器签出。请检查此问题以获取更多详细信息在 VPN 故障上调试 SVN+SSH 结帐的正确方法?如何与工作设置进行比较?

4

2 回答 2

2

正如 mkro 所说,.ppk证书是 Putty 独有的。Putty 有一个非常方便的工具,用于在、 和证书之间来回切换DSA,您可以在此处下载。您将使用的几乎所有建立 SSH 连接的工具(Putty 除外)都将使用密钥对或密钥对。RSAPPKDSARSA

如果您在 Linux 上,您可以下载 putty 源包并自己构建以获取 的副本puttygen,或者如果您在提供包管理器的发行版上,您可以尝试安装它。例如,在 Ubuntu 上,你会这样做:

$ sudo apt-get install putty-tools
$ puttygen <your.ppk> -O private-openssh -o <whatever you want to name it>
于 2011-06-24T18:25:31.437 回答
0

终于自己解决了这个问题!我应该以管理员身份运行 OpenVPN GUI。

我这样做了,它奏效了-

开始菜单 -> 右键单击​​程序列表中的“OpenVPN GUI” -> 其余全部相同,选择配置文件并单击连接(OpenVPN)。

我是怎么做
的我尝试安装不同版本的 OpenVPN,有一次选中了复选框,上面写着“打开阅读我”。它打开了自述文件,上面写着“在使用 Windows Vista 时,您需要以管理员身份运行 OpenVPN GUI”。我想让我也试试这个,虽然我使用的是 Windows 7 系统,但它确实有效!终于解脱了。希望这会对其他人有所帮助。

于 2011-08-08T08:29:14.333 回答