]> ruderich.org/simon Gitweb - config/dotfiles.git/blob - ssh_config
ssh_config: Improve comment for ControlPath.
[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
19 # Rules for all hosts.
20 Host *
21
22 # Force protocol version 2 which is more secure.
23     Protocol 2
24
25 # Disable X11 and agent forwarding for security reasons.
26     ForwardX11 no
27     ForwardAgent no
28 # Don't trust remote X11 clients. If enabled allows bad admins complete access
29 # to local X11!
30     ForwardX11Trusted no
31
32 # Allow using -M (ControlMaster) to create a master SSH session which
33 # "tunnels" other connections to the same host, thus reducing the number of
34 # authentications (which are relatively slow) and TCP connections.
35     ControlPath ~/.ssh/master-%l-%h-%p-%r
36
37 # Abort if not all requested port forwardings can be set up.
38     ExitOnForwardFailure yes
39
40 # Don't send any environment variables.
41     SendEnv
42
43 # Check host IP in known_hosts when connecting to detect DNS spoofing.
44     CheckHostIP yes
45 # Ask before adding any host keys to ~/.ssh/known_hosts.
46     StrictHostKeyChecking ask