-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathssh_config
34 lines (29 loc) · 975 Bytes
/
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
# vim: set ft=sshconfig:ts=2:sw=2:noet:nowrap
LogLevel ERROR
TCPKeepAlive no
ServerAliveInterval 60
HashKnownHosts no
NoHostAuthenticationForLocalhost yes
ControlMaster auto
ControlPersist 1
ControlPath ~/.ssh/.%C
GlobalKnownHostsFile ~/.ssh/known_hosts
UserKnownHostsFile /dev/null
## I don't always add host keys to my known_host file...
## But when I do - I do it manually with 'ssh-keyscan <hostname>'
##
## Swapping the roles of GlobalKnownHostsFile and UserKnownHostsFile allows me
## to manually maintain my known_hosts file rather than have ssh prompt me to
## add host keys for every host I happen to login to. I then manually add
## important hosts to ~/.ssh/known_hosts using ssh-keyscan.
## bastion host example
# Match host !*bastion* exec "echo %h | grep -q '*host behind bastion regex*'"
# ProxyJump bastion.host
Include private
## defaults
Host *
CheckHostIP no
ForwardX11 no
ForwardAgent no
StrictHostKeyChecking no
GSSAPIAuthentication no