TortiseGit 添加SSH-Key
Posted 唐宋元明清的博客
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了TortiseGit 添加SSH-Key相关的知识,希望对你有一定的参考价值。
TortoiseGit 使用扩展名为ppk的密钥,而不是ssh-keygen生成的rsa密钥。使用命令ssh-keygen -C "邮箱地址" -t rsa产生的密钥在TortoiseGit中不能用。
而基于git的开发必须要用到rsa密钥,因此需要用到TortoiseGit的putty key generator工具来生成既适用于git的rsa密钥也适用于TortoiseGit的ppk密钥,具体配置步骤如下:
1)运行TortoiseGit开始菜单中的puttygen程序,如下图示

2)点击“Generate”按钮,鼠标在上图的空白地方来回移动直到进度条完毕,就会自动生一个随机的key,如下图示

4)点击上图中的“Save private key”按钮,将生成的key保存为适用于TortoiseGit的私钥(扩展名为.ppk)。
5)运行TortoiseGit开始菜单中的Pageant程序,程序启动后将自动停靠在任务栏中,图标显示为
,双击该图标,弹出key管理列表,如下图示


7)打开TortiseGit的Setting,添加用户名称和邮箱。添加完后,即可通过tortisegit操作了。

转自:http://blog.csdn.net/bendanbaichi1989/article/details/17916795
比较详细的git教程 : https://github.com/JiapengLi/GitTutorial
以上是关于TortiseGit 添加SSH-Key的主要内容,如果未能解决你的问题,请参考以下文章