search

Home  >  Q&A  >  body text

gitbash - Add different ssh to different warehouses on github. How do you configure the config file when uploading using git bash locally?

Each warehouse can create keys, as shown below

Two sshs are also created locally

When I upload another project that should use id_rsa_frontend, id_rsa is used by default

大家讲道理大家讲道理2811 days ago571

reply all(2)I'll reply

  • ringa_lee

    ringa_lee2017-05-02 09:40:31

    I referred to this tutorial before, please check if it is the answer you want.
    《git configure multiple SSH-Key》

    reply
    0
  • PHP中文网

    PHP中文网2017-05-02 09:40:31

    When there are multiple public and private key pairs locally, add these private keys to the private key table used for verification through ssh-add.
    In this way, when we connect to the server through the SSH client (Git's SSH protocol), the private keys in the local private key table will be checked one by one.

    reply
    0
  • Cancelreply