[英]git clone with ssh issue
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? 如何在Windows中使用控制台克隆git存储库? What do I do with the private key?
私钥怎么办?
I keep getting: the remote end hung up unexp. 我不断得到:远端挂断了unexp。
Thanks 谢谢
The private key need to be stored: 私钥需要存储:
%HOME%
directory (ig %HOME%
is not set, set it to %HOMEPATH% (for Vista or Seven) %HOME%
目录中(未设置ig %HOME%
,将其设置为%HOMEPATH%(对于Vista或7) .ssh/id_rsa.pub
, juste beside your private key id_rsa
.ssh/id_rsa.pub
,仅在私钥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. 这两个链接均适用于GitHub,这可能不是您的确切情况,但它们仍包含有效信息。
Plus, for certain host providers like GitHub, additional informations need to be set . 另外,对于某些托管服务提供商(例如GitHub), 需要设置其他信息 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.