简体   繁体   English

没有SSH密钥的Git拉

[英]Git pull without ssh key

Please tell me how it happens. 请告诉我这是怎么回事。 I created an Ssh key and uploaded it to my github account, after that I did a git clone and git pull. 我创建了一个Ssh密钥并将其上传到我的github帐户,然后执行了git clone和git pull。 Then, I removed the ssh key from github (it's still on my computer) and I tried to make another pull request and it works great without any password required, please explain me how it works without any public key ssh on my github account? 然后,我从github上删除了ssh密钥(它仍在我的计算机上),我尝试发出另一个请求请求,它在不需要任何密码的情况下也很好用,请向我解释一下在我的github帐户上没有任何公共密钥ssh的情况下它是如何工作的? In addition, I opened a new folder on my computer and I tried to make git clone via ssa and it did not work. 另外,我在计算机上打开了一个新文件夹,并尝试通过ssa进行git clone,但它不起作用。 An existing repo also works without a ssh key and the new folder can not do a clone application without a ssh key (like excepted, right?) 现有的存储库也可以在没有ssh密钥的情况下工作,并且新文件夹在没有ssh密钥的情况下也无法创建克隆应用程序(如例外,对吗?)

Thanks! 谢谢!

GitHub allows anyone to clone/fork public repositories without the need for an SSH key, nor does one need to connect to a repository via SSH to clone/fork a repository. GitHub允许任何人无需SSH密钥即可克隆/分叉公共存储库,也无需通过SSH连接到存储库即可克隆/分叉存储库。 Note that a SSH key is only required to connect to an SSH server (see below). 请注意,仅需要SSH密钥才能连接到SSH服务器(请参见下文)。

Note the purpose of an SSH key: 请注意SSH密钥的用途:

SSH keys serve as a means of identifying yourself to an SSH server using public-key cryptography and challenge-response authentication. SSH密钥用作使用公共密钥加密和质询-响应身份验证向SSH服务器标识自己的方式。 One immediate advantage this method has over traditional password authentication is that you can be authenticated by the server without ever having to send your password over the network. 与传统的密码身份验证相比,此方法的一个直接好处是,您可以通过服务器进行身份验证,而不必通过网络发送密码。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM