克隆公共github帐户需要SSH密钥吗? [英] Is an SSH Key Required to clone a public github account?

查看:139
本文介绍了克隆公共github帐户需要SSH密钥吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

github是否要求公共和私有存储库的所有克隆都使用SSH公钥?也许更好的问题是,git可以克隆一个没有ssh密钥的github repo。

解决方案

您可以使用https协议,如 GitHub - https访问权限

然后,您将在〜/中使用您的GitHub登录名/密码。 netrc 文件(可以是安全问题)。<
注意:在Windows上,将是一个_netrc文件



由于GitHub支持智能http协议(如和进行推送。




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屋!

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