我要检查一些代码并运行它。我有网址:
svn+ssh://myuser@www.myclient.com/home/svn/project/trunk
我有他们的私钥文件。我该怎么做才能得到这段代码?
发布于 2018-08-03 11:56:30
私钥在客户端机器上,通常命名为~/.ssh/id_rsa
,~/.ssh/id_dsa
,或~/.ssh/identity
,取决于SSH版本和键的类型。但你可以使用ssh -i path/to/private.key
。
这是假定相应的公钥存在于~/.ssh/authorized_keys
,且如果你在Windows上使用PuTTY,只需打开Pageant程序,并通过GUI导入密钥。
发布于 2018-08-03 13:16:44
如果你需要只为SVN使用自定义密钥,下面的操作将有效:
SVN_SSH="ssh -i /path/to/key_name"
export SVN_SSH
svn commands
http://labs.kortina.net/2010/01/30/svn-checkout-with-private-key-over-ssh/
https://stackoverflow.com/questions/-100000493
复制相似问题