如何让Windows上的TortoiseHg(Mercurial)使用由Puttygen生成的私钥文件? [英] How to let TortoiseHg (Mercurial) on Windows use the Private Key file generated (by Puttygen)?

查看:49
本文介绍了如何让Windows上的TortoiseHg(Mercurial)使用由Puttygen生成的私钥文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经使用Puttygen创建了一个公钥和一个私钥,然后准备通过进入

I have used Puttygen to create a public and a private key, and then is ready to let TortoiseHg on Windows 7 do a clone by going to

ssh://somebody@code.somewhere.com/somecode

但是似乎没有将私钥添加到TortoiseHg的位置? (甚至只是Mercurial命令行)

but there seems to be no where to add the private key to TortoiseHg? (or even just the mercurial command line)

文件已经作为somefile.ppk在硬盘上的某个位置了?有人知道如何添加文件吗?

The file is already some where on hard disk as somefile.ppk Does someone know how to add it?

推荐答案

将以下内容添加到主目录中mercurial.ini的[ui]部分中(假设您的密钥位于"C:\ Users \ UserName中" \ mykey.ppk):

Either add the following to the [ui]-section of the mercurial.ini in your home directory (assuming your key is in "C:\Users\UserName\mykey.ppk"):

[ui]
ssh = tortoiseplink.exe -ssh -i "C:\Users\UserName\mykey.ppk"

或使用在TortoiseHg安装路径中找到的Pageant(例如C:\ Program Files \ TortoiseHg \ Pageant.exe).启动它,双击出现的任务栏图标,然后添加.ppk文件.

or use Pageant, found in the TortoiseHg installation path (e.g. C:\Program Files\TortoiseHg\Pageant.exe). Start it, double click the taskbar-icon that appears, and add the .ppk-file.

这篇关于如何让Windows上的TortoiseHg(Mercurial)使用由Puttygen生成的私钥文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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