Merge branch 'vendor/OPENSSH'
[dragonfly.git] / crypto / openssh / sshd_config
1 #       $OpenBSD: sshd_config,v 1.93 2014/01/10 05:59:19 djm Exp $
2
3 # This is the sshd server system-wide configuration file.  See
4 # sshd_config(5) for more information.
5
6 # This sshd was compiled with PATH=/usr/bin:/bin:/usr/sbin:/sbin
7
8 # The strategy used for options in the default sshd_config shipped with
9 # OpenSSH is to specify options with their default value where
10 # possible, but leave them commented.  Uncommented options override the
11 # default value.
12
13 # Note that some of DragonFly's defaults differ from OpenBSD's, and
14 # DragonFly has a few additional options.
15
16 #VersionAddendum DragonFly-20150122
17
18 #Port 22
19 #AddressFamily any
20 #ListenAddress 0.0.0.0
21 #ListenAddress ::
22
23 # The default requires explicit activation of protocol 1
24 #Protocol 2
25
26 # HostKey for protocol version 1
27 #HostKey /etc/ssh/ssh_host_key
28 # HostKeys for protocol version 2
29 #HostKey /etc/ssh/ssh_host_rsa_key
30 #HostKey /etc/ssh/ssh_host_dsa_key
31 #HostKey /etc/ssh/ssh_host_ecdsa_key
32 #HostKey /etc/ssh/ssh_host_ed25519_key
33
34 # Lifetime and size of ephemeral version 1 server key
35 #KeyRegenerationInterval 1h
36 #ServerKeyBits 1024
37
38 # Ciphers and keying
39 #RekeyLimit default none
40
41 # Logging
42 # obsoletes QuietMode and FascistLogging
43 #SyslogFacility AUTH
44 #LogLevel INFO
45
46 # Authentication:
47
48 #LoginGraceTime 2m
49 # only allow root logins via public key pair
50 PermitRootLogin without-password
51 #StrictModes yes
52 #MaxAuthTries 6
53 #MaxSessions 10
54
55 #RSAAuthentication yes
56 #PubkeyAuthentication yes
57 #PermitBlacklistedKeys no
58
59 # The default is to check both .ssh/authorized_keys and .ssh/authorized_keys2
60 # but this is overridden so installations will only check .ssh/authorized_keys
61 AuthorizedKeysFile      .ssh/authorized_keys
62
63 #AuthorizedPrincipalsFile none
64
65 #AuthorizedKeysCommand none
66 #AuthorizedKeysCommandUser nobody
67
68 # For this to work you will also need host keys in /etc/ssh/ssh_known_hosts
69 RhostsRSAAuthentication no
70 # similar for protocol version 2
71 HostbasedAuthentication no
72 # Change to yes if you don't trust ~/.ssh/known_hosts for
73 # RhostsRSAAuthentication and HostbasedAuthentication
74 #IgnoreUserKnownHosts no
75 # Don't read the user's ~/.rhosts and ~/.shosts files
76 IgnoreRhosts yes
77
78 # To disable tunneled clear text passwords, change to no here!
79 # We disable cleartext passwords by default
80 PasswordAuthentication no
81 #PermitEmptyPasswords no
82
83 # Change to no to disable s/key and tunneled clear-text passwords
84 # when PAM is enabled.  We disable this by default.  Note that
85 # PAM is also disabled by default.
86 ChallengeResponseAuthentication no
87
88 # Kerberos options
89 #KerberosAuthentication no
90 #KerberosOrLocalPasswd yes
91 #KerberosTicketCleanup yes
92 #KerberosGetAFSToken no
93
94 # GSSAPI options
95 #GSSAPIAuthentication no
96 #GSSAPICleanupCredentials yes
97
98 # Set this to 'yes' to enable PAM authentication, account processing,
99 # and session processing. If this is enabled, PAM authentication will
100 # be allowed through the ChallengeResponseAuthentication and
101 # PasswordAuthentication.  Depending on your PAM configuration,
102 # PAM authentication via ChallengeResponseAuthentication may bypass
103 # the setting of "PermitRootLogin without-password".
104 # If you just want the PAM account and session checks to run without
105 # PAM authentication, then enable this but set PasswordAuthentication
106 # and ChallengeResponseAuthentication to 'no'.
107 #UsePAM no
108
109 #AllowAgentForwarding yes
110 #AllowTcpForwarding yes
111 #GatewayPorts no
112 #X11Forwarding yes
113 #X11DisplayOffset 10
114 #X11UseLocalhost yes
115 #PermitTTY yes
116 #PrintMotd yes
117 #PrintLastLog yes
118 #TCPKeepAlive yes
119 #UseLogin no
120 UsePrivilegeSeparation sandbox          # Default for new installations.
121 #PermitUserEnvironment no
122 #Compression delayed
123 #ClientAliveInterval 0
124 #ClientAliveCountMax 3
125 #UseDNS yes
126 #PidFile /var/run/sshd.pid
127 #MaxStartups 10:30:100
128 #PermitTunnel no
129 #ChrootDirectory none
130
131 #XAuthLocation /usr/local/bin/xauth
132
133 # no default banner path
134 #Banner none
135
136 # override default of no subsystems
137 Subsystem       sftp    /usr/libexec/sftp-server
138
139 # the following are HPN related configuration options
140 # tcp receive buffer polling. disable in non autotuning kernels
141 #TcpRcvBufPoll yes
142
143 # allow the use of the none cipher
144 #NoneEnabled no
145
146 # disable hpn performance boosts.
147 #HPNDisabled no
148
149 # buffer size for hpn to non-hpn connections
150 #HPNBufferSize 2048
151
152
153 # Example of overriding settings on a per-user basis
154 #Match User anoncvs
155 #       X11Forwarding no
156 #       AllowTcpForwarding no
157 #       PermitTTY no
158 #       ForceCommand cvs server