帐户 ssh-key 与部署 ssh-key 之间的区别
difference between account ssh-key vs deployment ssh-key
有人可以解释一下帐户 ssh-key 和部署 ssh-key 之间的区别吗?
我经常使用它们,但从未尝试了解它们有何不同。
您的 ssh 帐户密钥 会 识别您的身份 ,并允许您与 GitHub 互动(例如; 你可以推送到你自己的仓库)
如“Read-only deploy keys”中所述,您的 ssh 部署密钥是具有只读访问权限的密钥。
它不会验证您的身份。
A deploy key is an SSH key that is stored on your server and grants access to a single GitHub repository. They are often used to clone repositories during deploys or continuous integration runs.
Deploys sometimes involve merging branches and pushing code, so deploy keys have always allowed both read and write access. Because write access is undesirable in many cases, you now have the ability to create deploy keys with read-only access.
您可以创建一个 read/write 部署密钥,但它的只读能力与帐户 SSH 密钥形成对比:后者(SSH 密钥)将 always 用于 read/write 访问您的存储库。
您发现 deploy keys at BitBucket 的目的相同:
A deployment key grants read-only access to a public or private repository. With a deployment key a user or a process can pull or clone a repository over SSH. Deployment keys have the following features and limitations:
- Deployment keys do not apply to your plan limit.
- You can add the same deployment key to multiple repositories.
- The deployment key must be unique — it cannot also be associated with an account.
有人可以解释一下帐户 ssh-key 和部署 ssh-key 之间的区别吗?
我经常使用它们,但从未尝试了解它们有何不同。
您的 ssh 帐户密钥 会 识别您的身份 ,并允许您与 GitHub 互动(例如; 你可以推送到你自己的仓库)
如“Read-only deploy keys”中所述,您的 ssh 部署密钥是具有只读访问权限的密钥。
它不会验证您的身份。
A deploy key is an SSH key that is stored on your server and grants access to a single GitHub repository. They are often used to clone repositories during deploys or continuous integration runs.
Deploys sometimes involve merging branches and pushing code, so deploy keys have always allowed both read and write access. Because write access is undesirable in many cases, you now have the ability to create deploy keys with read-only access.
您可以创建一个 read/write 部署密钥,但它的只读能力与帐户 SSH 密钥形成对比:后者(SSH 密钥)将 always 用于 read/write 访问您的存储库。
您发现 deploy keys at BitBucket 的目的相同:
A deployment key grants read-only access to a public or private repository. With a deployment key a user or a process can pull or clone a repository over SSH. Deployment keys have the following features and limitations:
- Deployment keys do not apply to your plan limit.
- You can add the same deployment key to multiple repositories.
- The deployment key must be unique — it cannot also be associated with an account.