aizu's Knowledge Base
    • Go to: aizu.my Homepage
    • Recent
    • Tags
    • Register
    • Login

    git using different ssh key

    Ref
    1
    1
    52
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      aizu
      last edited by aizu

      First, generate new keygen

      # ssh-keygen
      

      Note: ensure id_rsa filename is a custom name, not default "id_rsa".
      Example: ~/.ssh/id_rsa_custom_key

      Then, add the custom key in github/git source

      Then, clone/pull using command below using custom key

      GIT_SSH_COMMAND='ssh -i ~/.ssh/id_rsa_custom_key' git clone [email protected]:chromium/chromium.git
      

      Ref: https://ma.ttias.be/specify-a-specific-ssh-private-key-for-git-pull-git-clone/

      1 Reply Last reply Reply Quote 0
      • First post
        Last post