GPG与SSH密钥 [英] GPG vs SSH keys
问题描述
在GitHub上,我想添加一个密钥来将我的计算机与我的帐户相关联,并且有两个选择:创建SSH或GPG密钥.
两个键之间有什么区别?并且有首选的方法吗?
我了解如何通过遵循网站上的指南来创建两者,但是我不知道哪个更适合使用.
我想添加一个密钥来将我的计算机与我的帐户相关联,并且给了我两个选择
如果要使用SSH URL推送回存储库,则至少需要SSH SSH(因为公用SSH密钥将对您进行身份验证).
从SSH开始.请参阅"使用SSH连接到GitHub ".
稍后,您可以使用GPG签署提交. /p>
On GitHub, I want to add a key to associate my computer with my account and I am given two options: create an SSH or a GPG key.
What is the difference between the two keys? and is there a preferred one to use?
I understand how to create both by following the guide on the site but I don't know which one is better to use.
I want to add a key to associate my computer with my account and I am given two options
You will need at least the SSH one, if you want to push back to your repository, using an SSH URL (since the public SSH key will authenticate you).
Start with SSH. See "Connecting to GitHub with SSH".
Later, you can use GPG to sign commits.
这篇关于GPG与SSH密钥的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!