如何配置 Eclipse 的 Subversion 配置文件以使用我的私钥?

发布于 2024-08-27 07:38:32 字数 590 浏览 4 评论 0原文

我在 Windows 中使用 Eclipse 和 Subversive for SVN 控件。我还安装了 TortoiseSVN。我正在使用的 SVN 存储库正在利用 svn+ssh 方案,并且无法更改它。

现在,%APPDATA%\Subversion\config 中有一个文件,我需要编辑该文件以在 Eclipse 中执行 SVN 交互,而无需每次都输入密码。此配置文件中的行现在显示为(默认):

ssh = $SVN_SSH ssh -o ControlMaster=no

我在网上读到 $SVN_SSH 是 Windows 中的环境变量,在本例中它指向 TortoiseSVN\bin\TortoisePlink.exe,这是正确的。

附加此配置以使其采用我的私钥的附加参数是什么?我已经使用我的公共密钥短语更新了服务器上的“authorized_keys”文件(在我的 .ssh 文件夹中),并且我已经测试并确认在 Eclipse 外部登录到 SVN 服务器的方式与使用我的私有/公共密钥的方式相同一对。

这里的问题是让它在 Eclipse 中工作,坦率地说这是一个小噩梦:/如果有人经历过同样的事情,或者知道任何补救措施,我将不胜感激。

I'm using Eclipse and the Subversive for SVN control, in Windows. I've also installed TortoiseSVN. The SVN repository I'm using is utilizing a svn+ssh scheme, and there is no way to change that.

Now, there's a file in %APPDATA%\Subversion\config that I need to edit to perform SVN interaction in Eclipse without typing in the password every time. The line in this config file reads now (default):

ssh = $SVN_SSH ssh -o ControlMaster=no

I've read a bit on the web that the $SVN_SSH is an environmental variable in Windows, and in this case it points to TortoiseSVN\bin\TortoisePlink.exe, which is correct.

What is the additional parameteres to append this config to make it take my private key? I've updated the "authorized_keys" file on the server (in my .ssh folder) with my public keyphrase, and I've tested and confirmed that logging in to the SVN server outside Eclipse works like it should with my private/public key pair.

The problem here is to make it all work inside Eclipse, and it's quite frankly a small nightmare :/ If anyone has experienced the same, or knows any remedy, I'd appreciate any help.

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

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

发布评论

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

评论(1

寻找一个思念的角度 2024-09-03 07:38:32

如果设置“SVN_SSH”环境变量,则该行的其余部分将被忽略,因此您应该将“$SVN_SSH ssh”替换为程序的路径,或者将所需的参数移至 SVN_SSH 环境变量的末尾。

If you set the 'SVN_SSH' environment variable the rest of the line is ignored, so you should either replace '$SVN_SSH ssh' with the path to the program, or move the required arguments to the end of the SVN_SSH environment variable.

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