1 # SSH configuration file.
3 # Copyright (C) 2011-2012 Simon Ruderich
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.
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.
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/>.
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.
22 # ServerAliveCountMax 0
23 # ServerAliveInterval 5
26 # Rules for all hosts.
29 # Force protocol version 2 which is more secure.
32 # Disable X11 and agent forwarding for security reasons.
35 # Don't trust remote X11 clients. If enabled allows bad admins complete access
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
44 # Abort if not all requested port forwardings can be set up.
45 ExitOnForwardFailure yes
47 # Don't send any environment variables.
50 # Check host IP in known_hosts when connecting to detect DNS spoofing.
52 # Ask before adding any host keys to ~/.ssh/known_hosts.
53 StrictHostKeyChecking ask