git pull all shell (故障定位经验)

git pull all shell (故障定位技术)
** git pull all shell
CLOCK: [2010-11-29 周一 00:00]--[2010-11-29 周一 01:12] => 1:12
*** 问题:更换了tortoisegit的key文件,命令行失败,要求口令。
*** 命令行报告需要口令。这说明privatekey错误。但是 git config -l 显示一切正常。
*** home目录下的key文件错误。以下是诊断的依据。git命令行使用了ssh,而tortoiesgit使用了putty
: $ ssh -v [email protected]
: OpenSSH_4.6p1, OpenSSL 0.9.8e 23 Feb 2007
: ... 省略 ...
: debug1: Trying private key: /c/Users/ibm/.ssh/identity
: debug1: Offering public key: /c/Users/ibm/.ssh/id_rsa
: debug1: Authentications that can continue: publickey,gssapi-with-mic,password
: debug1: Trying private key: /c/Users/ibm/.ssh/id_dsa
: debug1: Next authentication method: password
: [email protected]'s password:
*** 解决
**** 找到HOME目录
: $ echo $HOME
: /c/Users/ibm
**** 更换 id_rsa, id_rsa.pub 文件
***** puttygen -> Load an existing private key file -> Load,
读入tortoiesgit用的putty格式私钥
***** conversions -> Export OpenSSH key,保存到HOME目录下,名为id_rsa。
**** 9月4日,因为同一原因花了不少时间,且写了日志。唉。

Leave a Reply

Your email address will not be published. Required fields are marked *