difference between account ssh-key vs deployment ssh-key

后端 未结 1 1161
臣服心动
臣服心动 2021-02-13 00:46

Can someone please explain what is the difference between account ssh-key vs deployment ssh-key?

I have made use of them frequently but never tried to learn how they di

相关标签:
1条回答
  • 2021-02-13 01:29

    Your ssh account key does identify you, and allows you to interact with GitHub as you (meaning for instance; you can push to your own repo)

    Your ssh deploy key, as mentioned in "Read-only deploy keys" are keys with read-only access.
    It does not authenticate you.

    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.

    You can create a read/write deploy key, but its ability to be read-only is in contrast with an account SSH key: the latter (SSH key) will always be for read/write access to your repositories.

    You find the same purpose for 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.
    0 讨论(0)
提交回复
热议问题