]> ruderich.org/simon Gitweb - config/dotfiles.git/blob - ssh_config
ssh_config: Document an undocumented ServerAlive* feature.
[config/dotfiles.git] / ssh_config
1 # SSH configuration file.
2
3 # Copyright (C) 2011-2012  Simon Ruderich
4 #
5 # This file is free software: you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation, either version 3 of the License, or
8 # (at your option) any later version.
9 #
10 # This file is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 # GNU General Public License for more details.
14 #
15 # You should have received a copy of the GNU General Public License
16 # along with this file.  If not, see <http://www.gnu.org/licenses/>.
17
18 # Undocumented (and not very well tested) feature. This drops the connection
19 # after 5 seconds of inactivity. Thanks to shad0VV in #openssh on Freenode
20 # (2012-11-04 18:40 CET) for telling me about this undocumented feature.
21 #
22 #     ServerAliveCountMax 0
23 #     ServerAliveInterval 5
24
25
26 # Rules for all hosts.
27 Host *
28
29 # Force protocol version 2 which is more secure.
30     Protocol 2
31
32 # Disable X11 and agent forwarding for security reasons.
33     ForwardX11 no
34     ForwardAgent no
35 # Don't trust remote X11 clients. If enabled allows bad admins complete access
36 # to local X11!
37     ForwardX11Trusted no
38
39 # Allow using -M (ControlMaster) to create a master SSH session which
40 # "tunnels" other connections to the same host, thus reducing the number of
41 # authentications (which are relatively slow) and TCP connections.
42     ControlPath ~/.ssh/master-%l-%h-%p-%r
43
44 # Abort if not all requested port forwardings can be set up.
45     ExitOnForwardFailure yes
46
47 # Don't send any environment variables.
48     SendEnv
49
50 # Check host IP in known_hosts when connecting to detect DNS spoofing.
51     CheckHostIP yes
52 # Ask before adding any host keys to ~/.ssh/known_hosts.
53     StrictHostKeyChecking ask