1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
| cat >> ~/.ssh/config <<EOF
# github
Host git@github.com
HostName github.com
Port 22
User git
IdentityFile ~/.ssh/id_rsa_github
# gitlab
Host git@gitlab.com
HostName gitlab.com
Port 22
User git
IdentityFile ~/.ssh/id_rsa_gitlab
# codeup
Host git@codeup.aliyun.com
HostName codeup.aliyun.com
Port 22
User git
IdentityFile ~/.ssh/id_rsa_codeup
EOF
|