与SSH问题的git克隆 [英] git clone with ssh issue

查看:160
本文介绍了与SSH问题的git克隆的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经生成了一个公钥,私钥对。
我已经设置了公钥到站点。



如何在Windows中使用控制台克隆git存储库?
我该如何处理私钥?



我不断收到:远端挂断了。



谢谢

解决方案

需要存储私钥:




  • 位于%HOME%目录(ig %HOME% 未设置,将其设置为%HOMEPATH%(对于Vista或Seven)

  • .ssh / id_rsa.pub ,在你的私钥旁边加上 id_rsa



 
%HOME%\.ssh\id_rsa#您的私钥
%HOME%\.ssh\id_rsa.pub#您的公钥

请参阅:



这两个链接都是对于GitHub,这可能不是您确切的情况,但它们仍包含有效的信息。

Plus,for cert ain主机提供商如GitHub,需要设置其他信息


I have generated a public key, private key pair. I've set the public key to the site.

How to use the console in windows to clone a git repository? What do I do with the private key?

I keep getting: the remote end hung up unexp.

Thanks

解决方案

The private key need to be stored:

  • in %HOME% directory (ig %HOME% is not set, set it to %HOMEPATH% (for Vista or Seven)
  • under .ssh/id_rsa.pub, juste beside your private key id_rsa

    %HOME%\.ssh\id_rsa      # your private key
    %HOME%\.ssh\id_rsa.pub  # your public key

See:

Both links are for GitHub, which may not be your exact situation, but they still contain valid informations.
Plus, for certain host providers like GitHub, additional informations need to be set.

这篇关于与SSH问题的git克隆的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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