克隆公共github帐户需要SSH密钥吗? [英] Is an SSH Key Required to clone a public github account?
本文介绍了克隆公共github帐户需要SSH密钥吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
解决方案
您可以使用https协议,如 GitHub - https访问权限。
然后,您将在〜/中使用您的GitHub登录名/密码。 netrc
文件(可以是安全问题)。<
注意:在Windows上,将是一个_netrc文件。
Does github require all cloning, of both public and private repositories, to use an SSH public key? Maybe a better question, is can git clone a github repo without a ssh key at all.
解决方案
You can use https protocol, as mentioned in "GitHub - Https access".
You would then use your GitHub login/password in a ~/.netrc
file (which can be a security concern).
Note: on Windows, that would be an _netrc file.
Since GitHub supports smart http protocol (as detailed here), you can use that for cloning/pulling and for pushing.
这篇关于克隆公共github帐户需要SSH密钥吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文