You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When multiple dockers are installed on one system, usually access to more than one GitHub repo using keys needs to be provided.
To connect to different repos on GitHub, the following needs to be in place for each repo:
generate a public/private keypair:
ssh-keygen
name the key according to the repo that you are connecting to, for example, id_rsa_sgn.
Add the key info to the config file, approximately like this:
Host id_rsa_sgn
HostName github.com
User git
IdentityFile ~/.ssh/id_rsa_sgn
IdentitiesOnly yes
Add the ssh-key command to the .bashrc:
ssh-add /home/production/.ssh/id_rsa_sgn
Add the key to the github repo in question
Go to the website of your github repo, choose settings -> Deploy keys -> add. Add the contents of the file ending in .pub .
Clone the repo:
### IMPORTANTLY, the host is now the name you used on the Host line, so to clone this repo, use the following command line:
git clone id_rsa_sgn:solgenomics/sgn