-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsshconfig
More file actions
47 lines (32 loc) · 764 Bytes
/
sshconfig
File metadata and controls
47 lines (32 loc) · 764 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#Host company 公司账户唯一 id 标识
# AddKeysToAgent yes
# IdentityFile ~/.ssh/company
#Host personal 个人账户唯一 id 标识
# AddKeysToAgent yes
# IdentityFile ~/.ssh/personal
# 公司账户
Host lqd
HostName github.com
User git
# AddKeysToAgent yes
IdentityFile ~/.ssh/company
IdentitiesOnly yes
PreferredAuthentications publickey
IdentityAgent /path/to/ssh-agent
# 个人账户
Host chenky
HostName github.com
User git
# AddKeysToAgent yes
IdentityFile ~/.ssh/personal
IdentitiesOnly yes
PreferredAuthentications publickey
IdentityAgent /path/to/ssh-agent
# chatgpt project
Host gitee.com
HostName gitee.com
User git
IdentityFile ~/.ssh/personal
IdentitiesOnly yes
PreferredAuthentications publickey
IdentityAgent /path/to/ssh-agent