christianmlong + config + deploy   2

github deploy keys: how Do I authorize more than one repository for a single machine - Stack Overflow
The simplest solution I found was outlined here.

1) Enter this command(You'll do this for however many keys you need):

ssh-keygen -t rsa -C "your_email@example.com"

2) When prompted with the the statement below type in a unique name(i.e.,foo1_rsa).The file will be created in your current directory and you may need to move it to .ssh if you want to be tidy:

Enter file in which to save the key (/Users/you/.ssh/id_rsa): [Press enter]

3) Update your SSH config file:

vi ~/.ssh/config

Which may be empty:

Host cheech github.com
Hostname github.com
IdentityFile ~/.ssh/foo1_rsa

Host chong github.com
Hostname github.com
IdentityFile ~/.ssh/foo2_rsa
ssh  git  deploy  key  multiple  config 
october 2015 by christianmlong
Using Multiple Github Deploy Keys for a Single User on a Single Linux Server | Snipe.Net
Fortunately, the workaround here is very simple, using named SSH keys and an SSH config file.
ssh  git  deploy  key  multiple  config 
october 2015 by christianmlong

Copy this bookmark:



description:


tags: