Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7750593
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T11:19:52+00:00 2026-06-01T11:19:52+00:00

I create a deploy user, generate an ssh_key, I add id_rsa.pub as github deploy

  • 0

I create a deploy user, generate an ssh_key, I add id_rsa.pub as github deploy key.

this deploy user need pull 2 repo, so I add the same ssh_key to another repo as deploy key.

but github tell me, deploy key already in use.

and I don’t know how add 2 id_rsa.pub for 1 user.

update:

I add id_rsa_assets additional, but I still cannot pull.

ssh-add .ssh/id_rsa_assets

Could not open a connection to your authentication agent.

.ssh/config

Host guardians
    Hostname github.com
    User git
    IdentityFile ~/.ssh/id_rsa

Host assets
    Hostname github.com
    User git
    IdentityFile ~/.ssh/id_rsa_assets
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T11:19:53+00:00Added an answer on June 1, 2026 at 11:19 am

    You can create two public/private keys with whatever name you want:

    ~/.ssh
      repo1
      repo1.pub
      repo2
      repo2.pub
    
      config
    

    (Ie it doesn’t have to be named id_rsa(.pub) to work, provided you indicate ssh where to look.
    That is where ‘config‘ comes into play: the config file includes the name of your two connections for GitHub repo1 and GitHub repo2 with, for each connection, the path to your private repo key, as described in “change github account mac command line” and in “Quick Tip: How to Work with GitHub and Multiple Accounts“:

    Host githubRepo1
    HostName github.com
    User git
    IdentityFile ~/.ssh/repo1
    
    Host githubRepo2
    HostName github.com
    User git
    IdentityFile ~/.ssh/repo2
    

    That way you can pull from any of the two repos, as long as you are using their ssh addresses.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I added this question at SuperUser for the user's perspective. So I create an
I am attempting to create/deploy an application onto the Redhat OpenShift Express platform, and
Im using Eclipse 3.4, EclipseMe 1.7.9. Im trying to deploy/create package a simple project
I create a web application (WAR) and deploy it on Tomcat. In the webapp
I created webservice which contain Add function as 'webmethod' when we want to deploy
StackOverflow - I'm still trying to deploy this site, but with every problem I
Our capistrano setup is: ssh with regular user, but deploy to a location requiring
I use VS2010 to create a project and when I deploy it in a
I'm trying to create a report of User Accounts info on the members of
When I run cap deploy , Capistrano will attempt to create a folder such

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.