Skip to content

Instantly share code, notes, and snippets.

@zhaiduo
Last active October 10, 2016 08:07
Show Gist options
  • Save zhaiduo/68310bcb74a36ecde1d2be80cd582063 to your computer and use it in GitHub Desktop.
Save zhaiduo/68310bcb74a36ecde1d2be80cd582063 to your computer and use it in GitHub Desktop.
如何定制不同id_rsa到github
ssh-keygen -t rsa -C "xxx@me.com"
cat /home/deploy/.ssh/id_rsa_xxx.pub, copy to github
edit ~/.ssh/config
```
# XXX
Host github-xxx
HostName github.com
User git
IdentityFile ~/.ssh/id_rsa_xxx
```
git clone git@github-xxx:Repo/xxx.git
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment