aboutsummaryrefslogtreecommitdiff
path: root/files/.ssh/config
blob: 628271e066934dea6f2f2e1e150c594508d20e92 (plain) (blame)
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
Include ~/.ssh/*.conf

HashKnownHosts no
# Enable automatic connection multiplexing by default.
ControlMaster auto
ControlPath ~/.ssh/.control.%C
ControlPersist 60m
ServerAliveInterval 60
TCPKeepAlive yes
Compression yes
ExitOnForwardFailure yes
# http://petereisentraut.blogspot.com/2012/04/setting-time-zone-on-remote-ssh-hosts.html
SendEnv LANG LC_* TZ

# Automatically add new host keys to the known_hosts file
StrictHostKeyChecking accept-new

# Hardening based on https://www.ssh-audit.com/hardening_guides.html
Ciphers chacha20-poly1305@openssh.com,aes256-gcm@openssh.com,aes128-gcm@openssh.com,aes256-ctr,aes192-ctr,aes128-ctr
KexAlgorithms sntrup761x25519-sha512@openssh.com,gss-curve25519-sha256-,curve25519-sha256,curve25519-sha256@libssh.org,gss-group16-sha512-,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group-exchange-sha256
MACs hmac-sha2-256,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,umac-128-etm@openssh.com
HostKeyAlgorithms sk-ssh-ed25519-cert-v01@openssh.com,ssh-ed25519-cert-v01@openssh.com,sk-ssh-ed25519@openssh.com,ssh-ed25519,rsa-sha2-512-cert-v01@openssh.com,rsa-sha2-256-cert-v01@openssh.com,rsa-sha2-512,rsa-sha2-256

Host */*
  ProxyCommand ssh $(dirname %h) -W $(basename %h):%p
  ProxyJump "$(dirname %h)"

Host 192.168.*.*
    StrictHostKeyChecking no
    UserKnownHostsFile /dev/null
    ForwardAgent yes

Host riga.bobov.name
    CheckHostIp no