Is it possible to use the same ssh private/public key pair on 2 machines to access a git repository?

前端 未结 3 1303
轮回少年
轮回少年 2021-01-31 03:30

I\'ve recently setup an inhouse git repository server and have it up and running with gitosis installed as the management tool. Read only access is available via the git:// prot

3条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-31 03:57

    SSH key pair's are machine independent, which means you can create a SSH key pair on one machine and can deploy the same SSH key pair on multiple machines. It is valid thing to do, thats how you must do it.

    Moreover Git uses SSH for transport, so you can clone/download the Git on both the machines having the same SSH key pair.

提交回复
热议问题