models/Sshd.pl

filter: Statementstmt 100% 7 / 7 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 2 / 2 Podpod n/a totaltotal 100% 9 / 9 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« models/Ssh/PortForward.pl ↑ Summary models/Sshd/MatchBlock.pl »
1 #
2 # This file is part of Config-Model-OpenSsh
3 #
4 # This software is Copyright (c) 2008-2025 by Dominique Dumont.
5 #
6 # This is free software, licensed under:
7 #
8 # The GNU Lesser General Public License, Version 2.1, February 1999
9 #
10 3 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
11 3 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
12  
13 return [
14 {
15 3 'accept' => [
16 '.*',
17 {
18 'summary' => 'boilerplate parameter that may hide a typo',
19 'type' => 'leaf',
20 'value_type' => 'uniline',
21 'warn' => 'Unknown parameter. Please make sure there\'s no typo and contact the author'
22 }
23 ],
24 'class_description' => 'This configuration class was generated from sshd_system documentation.
25 by L<parse-man.pl|https://github.com/dod38fr/config-model-openssh/contrib/parse-man.pl>
26 ',
27 'element' => [
28 'AddressFamily',
29 {
30 'choice' => [
31 'any',
32 'inet',
33 'inet6'
34 ],
35 'description' => 'Specifies which address family should be used by L<sshd(8)>. Valid arguments
36 are B<any> (the default), B<inet> (use IPv4 only), or B<inet6> (use IPv6 only).',
37 'type' => 'leaf',
38 'upstream_default' => 'any',
39 'value_type' => 'enum'
40 },
41 'Ciphers',
42 {
43 'description' => 'Specifies the ciphers allowed. Multiple ciphers must be comma-separated. If the
44 specified list begins with a \'+\' character, then the specified ciphers will be
45 appended to the default set instead of replacing them. If the specified list
46 begins with a \'-\' character, then the specified ciphers (including wildcards)
47 will be removed from the default set instead of replacing them. If the
48 specified list begins with a \'^\' character, then the specified ciphers will be
49 placed at the head of the default set.
50  
51 The supported ciphers are:
52  
53 B<3des-cbc> B<aes128-cbc> B<aes192-cbc> B<aes256-cbc> B<aes128-ctr>
54 B<aes192-ctr> B<aes256-ctr> B<aes128-gcm@openssh.com> B<aes256-gcm@openssh.com>
55 B<chacha20-poly1305@openssh.com>
56  
57 The default is: chacha20-poly1305@openssh.com, aes128-gcm@openssh.com,
58 aes256-gcm@openssh.com, aes128-ctr, aes192-ctr, aes256-ctr
59  
60 The list of available ciphers may also be obtained using Qq ssh -Q cipher .',
61 'type' => 'leaf',
62 'value_type' => 'uniline'
63 },
64 'Compression',
65 {
66 'choice' => [
67 'delayed',
68 'no',
69 'yes'
70 ],
71 'description' => 'Specifies whether compression is enabled after the user has authenticated
72 successfully. The argument must be B<yes> B<delayed> (a legacy synonym for
73 B<yes> or B<no> The default is B<yes>',
74 'type' => 'leaf',
75 'upstream_default' => 'yes',
76 'value_type' => 'enum'
77 },
78 'DebianBanner',
79 {
80 'description' => 'Specifies whether the distribution-specified extra version suffix is included
81 during initial protocol handshake. The default is B<yes>',
82 'type' => 'leaf',
83 'upstream_default' => 'yes',
84 'value_type' => 'boolean',
85 'write_as' => [
86 'no',
87 'yes'
88 ]
89 },
90 'FingerprintHash',
91 {
92 'choice' => [
93 'md5',
94 'sha256'
95 ],
96 'description' => 'Specifies the hash algorithm used when logging key fingerprints. Valid options
97 are: B<md5> and B<sha256> The default is B<sha256>',
98 'type' => 'leaf',
99 'upstream_default' => 'sha256',
100 'value_type' => 'enum'
101 },
102 'GSSAPICleanupCredentials',
103 {
104 'description' => 'Specifies whether to automatically destroy the user\'s credentials cache on
105 logout. The default is B<yes>',
106 'type' => 'leaf',
107 'upstream_default' => 'yes',
108 'value_type' => 'boolean',
109 'write_as' => [
110 'no',
111 'yes'
112 ]
113 },
114 'GSSAPIKeyExchange',
115 {
116 'description' => 'Specifies whether key exchange based on GSSAPI is allowed. GSSAPI key exchange
117 doesn\'t rely on ssh keys to verify host identity. The default is B<no>',
118 'type' => 'leaf',
119 'upstream_default' => 'no',
120 'value_type' => 'boolean',
121 'write_as' => [
122 'no',
123 'yes'
124 ]
125 },
126 'GSSAPIStrictAcceptorCheck',
127 {
128 'description' => 'Determines whether to be strict about the identity of the GSSAPI acceptor a
129 client authenticates against. If set to B<yes> then the client must
130 authenticate against the host service on the current hostname. If set to B<no>
131 then the client may authenticate against any service key stored in the
132 machine\'s default store. This facility is provided to assist with operation on
133 multi homed machines. The default is B<yes>',
134 'type' => 'leaf',
135 'upstream_default' => 'yes',
136 'value_type' => 'boolean',
137 'write_as' => [
138 'no',
139 'yes'
140 ]
141 },
142 'GSSAPIStoreCredentialsOnRekey',
143 {
144 'description' => 'Controls whether the user\'s GSSAPI credentials should be updated following a
145 successful connection rekeying. This option can be used to accepted renewed or
146 updated credentials from a compatible client. The default is \'\'no\'\'
147  
148 For this to work B<GSSAPIKeyExchange> needs to be enabled in the server and
149 also used by the client.',
150 'type' => 'leaf',
151 'upstream_default' => 'no',
152 'value_type' => 'boolean',
153 'write_as' => [
154 'no',
155 'yes'
156 ]
157 },
158 'GSSAPIKexAlgorithms',
159 {
160 'description' => 'The list of key exchange algorithms that are accepted by GSSAPI key exchange.
161 Possible values are gss-gex-sha1-, gss-group1-sha1-, gss-group14-sha1-,
162 gss-group14-sha256-, gss-group16-sha512-, gss-nistp256-sha256-,
163 gss-curve25519-sha256-
164  
165 The default is \'\'gss-group14-sha256-, gss-group16-sha512-,
166 gss-nistp256-sha256-, gss-curve25519-sha256-, gss-gex-sha1-,
167 gss-group14-sha1-\'\' This option only applies to connections using GSSAPI.',
168 'type' => 'leaf',
169 'value_type' => 'uniline'
170 },
171 'HostCertificate',
172 {
173 'description' => 'Specifies a file containing a public host certificate. The certificate\'s public
174 key must match a private host key already specified by B<HostKey> The default
175 behaviour of L<sshd(8)> is not to load any certificates.',
176 'type' => 'leaf',
177 'value_type' => 'uniline'
178 },
179 'HostKey',
180 {
181 'description' => 'Specifies a file containing a private host key used by SSH. The defaults are
182 /etc/ssh/ssh_host_ecdsa_key /etc/ssh/ssh_host_ed25519_key and
183 /etc/ssh/ssh_host_rsa_key
184  
185 Note that L<sshd(8)> will refuse to use a file if it is group/world-accessible
186 and that the B<HostKeyAlgorithms> option restricts which of the keys are
187 actually used by L<sshd(8)>.
188  
189 It is possible to have multiple host key files. It is also possible to specify
190 public host key files instead. In this case operations on the private key will
191 be delegated to an ssh-agent1.',
192 'type' => 'leaf',
193 'value_type' => 'uniline'
194 },
195 'HostKeyAgent',
196 {
197 'description' => 'Identifies the UNIX-domain socket used to communicate with an agent that has
198 access to the private host keys. If the string Qq SSH_AUTH_SOCK is specified,
199 the location of the socket will be read from the B<SSH_AUTH_SOCK> environment
200 variable.',
201 'type' => 'leaf',
202 'value_type' => 'uniline'
203 },
204 'HostKeyAlgorithms',
205 {
206 'description' => 'Specifies the host key signature algorithms that the server offers. The default
207 for this option is: ssh-ed25519-cert-v01@openssh.com,
208 ecdsa-sha2-nistp256-cert-v01@openssh.com,
209 ecdsa-sha2-nistp384-cert-v01@openssh.com,
210 ecdsa-sha2-nistp521-cert-v01@openssh.com, sk-ssh-ed25519-cert-v01@openssh.com,
211 sk-ecdsa-sha2-nistp256-cert-v01@openssh.com, rsa-sha2-512-cert-v01@openssh.com,
212 rsa-sha2-256-cert-v01@openssh.com, ssh-ed25519, ecdsa-sha2-nistp256,
213 ecdsa-sha2-nistp384, ecdsa-sha2-nistp521, sk-ssh-ed25519@openssh.com,
214 sk-ecdsa-sha2-nistp256@openssh.com, rsa-sha2-512, rsa-sha2-256
215  
216 The list of available signature algorithms may also be obtained using Qq ssh -Q
217 HostKeyAlgorithms .',
218 'type' => 'leaf',
219 'value_type' => 'uniline'
220 },
221 'IgnoreUserKnownHosts',
222 {
223 'description' => 'Specifies whether L<sshd(8)> should ignore the user\'s ~/.ssh/known_hosts during
224 B<HostbasedAuthentication> and use only the system-wide known hosts file
225 /etc/ssh/ssh_known_hosts The default is \'\'no\'\'',
226 'type' => 'leaf',
227 'upstream_default' => 'no',
228 'value_type' => 'boolean',
229 'write_as' => [
230 'no',
231 'yes'
232 ]
233 },
234 'KerberosGetAFSToken',
235 {
236 'description' => 'If AFS is active and the user has a Kerberos 5 TGT, attempt to acquire an AFS
237 token before accessing the user\'s home directory. The default is B<no>',
238 'type' => 'leaf',
239 'upstream_default' => 'no',
240 'value_type' => 'boolean',
241 'write_as' => [
242 'no',
243 'yes'
244 ]
245 },
246 'KerberosOrLocalPasswd',
247 {
248 'description' => 'If password authentication through Kerberos fails then the password will be
249 validated via any additional local mechanism such as /etc/passwd The default is
250 B<yes>',
251 'type' => 'leaf',
252 'upstream_default' => 'yes',
253 'value_type' => 'boolean',
254 'write_as' => [
255 'no',
256 'yes'
257 ]
258 },
259 'KerberosTicketCleanup',
260 {
261 'description' => 'Specifies whether to automatically destroy the user\'s ticket cache file on
262 logout. The default is B<yes>',
263 'type' => 'leaf',
264 'upstream_default' => 'yes',
265 'value_type' => 'boolean',
266 'write_as' => [
267 'no',
268 'yes'
269 ]
270 },
271 'KexAlgorithms',
272 {
273 'description' => 'Specifies the permitted KEX (Key Exchange) algorithms that the server will
274 offer to clients. The ordering of this list is not important, as the client
275 specifies the preference order. Multiple algorithms must be comma-separated.
276  
277 If the specified list begins with a \'+\' character, then the specified
278 algorithms will be appended to the default set instead of replacing them. If
279 the specified list begins with a \'-\' character, then the specified algorithms
280 (including wildcards) will be removed from the default set instead of replacing
281 them. If the specified list begins with a \'^\' character, then the specified
282 algorithms will be placed at the head of the default set.
283  
284 The supported algorithms are:
285  
286 B<curve25519-sha256> B<curve25519-sha256@libssh.org>
287 B<diffie-hellman-group1-sha1> B<diffie-hellman-group14-sha1>
288 B<diffie-hellman-group14-sha256> B<diffie-hellman-group16-sha512>
289 B<diffie-hellman-group18-sha512> B<diffie-hellman-group-exchange-sha1>
290 B<diffie-hellman-group-exchange-sha256> B<ecdh-sha2-nistp256>
291 B<ecdh-sha2-nistp384> B<ecdh-sha2-nistp521> B<mlkem768x25519-sha256>
292 B<sntrup761x25519-sha512> B<sntrup761x25519-sha512@openssh.com>
293  
294 The default is: mlkem768x25519-sha256, sntrup761x25519-sha512,
295 sntrup761x25519-sha512@openssh.com, curve25519-sha256,
296 curve25519-sha256@libssh.org, ecdh-sha2-nistp256, ecdh-sha2-nistp384,
297 ecdh-sha2-nistp521
298  
299 The list of supported key exchange algorithms may also be obtained using Qq ssh
300 -Q KexAlgorithms .',
301 'type' => 'leaf',
302 'value_type' => 'uniline'
303 },
304 'ListenAddress',
305 {
306 'description' => 'Specifies the local addresses L<sshd(8)> should listen on. The following forms
307 may be used:
308  
309 B<ListenAddress> I<hostname | address> [B<rdomain> I<domain> ] B<ListenAddress>
310 I<hostname : port> [B<rdomain> I<domain> ] B<ListenAddress> I<IPv4_address :
311 port> [B<rdomain> I<domain> ] B<ListenAddress> [I<hostname | address : port> ]
312 [B<rdomain> I<domain> ]
313  
314 The optional B<rdomain> qualifier requests L<sshd(8)> listen in an explicit
315 routing domain. If I<port> is not specified, sshd will listen on the address
316 and all B<Port> options specified. The default is to listen on all local
317 addresses on the current default routing domain. Multiple B<ListenAddress>
318 options are permitted.
319  
320 On Linux, routing domains are implemented using Virtual Routing and Forwarding
321 domains (VRFs); for more information, see ip-vrf8.',
322 'type' => 'leaf',
323 'value_type' => 'uniline'
324 },
325 'LoginGraceTime',
326 {
327 'description' => 'The server disconnects after this time if the user has not successfully logged
328 in. If the value is 0, there is no time limit. The default is 120 seconds.',
329 'type' => 'leaf',
330 'value_type' => 'uniline'
331 },
332 'LogVerbose',
333 {
334 'description' => 'Specify one or more overrides to B<LogLevel> An override consists of one or
335 more pattern lists that matches the source file, function and line number to
336 force detailed logging for. For example, an override pattern of:
337 kex.c:*:1000,*:kex_exchange_identification():*, packet.c:*
338  
339 would enable detailed logging for line 1000 of kex.c everything in the Fn
340 kex_exchange_identification function, and all code in the packet.c file. This
341 option is intended for debugging and no overrides are enabled by default.',
342 'type' => 'leaf',
343 'value_type' => 'uniline'
344 },
345 'MACs',
346 {
347 'description' => 'Specifies the available MAC (message authentication code) algorithms.
348  
349 The MAC algorithm is used for data integrity protection. Multiple algorithms
350 must be comma-separated. If the specified list begins with a \'+\' character,
351 then the specified algorithms will be appended to the default set instead of
352 replacing them. If the specified list begins with a \'-\' character, then the
353 specified algorithms (including wildcards) will be removed from the default set
354 instead of replacing them. If the specified list begins with a \'^\' character,
355 then the specified algorithms will be placed at the head of the default set.
356  
357 The algorithms that contain Qq -etm calculate the MAC after encryption
358 (encrypt-then-mac). These are considered safer and their use recommended. The
359 supported MACs are:
360  
361 B<hmac-md5> B<hmac-md5-96> B<hmac-sha1> B<hmac-sha1-96> B<hmac-sha2-256>
362 B<hmac-sha2-512> B<umac-64@openssh.com> B<umac-128@openssh.com>
363 B<hmac-md5-etm@openssh.com> B<hmac-md5-96-etm@openssh.com>
364 B<hmac-sha1-etm@openssh.com> B<hmac-sha1-96-etm@openssh.com>
365 B<hmac-sha2-256-etm@openssh.com> B<hmac-sha2-512-etm@openssh.com>
366 B<umac-64-etm@openssh.com> B<umac-128-etm@openssh.com>
367  
368 The default is: umac-64-etm@openssh.com, umac-128-etm@openssh.com,
369 hmac-sha2-256-etm@openssh.com, hmac-sha2-512-etm@openssh.com,
370 hmac-sha1-etm@openssh.com, umac-64@openssh.com, umac-128@openssh.com,
371 hmac-sha2-256, hmac-sha2-512, hmac-sha1
372  
373 The list of available MAC algorithms may also be obtained using Qq ssh -Q mac .',
374 'type' => 'leaf',
375 'value_type' => 'uniline'
376 },
377 'Match',
378 {
379 'cargo' => {
380 'config_class_name' => 'Sshd::MatchBlock',
381 'type' => 'node'
382 },
383 'description' => 'Introduces a conditional block. If all of the criteria on the B<Match> line are
384 satisfied, the keywords on the following lines override those set in the global
385 section of the config file, until either another B<Match> line or the end of
386 the file. If a keyword appears in multiple B<Match> blocks that are satisfied,
387 only the first instance of the keyword is applied.
388  
389 The arguments to B<Match> are one or more criteria-pattern pairs or one of the
390 single token criteria: B<All> which matches all criteria, or B<Invalid-User>
391 which matches when the requested user-name does not match any known account.
392 The available criteria are B<User> B<Group> B<Host> B<LocalAddress>
393 B<LocalPort> B<Version> B<RDomain> and B<Address> (with B<RDomain> representing
394 the routing domain on which the connection was received; see ip-vrf8).
395  
396 The match patterns may consist of single entries or comma-separated lists and
397 may use the wildcard and negation operators described in the I<PATTERNS>
398 section of ssh_config5.
399  
400 The patterns in an B<Address> criteria may additionally contain addresses to
401 match in CIDR address/masklen format, such as 192.0.2.0/24 or 2001:db8::/32.
402 Note that the mask length provided must be consistent with the address - it is
403 an error to specify a mask length that is too long for the address or one with
404 bits set in this host portion of the address. For example, 192.0.2.0/33 and
405 192.0.2.0/8, respectively.
406  
407 The B<Version> keyword matches against the version string of L<sshd(8)>, for
408 example \'\'OpenSSH_10.0\'\'
409  
410 Only a subset of keywords may be used on the lines following a B<Match>
411 keyword. Available keywords are B<AcceptEnv> B<AllowAgentForwarding>
412 B<AllowGroups> B<AllowStreamLocalForwarding> B<AllowTcpForwarding>
413 B<AllowUsers> B<AuthenticationMethods> B<AuthorizedKeysCommand>
414 B<AuthorizedKeysCommandUser> B<AuthorizedKeysFile>
415 B<AuthorizedPrincipalsCommand> B<AuthorizedPrincipalsCommandUser>
416 B<AuthorizedPrincipalsFile> B<Banner> B<CASignatureAlgorithms>
417 B<ChannelTimeout> B<ChrootDirectory> B<ClientAliveCountMax>
418 B<ClientAliveInterval> B<DenyGroups> B<DenyUsers> B<DisableForwarding>
419 B<ExposeAuthInfo> B<ForceCommand> B<GatewayPorts> B<GSSAPIAuthentication>
420 B<HostbasedAcceptedAlgorithms> B<HostbasedAuthentication>
421 B<HostbasedUsesNameFromPacketOnly> B<IgnoreRhosts> B<Include> B<IPQoS>
422 B<KbdInteractiveAuthentication> B<KerberosAuthentication> B<LogLevel>
423 B<MaxAuthTries> B<MaxSessions> B<PAMServiceName> B<PasswordAuthentication>
424 B<PermitEmptyPasswords> B<PermitListen> B<PermitOpen> B<PermitRootLogin>
425 B<PermitTTY> B<PermitTunnel> B<PermitUserRC> B<PubkeyAcceptedAlgorithms>
426 B<PubkeyAuthentication> B<PubkeyAuthOptions> B<RefuseConnection> B<RekeyLimit>
427 B<RevokedKeys> B<SetEnv> B<StreamLocalBindMask> B<StreamLocalBindUnlink>
428 B<TrustedUserCAKeys> B<UnusedConnectionTimeout> B<X11DisplayOffset>
429 B<X11Forwarding> and B<X11UseLocalhost>',
430 'type' => 'list'
431 },
432 'MaxStartups',
433 {
434 'description' => 'Specifies the maximum number of concurrent unauthenticated connections to the
435 SSH daemon. Additional connections will be dropped until authentication
436 succeeds or the B<LoginGraceTime> expires for a connection. The default is
437 10:30:100.
438  
439 Alternatively, random early drop can be enabled by specifying the three colon
440 separated values start:rate:full (e.g. "10:30:60"). L<sshd(8)> will refuse
441 connection attempts with a probability of rate/100 (30%) if there are currently
442 start (10) unauthenticated connections. The probability increases linearly and
443 all connection attempts are refused if the number of unauthenticated
444 connections reaches full (60).',
445 'type' => 'leaf',
446 'upstream_default' => '10',
447 'value_type' => 'uniline'
448 },
449 'ModuliFile',
450 {
451 'description' => 'Specifies the L<moduli(5)> file that contains the Diffie-Hellman groups used
452 for the \'\'diffie-hellman-group-exchange-sha1\'\' and
453 \'\'diffie-hellman-group-exchange-sha256\'\' key exchange methods. The default is
454 /etc/ssh/moduli',
455 'type' => 'leaf',
456 'upstream_default' => '/etc/ssh/moduli',
457 'value_type' => 'uniline'
458 },
459 'PermitUserEnvironment',
460 {
461 'description' => 'Specifies whether ~/.ssh/environment and B<environment=> options in
462 ~/.ssh/authorized_keys are processed by L<sshd(8)>. Valid options are B<yes>
463 B<no> or a pattern-list specifying which environment variable names to accept
464 (for example Qq LANG, LC_* ) . The default is B<no> Enabling environment
465 processing may enable users to bypass access restrictions in some
466 configurations using mechanisms such as B<LD_PRELOAD>',
467 'type' => 'leaf',
468 'upstream_default' => 'no',
469 'value_type' => 'boolean',
470 'write_as' => [
471 'no',
472 'yes'
473 ]
474 },
475 'PerSourceMaxStartups',
476 {
477 'description' => 'Specifies the number of unauthenticated connections allowed from a given source
478 address, or \'\'none\'\' if there is no limit. This limit is applied in addition to
479 B<MaxStartups> whichever is lower. The default is B<none>',
480 'type' => 'leaf',
481 'upstream_default' => 'none',
482 'value_type' => 'uniline'
483 },
484 'PerSourceNetBlockSize',
485 {
486 'description' => 'Specifies the number of bits of source address that are grouped together for
487 the purposes of applying PerSourceMaxStartups limits. Values for IPv4 and
488 optionally IPv6 may be specified, separated by a colon. The default is
489 B<32:128> which means each address is considered individually.',
490 'type' => 'leaf',
491 'upstream_default' => '32:128',
492 'value_type' => 'uniline'
493 },
494 'PerSourcePenalties',
495 {
496 'description' => 'Controls penalties for various conditions that may represent attacks on
497 L<sshd(8)>. If a penalty is enforced against a client then its source address
498 and any others in the same network, as defined by B<PerSourceNetBlockSize> will
499 be refused connection for a period.
500  
501 A penalty doesn\'t affect concurrent connections in progress, but multiple
502 penalties from the same source from concurrent connections will accumulate up
503 to a maximum. Conversely, penalties are not applied until a minimum threshold
504 time has been accumulated.
505  
506 Penalties are enabled by default with the default settings listed below but may
507 disabled using the B<no> keyword. The defaults may be overridden by specifying
508 one or more of the keywords below, separated by whitespace. All keywords accept
509 arguments, e.g. Qq crash:2m .
510  
511 B<crash:duration> Specifies how long to refuse clients that cause a crash of
512 L<sshd(8)>(default:90s). B<authfail:duration> Specifies how long to refuse
513 clients that disconnect after making one or more unsuccessful authentication
514 attempts (default: 5s). B<refuseconnection:duration> Specifies how long to
515 refuse clients that were administratively prohibited connection via the
516 B<RefuseConnection> option (default: 10s). B<noauth:duration> Specifies how
517 long to refuse clients that disconnect without attempting authentication
518 (default: 1s). This timeout should be used cautiously otherwise it may penalise
519 legitimate scanning tools such as ssh-keyscan1. B<grace-exceeded:duration>
520 Specifies how long to refuse clients that fail to authenticate after
521 B<LoginGraceTime> (default: 10s). B<max:duration> Specifies the maximum time a
522 particular source address range will be refused access for (default: 10m).
523 Repeated penalties will accumulate up to this maximum. B<min:duration>
524 Specifies the minimum penalty that must accrue before enforcement begins
525 (default: 15s). B<max-sources4:number , max-sources6:number> Specifies the
526 maximum number of client IPv4 and IPv6 address ranges to track for penalties
527 (default: 65536 for both). B<overflow:mode> Controls how the server behaves
528 when B<max-sources4> or B<max-sources6> is exceeded. There are two operating
529 modes: B<deny-all> which denies all incoming connections other than those
530 exempted via B<PerSourcePenaltyExemptList> until a penalty expires, and
531 B<permissive> which allows new connections by removing existing penalties early
532 (default: permissive). Note that client penalties below the B<min> threshold
533 count against the total number of tracked penalties. IPv4 and IPv6 addresses
534 are tracked separately, so an overflow in one will not affect the other.
535 B<overflow6:mode> Allows specifying a different overflow mode for IPv6
536 addresses. The default it to use the same overflow mode as was specified for
537 IPv4.',
538 'type' => 'leaf',
539 'value_type' => 'uniline'
540 },
541 'PerSourcePenaltyExemptList',
542 {
543 'description' => 'Specifies a comma-separated list of addresses to exempt from penalties. This
544 list may contain wildcards and CIDR address/masklen ranges. Note that the mask
545 length provided must be consistent with the address - it is an error to specify
546 a mask length that is too long for the address or one with bits set in this
547 host portion of the address. For example, 192.0.2.0/33 and 192.0.2.0/8,
548 respectively. The default is not to exempt any addresses.',
549 'type' => 'leaf',
550 'value_type' => 'uniline'
551 },
552 'PidFile',
553 {
554 'description' => 'Specifies the file that contains the process ID of the SSH daemon, or B<none>
555 to not write one. The default is /run/sshd.pid',
556 'type' => 'leaf',
557 'upstream_default' => '/run/sshd',
558 'value_type' => 'uniline'
559 },
560 'Port',
561 {
562 'description' => 'Specifies the port number that L<sshd(8)> listens on. The default is 22.
563 Multiple options of this type are permitted. See also B<ListenAddress>',
564 'type' => 'leaf',
565 'value_type' => 'uniline'
566 },
567 'PrintLastLog',
568 {
569 'description' => 'Specifies whether L<sshd(8)> should print the date and time of the last user
570 login when a user logs in interactively. The default is B<yes>',
571 'type' => 'leaf',
572 'upstream_default' => 'yes',
573 'value_type' => 'boolean',
574 'write_as' => [
575 'no',
576 'yes'
577 ]
578 },
579 'PrintMotd',
580 {
581 'description' => 'Specifies whether L<sshd(8)> should print /etc/motd when a user logs in
582 interactively. (On some systems it is also printed by the shell, /etc/profile
583 or equivalent.) The default is B<yes>',
584 'type' => 'leaf',
585 'upstream_default' => 'yes',
586 'value_type' => 'boolean',
587 'write_as' => [
588 'no',
589 'yes'
590 ]
591 },
592 'RequiredRSASize',
593 {
594 'description' => 'Specifies the minimum RSA key size (in bits) that L<sshd(8)> will accept. User
595 and host-based authentication keys smaller than this limit will be refused. The
596 default is B<1024> bits. Note that this limit may only be raised from the
597 default.',
598 'type' => 'leaf',
599 'upstream_default' => '1024',
600 'value_type' => 'integer'
601 },
602 'SecurityKeyProvider',
603 {
604 'description' => 'Specifies a path to a library that will be used when loading FIDO
605 authenticator-hosted keys, overriding the default of using the built-in USB HID
606 support.',
607 'type' => 'leaf',
608 'value_type' => 'uniline'
609 },
610 'SshdAuthPath',
611 {
612 'description' => 'Overrides the default path to the B<sshd-auth> binary that is invoked to
613 complete user authentication. The default is /usr/lib/openssh/sshd-auth This
614 option is intended for use by tests.',
615 'type' => 'leaf',
616 'upstream_default' => '/usr/lib/openssh/sshd',
617 'value_type' => 'uniline'
618 },
619 'SshdSessionPath',
620 {
621 'description' => 'Overrides the default path to the B<sshd-session> binary that is invoked to
622 handle each connection. The default is /usr/lib/openssh/sshd-session This
623 option is intended for use by tests.',
624 'type' => 'leaf',
625 'upstream_default' => '/usr/lib/openssh/sshd',
626 'value_type' => 'uniline'
627 },
628 'StrictModes',
629 {
630 'description' => 'Specifies whether L<sshd(8)> should check file modes and ownership of the
631 user\'s files and home directory before accepting login. This is normally
632 desirable because novices sometimes accidentally leave their directory or files
633 world-writable. The default is B<yes> Note that this does not apply to
634 B<ChrootDirectory> whose permissions and ownership are checked unconditionally.',
635 'type' => 'leaf',
636 'upstream_default' => 'yes',
637 'value_type' => 'boolean',
638 'write_as' => [
639 'no',
640 'yes'
641 ]
642 },
643 'Subsystem',
644 {
645 'cargo' => {
646 'mandatory' => '1',
647 'type' => 'leaf',
648 'value_type' => 'uniline'
649 },
650 'description' => 'Configures an external subsystem (e.g. file transfer daemon). Arguments should
651 be a subsystem name and a command (with optional arguments) to execute upon
652 subsystem request.
653  
654 The command B<sftp-server> implements the SFTP file transfer subsystem.
655  
656 Alternately the name B<internal-sftp> implements an in-process SFTP server.
657 This may simplify configurations using B<ChrootDirectory> to force a different
658 filesystem root on clients. It accepts the same command line arguments as
659 B<sftp-server> and even though it is in-process, settings such as B<LogLevel>
660 or B<SyslogFacility> do not apply to it and must be set explicitly via command
661 line arguments.
662  
663 By default no subsystems are defined.',
664 'index_type' => 'string',
665 'type' => 'hash'
666 },
667 'SyslogFacility',
668 {
669 'choice' => [
670 'AUTH',
671 'DAEMON',
672 'LOCAL0',
673 'LOCAL1',
674 'LOCAL2',
675 'LOCAL3',
676 'LOCAL4',
677 'LOCAL5',
678 'LOCAL6',
679 'LOCAL7',
680 'USER'
681 ],
682 'description' => 'Gives the facility code that is used when logging messages from L<sshd(8)>. The
683 possible values are: DAEMON, USER, AUTH, LOCAL0, LOCAL1, LOCAL2, LOCAL3,
684 LOCAL4, LOCAL5, LOCAL6, LOCAL7. The default is AUTH.',
685 'type' => 'leaf',
686 'upstream_default' => 'AUTH',
687 'value_type' => 'enum'
688 },
689 'TCPKeepAlive',
690 {
691 'description' => 'Specifies whether the system should send TCP keepalive messages to the other
692 side. If they are sent, death of the connection or crash of one of the machines
693 will be properly noticed. However, this means that connections will die if the
694 route is down temporarily, and some people find it annoying. On the other hand,
695 if TCP keepalives are not sent, sessions may hang indefinitely on the server,
696 leaving Qq ghost users and consuming server resources.
697  
698 The default is B<yes> (to send TCP keepalive messages), and the server will
699 notice if the network goes down or the client host crashes. This avoids
700 infinitely hanging sessions.
701  
702 To disable TCP keepalive messages, the value should be set to B<no>
703  
704 This option was formerly called B<KeepAlive>',
705 'type' => 'leaf',
706 'upstream_default' => 'yes',
707 'value_type' => 'boolean',
708 'write_as' => [
709 'no',
710 'yes'
711 ]
712 },
713 'UseDNS',
714 {
715 'description' => 'Specifies whether L<sshd(8)> should look up the remote host name, and to check
716 that the resolved host name for the remote IP address maps back to the very
717 same IP address.
718  
719 If this option is set to B<no> (the default) then only addresses and not host
720 names may be used in ~/.ssh/authorized_keys B<from> and B<sshd_config> B<Match>
721 B<Host> directives.',
722 'type' => 'leaf',
723 'upstream_default' => 'no',
724 'value_type' => 'boolean',
725 'write_as' => [
726 'no',
727 'yes'
728 ]
729 },
730 'UsePAM',
731 {
732 'description' => 'Enables the Pluggable Authentication Module interface. If set to B<yes> this
733 will enable PAM authentication using B<KbdInteractiveAuthentication> and
734 B<PasswordAuthentication> in addition to PAM account and session module
735 processing for all authentication types.
736  
737 Because PAM keyboard-interactive authentication usually serves an equivalent
738 role to password authentication, you should disable either
739 B<PasswordAuthentication> or B<KbdInteractiveAuthentication>
740  
741 If B<UsePAM> is enabled, you will not be able to run L<sshd(8)> as a non-root
742 user. The default is B<no>',
743 'type' => 'leaf',
744 'upstream_default' => 'no',
745 'value_type' => 'boolean',
746 'write_as' => [
747 'no',
748 'yes'
749 ]
750 },
751 'VersionAddendum',
752 {
753 'description' => 'Optionally specifies additional text to append to the SSH protocol banner sent
754 by the server upon connection. The default is B<none>',
755 'type' => 'leaf',
756 'value_type' => 'uniline'
757 },
758 'XAuthLocation',
759 {
760 'description' => 'Specifies the full pathname of the L<xauth(1)> program, or B<none> to not use
761 one. The default is /usr/bin/xauth',
762 'type' => 'leaf',
763 'upstream_default' => '/usr/bin/xauth',
764 'value_type' => 'uniline'
765 }
766 ],
767 'generated_by' => 'parse-man.pl from sshd_system 10.2p1 doc',
768 'include' => [
769 'Sshd::MatchElement'
770 ],
771 'license' => 'LGPL2',
772 'name' => 'Sshd',
773 'rw_config' => {
774 'backend' => 'OpenSsh::Sshd',
775 'config_dir' => '/etc/ssh',
776 'file' => 'sshd_config',
777 'os_config_dir' => {
778 'darwin' => '/etc'
779 }
780 }
781 }
782 ]
783 ;
784  
« models/Ssh/PortForward.pl ↑ Summary models/Sshd/MatchBlock.pl »