summaryrefslogtreecommitdiff
path: root/src/ssh/config
blob: b1286d4c9e66f3bcb3783490c195091bd505ecb7 (plain)
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

# SSH client config

# General config for all hosts
Host *
    # No idea why I should wait full 30 seconds for a peer to reply ...
    ConnectTimeout 5
    # Prevents hung-up sessions. I guess a firewall dropped the connection as
    # no packages were thransferred for longer time (eg half a hour). This
    # setting sends some ping-like packets after some time which helps
    # firewalls to recognize the connection as alive.
    ServerAliveInterval 107

# Makes bash autocomplete the hostname :)
Host example.com
    Hostname example.com

# Use non-default user/port/whatever for listed hosts
Host 42.42.42.42 example.com
    User myUsernameOnRemote
    Port 12345

# Get rid of annoying security checks where it doesn't make sense (eg
# throw-away VirtualBox machines).
Host 192.168.56.*
    User user
    StrictHostKeyChecking no
    UserKnownHostsFile /dev/null