如何使用公钥/私钥对获取SVN结帐? [英] How do I get a SVN checkout using a Public/Private key pair?

查看:154
本文介绍了如何使用公钥/私钥对获取SVN结帐?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我必须检查一些代码并运行它.我有网址:

I have to check some code and run it. I have the URL:

svn+ssh://myuser@www.myclient.com/home/svn/project/trunk

我有一个包含其私钥的文件.我该怎么做才能获得此代码?

I have a file with their private key. What do I do to get this code?

推荐答案

私钥在客户端计算机上运行,​​通常命名为~/.ssh/id_rsa~/.ssh/id_dsa~/.ssh/identity,具体取决于SSH版本和SSH的类型.钥匙.但是,您可以只使用ssh -i path/to/private.key.

The private key goes on the client machine, often named as ~/.ssh/id_rsa, ~/.ssh/id_dsa, or ~/.ssh/identity depending on the SSH version and the type of key. However, you can just use ssh -i path/to/private.key.

这假定~/.ssh/authorized_keys中的服务器上存在相应的公钥,并且您的本地计算机正在运行OpenSSH客户端.如果您在Windows上使用PuTTY,只需打开Pageant程序,然后通过GUI导入密钥即可.

This is presuming that the corresponding public key exists on the server in ~/.ssh/authorized_keys, and that your local machine is running the OpenSSH client. If you are using PuTTY on Windows, simply open up the Pageant program, and import the key via the GUI.

这篇关于如何使用公钥/私钥对获取SVN结帐?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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