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

前端 未结 3 1356
轮回少年
轮回少年 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 04:06

    Yes I think you can.

    I have something similar. Two machines, one Intel (desktop) the other one Sparc. I can log into both machines and access the same CVS server (another machine) using SSH access with the same key pair which was generated on the Intel machine.

    Make sure when you copy across your private key that you set both the permissions of the .ssh directory correctly (0700) and your home directory cannot be group or world writable. The id_rsa should only have user read access (0400)

提交回复
热议问题