-
-
Notifications
You must be signed in to change notification settings - Fork 69
/
Copy pathssh_config
42 lines (42 loc) · 1.21 KB
/
ssh_config
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
# https://github.com/drduh/config/blob/master/ssh_config
# https://linux.die.net/man/5/ssh_config
#Host router
# IdentityFile ~/.ssh/router
# HostName 192.168.1.1
# Port 2222
# User sysadm
# ControlMaster auto
# ControlPath ~/.ssh/master-%r@%h:%p
# ControlPersist 300
Host gitlab.com
User git
ControlMaster no
IdentitiesOnly yes
IdentityFile ~/.ssh/gitlab
Host github.com
User git
ControlMaster no
IdentitiesOnly yes
IdentityFile ~/.ssh/github
MACs [email protected],[email protected],[email protected],hmac-sha2-512,hmac-sha2-256,[email protected]
Host *
#ControlMaster auto
#ControlPath ~/.ssh/master-%r@%h:%p
#ControlPersist 300
#AddKeysToAgent yes
AddressFamily inet
HashKnownHosts yes
VisualHostKey yes
PasswordAuthentication no
ChallengeResponseAuthentication no
StrictHostKeyChecking ask
VerifyHostKeyDNS yes
ForwardAgent no
ForwardX11 no
ForwardX11Trusted no
ServerAliveInterval 300
ServerAliveCountMax 2
Ciphers [email protected]
KexAlgorithms [email protected],diffie-hellman-group-exchange-sha256
HostKeyAlgorithms rsa-sha2-512,rsa-sha2-256,ssh-ed25519