| 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 | 'AcceptEnv', | ||
| 29 | { | ||
| 30 | 'cargo' => { | ||
| 31 | 'type' => 'leaf', | ||
| 32 | 'value_type' => 'uniline' | ||
| 33 | }, | ||
| 34 | 'description' => 'Specifies what environment variables sent by the client will be copied into the | ||
| 35 | session\'s L<environ(7)>. See B<SendEnv> and B<SetEnv> in ssh_config5 for how to | ||
| 36 | configure the client. The B<TERM> environment variable is always accepted | ||
| 37 | whenever the client requests a pseudo-terminal as it is required by the | ||
| 38 | protocol. Variables are specified by name, which may contain the wildcard | ||
| 39 | characters \'*\' and \'?\' Multiple environment variables may be separated by | ||
| 40 | whitespace or spread across multiple B<AcceptEnv> directives. Be warned that | ||
| 41 | some environment variables could be used to bypass restricted user | ||
| 42 | environments. For this reason, care should be taken in the use of this | ||
| 43 | directive. The default is not to accept any environment variables.', | ||
| 44 | 'type' => 'list' | ||
| 45 | }, | ||
| 46 | 'AllowAgentForwarding', | ||
| 47 | { | ||
| 48 | 'description' => 'Specifies whether ssh-agent1 forwarding is permitted. The default is B<yes> | ||
| 49 | Note that disabling agent forwarding does not improve security unless users are | ||
| 50 | also denied shell access, as they can always install their own forwarders.', | ||
| 51 | 'type' => 'leaf', | ||
| 52 | 'upstream_default' => 'yes', | ||
| 53 | 'value_type' => 'boolean', | ||
| 54 | 'write_as' => [ | ||
| 55 | 'no', | ||
| 56 | 'yes' | ||
| 57 | ] | ||
| 58 | }, | ||
| 59 | 'AllowGroups', | ||
| 60 | { | ||
| 61 | 'cargo' => { | ||
| 62 | 'type' => 'leaf', | ||
| 63 | 'value_type' => 'uniline' | ||
| 64 | }, | ||
| 65 | 'description' => 'This keyword can be followed by a list of group name patterns, separated by | ||
| 66 | spaces. If specified, login is allowed only for users whose primary group or | ||
| 67 | supplementary group list matches one of the patterns. Only group names are | ||
| 68 | valid; a numerical group ID is not recognized. By default, login is allowed for | ||
| 69 | all groups. The allow/deny groups directives are processed in the following | ||
| 70 | order: B<DenyGroups> B<AllowGroups> | ||
| 71 | |||
| 72 | See PATTERNS in ssh_config5 for more information on patterns. This keyword may | ||
| 73 | appear multiple times in B<sshd_config> with each instance appending to the | ||
| 74 | list.', | ||
| 75 | 'type' => 'list' | ||
| 76 | }, | ||
| 77 | 'AllowStreamLocalForwarding', | ||
| 78 | { | ||
| 79 | 'choice' => [ | ||
| 80 | 'all', | ||
| 81 | 'local', | ||
| 82 | 'no', | ||
| 83 | 'remote', | ||
| 84 | 'yes' | ||
| 85 | ], | ||
| 86 | 'description' => 'Specifies whether StreamLocal (Unix-domain socket) forwarding is permitted. The | ||
| 87 | available options are B<yes> (the default) or B<all> to allow StreamLocal | ||
| 88 | forwarding, B<no> to prevent all StreamLocal forwarding, B<local> to allow | ||
| 89 | local (from the perspective of L<ssh(1)>) forwarding only or B<remote> to allow | ||
| 90 | remote forwarding only. Note that disabling StreamLocal forwarding does not | ||
| 91 | improve security unless users are also denied shell access, as they can always | ||
| 92 | install their own forwarders.', | ||
| 93 | 'type' => 'leaf', | ||
| 94 | 'upstream_default' => 'yes', | ||
| 95 | 'value_type' => 'enum' | ||
| 96 | }, | ||
| 97 | 'AllowTcpForwarding', | ||
| 98 | { | ||
| 99 | 'choice' => [ | ||
| 100 | 'all', | ||
| 101 | 'local', | ||
| 102 | 'no', | ||
| 103 | 'remote', | ||
| 104 | 'yes' | ||
| 105 | ], | ||
| 106 | 'description' => 'Specifies whether TCP forwarding is permitted. The available options are B<yes> | ||
| 107 | (the default) or B<all> to allow TCP forwarding, B<no> to prevent all TCP | ||
| 108 | forwarding, B<local> to allow local (from the perspective of L<ssh(1)>) | ||
| 109 | forwarding only or B<remote> to allow remote forwarding only. Note that | ||
| 110 | disabling TCP forwarding does not improve security unless users are also denied | ||
| 111 | shell access, as they can always install their own forwarders.', | ||
| 112 | 'type' => 'leaf', | ||
| 113 | 'upstream_default' => 'yes', | ||
| 114 | 'value_type' => 'enum' | ||
| 115 | }, | ||
| 116 | 'AllowUsers', | ||
| 117 | { | ||
| 118 | 'cargo' => { | ||
| 119 | 'type' => 'leaf', | ||
| 120 | 'value_type' => 'uniline' | ||
| 121 | }, | ||
| 122 | 'description' => 'This keyword can be followed by a list of user name patterns, separated by | ||
| 123 | spaces. If specified, login is allowed only for user names that match one of | ||
| 124 | the patterns. Only user names are valid; a numerical user ID is not recognized. | ||
| 125 | By default, login is allowed for all users. If the pattern takes the form | ||
| 126 | USER@HOST then USER and HOST are separately checked, restricting logins to | ||
| 127 | particular users from particular hosts. HOST criteria may additionally contain | ||
| 128 | addresses to match in CIDR address/masklen format. The allow/deny users | ||
| 129 | directives are processed in the following order: B<DenyUsers> B<AllowUsers> | ||
| 130 | |||
| 131 | See PATTERNS in ssh_config5 for more information on patterns. This keyword may | ||
| 132 | appear multiple times in B<sshd_config> with each instance appending to the | ||
| 133 | list.', | ||
| 134 | 'type' => 'list' | ||
| 135 | }, | ||
| 136 | 'AuthenticationMethods', | ||
| 137 | { | ||
| 138 | 'description' => 'Specifies the authentication methods that must be successfully completed for a | ||
| 139 | user to be granted access. This option must be followed by one or more lists of | ||
| 140 | comma-separated authentication method names, or by the single string B<any> to | ||
| 141 | indicate the default behaviour of accepting any single authentication method. | ||
| 142 | If the default is overridden, then successful authentication requires | ||
| 143 | completion of every method in at least one of these lists. | ||
| 144 | |||
| 145 | For example, Qq publickey, password publickey, keyboard-interactive would | ||
| 146 | require the user to complete public key authentication, followed by either | ||
| 147 | password or keyboard interactive authentication. Only methods that are next in | ||
| 148 | one or more lists are offered at each stage, so for this example it would not | ||
| 149 | be possible to attempt password or keyboard-interactive authentication before | ||
| 150 | public key. | ||
| 151 | |||
| 152 | For keyboard interactive authentication it is also possible to restrict | ||
| 153 | authentication to a specific device by appending a colon followed by the device | ||
| 154 | identifier B<bsdauth> or B<pam> depending on the server configuration. For | ||
| 155 | example, Qq keyboard-interactive:bsdauth would restrict keyboard interactive | ||
| 156 | authentication to the B<bsdauth> device. | ||
| 157 | |||
| 158 | If the publickey method is listed more than once, L<sshd(8)> verifies that keys | ||
| 159 | that have been used successfully are not reused for subsequent authentications. | ||
| 160 | For example, Qq publickey, publickey requires successful authentication using | ||
| 161 | two different public keys. | ||
| 162 | |||
| 163 | Note that each authentication method listed should also be explicitly enabled | ||
| 164 | in the configuration. | ||
| 165 | |||
| 166 | The available authentication methods are: Qq gssapi-with-mic , Qq hostbased , | ||
| 167 | Qq keyboard-interactive , Qq none (used for access to password-less accounts | ||
| 168 | when B<PermitEmptyPasswords> is enabled), Qq password and Qq publickey .', | ||
| 169 | 'type' => 'leaf', | ||
| 170 | 'value_type' => 'uniline' | ||
| 171 | }, | ||
| 172 | 'AuthorizedKeysCommand', | ||
| 173 | { | ||
| 174 | 'description' => 'Specifies a program to be used to look up the user\'s public keys. The program | ||
| 175 | must be owned by root, not writable by group or others and specified by an | ||
| 176 | absolute path. Arguments to B<AuthorizedKeysCommand> accept the tokens | ||
| 177 | described in the I<TOKENS> section. If no arguments are specified then the | ||
| 178 | username of the target user is used. | ||
| 179 | |||
| 180 | The program should produce on standard output zero or more lines of | ||
| 181 | authorized_keys output (see B<AUTHORIZED_KEYS> in L<sshd(8)>). | ||
| 182 | B<AuthorizedKeysCommand> is tried after the usual B<AuthorizedKeysFile> files | ||
| 183 | and will not be executed if a matching key is found there. By default, no | ||
| 184 | B<AuthorizedKeysCommand> is run.', | ||
| 185 | 'type' => 'leaf', | ||
| 186 | 'value_type' => 'uniline' | ||
| 187 | }, | ||
| 188 | 'AuthorizedKeysCommandUser', | ||
| 189 | { | ||
| 190 | 'description' => 'Specifies the user under whose account the B<AuthorizedKeysCommand> is run. It | ||
| 191 | is recommended to use a dedicated user that has no other role on the host than | ||
| 192 | running authorized keys commands. If B<AuthorizedKeysCommand> is specified but | ||
| 193 | B<AuthorizedKeysCommandUser> is not, then L<sshd(8)> will refuse to start.', | ||
| 194 | 'type' => 'leaf', | ||
| 195 | 'value_type' => 'uniline' | ||
| 196 | }, | ||
| 197 | 'AuthorizedKeysFile', | ||
| 198 | { | ||
| 199 | 'cargo' => { | ||
| 200 | 'type' => 'leaf', | ||
| 201 | 'value_type' => 'uniline' | ||
| 202 | }, | ||
| 203 | 'description' => 'Specifies the file that contains the public keys used for user authentication. | ||
| 204 | The format is described in the AUTHORIZED_KEYS FILE FORMAT section of | ||
| 205 | L<sshd(8)>. Arguments to B<AuthorizedKeysFile> may include wildcards and accept | ||
| 206 | the tokens described in the I<TOKENS> section. After expansion, | ||
| 207 | B<AuthorizedKeysFile> is taken to be an absolute path or one relative to the | ||
| 208 | user\'s home directory. Multiple files may be listed, separated by whitespace. | ||
| 209 | Alternately this option may be set to B<none> to skip checking for user keys in | ||
| 210 | files. The default is Qq .ssh/authorized_keys .ssh/authorized_keys2 .', | ||
| 211 | 'migrate_values_from' => '- AuthorizedKeysFile2', | ||
| 212 | 'type' => 'list' | ||
| 213 | }, | ||
| 214 | 'AuthorizedPrincipalsCommand', | ||
| 215 | { | ||
| 216 | 'description' => 'Specifies a program to be used to generate the list of allowed certificate | ||
| 217 | principals as per B<AuthorizedPrincipalsFile> The program must be owned by | ||
| 218 | root, not writable by group or others and specified by an absolute path. | ||
| 219 | Arguments to B<AuthorizedPrincipalsCommand> accept the tokens described in the | ||
| 220 | I<TOKENS> section. If no arguments are specified then the username of the | ||
| 221 | target user is used. | ||
| 222 | |||
| 223 | The program should produce on standard output zero or more lines of | ||
| 224 | B<AuthorizedPrincipalsFile> output. If either B<AuthorizedPrincipalsCommand> or | ||
| 225 | B<AuthorizedPrincipalsFile> is specified, then certificates offered by the | ||
| 226 | client for authentication must contain a principal that is listed. By default, | ||
| 227 | no B<AuthorizedPrincipalsCommand> is run.', | ||
| 228 | 'type' => 'leaf', | ||
| 229 | 'value_type' => 'uniline' | ||
| 230 | }, | ||
| 231 | 'AuthorizedPrincipalsCommandUser', | ||
| 232 | { | ||
| 233 | 'description' => 'Specifies the user under whose account the B<AuthorizedPrincipalsCommand> is | ||
| 234 | run. It is recommended to use a dedicated user that has no other role on the | ||
| 235 | host than running authorized principals commands. If | ||
| 236 | B<AuthorizedPrincipalsCommand> is specified but | ||
| 237 | B<AuthorizedPrincipalsCommandUser> is not, then L<sshd(8)> will refuse to | ||
| 238 | start.', | ||
| 239 | 'type' => 'leaf', | ||
| 240 | 'value_type' => 'uniline' | ||
| 241 | }, | ||
| 242 | 'AuthorizedPrincipalsFile', | ||
| 243 | { | ||
| 244 | 'description' => 'Specifies a file that lists principal names that are accepted for certificate | ||
| 245 | authentication. When using certificates signed by a key listed in | ||
| 246 | B<TrustedUserCAKeys> this file lists names, one of which must appear in the | ||
| 247 | certificate for it to be accepted for authentication. Names are listed one per | ||
| 248 | line preceded by key options (as described in B<AUTHORIZED_KEYS FILE FORMAT> in | ||
| 249 | L<sshd(8)>). Empty lines and comments starting with \'#\' are ignored. | ||
| 250 | |||
| 251 | Arguments to B<AuthorizedPrincipalsFile> may include wildcards and accept the | ||
| 252 | tokens described in the I<TOKENS> section. After expansion, | ||
| 253 | B<AuthorizedPrincipalsFile> is taken to be an absolute path or one relative to | ||
| 254 | the user\'s home directory. The default is B<none> i.e. not to use a principals | ||
| 255 | file - in this case, the username of the user must appear in a certificate\'s | ||
| 256 | principals list for it to be accepted. | ||
| 257 | |||
| 258 | Note that B<AuthorizedPrincipalsFile> is only used when authentication proceeds | ||
| 259 | using a CA listed in B<TrustedUserCAKeys> and is not consulted for | ||
| 260 | certification authorities trusted via ~/.ssh/authorized_keys though the | ||
| 261 | B<principals=> key option offers a similar facility (see L<sshd(8)> for | ||
| 262 | details).', | ||
| 263 | 'type' => 'leaf', | ||
| 264 | 'upstream_default' => 'none', | ||
| 265 | 'value_type' => 'uniline' | ||
| 266 | }, | ||
| 267 | 'Banner', | ||
| 268 | { | ||
| 269 | 'description' => 'The contents of the specified file are sent to the remote user before | ||
| 270 | authentication is allowed. If the argument is B<none> then no banner is | ||
| 271 | displayed. By default, no banner is displayed.', | ||
| 272 | 'type' => 'leaf', | ||
| 273 | 'value_type' => 'uniline' | ||
| 274 | }, | ||
| 275 | 'CASignatureAlgorithms', | ||
| 276 | { | ||
| 277 | 'description' => 'Specifies which algorithms are allowed for signing of certificates by | ||
| 278 | certificate authorities (CAs). The default is: ssh-ed25519, | ||
| 279 | ecdsa-sha2-nistp256, ecdsa-sha2-nistp384, ecdsa-sha2-nistp521, | ||
| 280 | sk-ssh-ed25519@openssh.com, sk-ecdsa-sha2-nistp256@openssh.com, rsa-sha2-512, | ||
| 281 | rsa-sha2-256 | ||
| 282 | |||
| 283 | If the specified list begins with a \'+\' character, then the specified | ||
| 284 | algorithms will be appended to the default set instead of replacing them. If | ||
| 285 | the specified list begins with a \'-\' character, then the specified algorithms | ||
| 286 | (including wildcards) will be removed from the default set instead of replacing | ||
| 287 | them. | ||
| 288 | |||
| 289 | Certificates signed using other algorithms will not be accepted for public key | ||
| 290 | or host-based authentication.', | ||
| 291 | 'type' => 'leaf', | ||
| 292 | 'value_type' => 'uniline' | ||
| 293 | }, | ||
| 294 | 'ChannelTimeout', | ||
| 295 | { | ||
| 296 | 'description' => 'Specifies whether and how quickly L<sshd(8)> should close inactive channels. | ||
| 297 | Timeouts are specified as one or more \'\'type=interval\'\' pairs separated by | ||
| 298 | whitespace, where the \'\'type\'\' must be the special keyword \'\'global\'\' or a | ||
| 299 | channel type name from the list below, optionally containing wildcard | ||
| 300 | characters. | ||
| 301 | |||
| 302 | The timeout value \'\'interval\'\' is specified in seconds or may use any of the | ||
| 303 | units documented in the I<TIME FORMATS> section. For example, \'\'session=5m\'\' | ||
| 304 | would cause interactive sessions to terminate after five minutes of inactivity. | ||
| 305 | Specifying a zero value disables the inactivity timeout. | ||
| 306 | |||
| 307 | The special timeout \'\'global\'\' applies to all active channels, taken together. | ||
| 308 | Traffic on any active channel will reset the timeout, but when the timeout | ||
| 309 | expires then all open channels will be closed. Note that this global timeout is | ||
| 310 | not matched by wildcards and must be specified explicitly. | ||
| 311 | |||
| 312 | The available channel type names include: | ||
| 313 | |||
| 314 | B<agent-connection> Open connections to ssh-agent1. B<direct-tcpip , | ||
| 315 | direct-streamlocal@openssh.com> Open TCP or Unix socket (respectively) | ||
| 316 | connections that have been established from an L<ssh(1)> local forwarding, i.e. | ||
| 317 | B<LocalForward> or B<DynamicForward> B<forwarded-tcpip , | ||
| 318 | forwarded-streamlocal@openssh.com> Open TCP or Unix socket (respectively) | ||
| 319 | connections that have been established to an L<sshd(8)> listening on behalf of | ||
| 320 | an L<ssh(1)> remote forwarding, i.e. B<RemoteForward> B<session> The | ||
| 321 | interactive main session, including shell session, command execution, | ||
| 322 | L<scp(1)>, L<sftp(1)>, etc. B<tun-connection> Open B<TunnelForward> | ||
| 323 | connections. B<x11-connection> Open X11 forwarding sessions. | ||
| 324 | |||
| 325 | Note that in all the above cases, terminating an inactive session does not | ||
| 326 | guarantee to remove all resources associated with the session, e.g. shell | ||
| 327 | processes or X11 clients relating to the session may continue to execute. | ||
| 328 | |||
| 329 | Moreover, terminating an inactive channel or session does not necessarily close | ||
| 330 | the SSH connection, nor does it prevent a client from requesting another | ||
| 331 | channel of the same type. In particular, expiring an inactive forwarding | ||
| 332 | session does not prevent another identical forwarding from being subsequently | ||
| 333 | created. | ||
| 334 | |||
| 335 | The default is not to expire channels of any type for inactivity.', | ||
| 336 | 'type' => 'leaf', | ||
| 337 | 'value_type' => 'uniline' | ||
| 338 | }, | ||
| 339 | 'ChrootDirectory', | ||
| 340 | { | ||
| 341 | 'description' => 'Specifies the pathname of a directory to L<chroot(2)> to after authentication. | ||
| 342 | At session startup L<sshd(8)> checks that all components of the pathname are | ||
| 343 | root-owned directories which are not writable by group or others. After the | ||
| 344 | chroot, L<sshd(8)> changes the working directory to the user\'s home directory. | ||
| 345 | Arguments to B<ChrootDirectory> accept the tokens described in the I<TOKENS> | ||
| 346 | section. | ||
| 347 | |||
| 348 | The B<ChrootDirectory> must contain the necessary files and directories to | ||
| 349 | support the user\'s session. For an interactive session this requires at least a | ||
| 350 | shell, typically L<sh(1)>, and basic /dev nodes such as L<null(4)>, L<zero(4)>, | ||
| 351 | L<stdin(4)>, L<stdout(4)>, L<stderr(4)>, and L<tty(4)> devices. For file | ||
| 352 | transfer sessions using SFTP no additional configuration of the environment is | ||
| 353 | necessary if the in-process sftp-server is used, though sessions which use | ||
| 354 | logging may require /dev/log inside the chroot directory on some operating | ||
| 355 | systems (see sftp-server8 for details). | ||
| 356 | |||
| 357 | For safety, it is very important that the directory hierarchy be prevented from | ||
| 358 | modification by other processes on the system (especially those outside the | ||
| 359 | jail). Misconfiguration can lead to unsafe environments which L<sshd(8)> cannot | ||
| 360 | detect. | ||
| 361 | |||
| 362 | The default is B<none> indicating not to L<chroot(2)>.', | ||
| 363 | 'type' => 'leaf', | ||
| 364 | 'upstream_default' => 'none', | ||
| 365 | 'value_type' => 'uniline' | ||
| 366 | }, | ||
| 367 | 'ClientAliveCountMax', | ||
| 368 | { | ||
| 369 | 'description' => 'Sets the number of client alive messages which may be sent without L<sshd(8)> | ||
| 370 | receiving any messages back from the client. If this threshold is reached while | ||
| 371 | client alive messages are being sent, sshd will disconnect the client, | ||
| 372 | terminating the session. It is important to note that the use of client alive | ||
| 373 | messages is very different from B<TCPKeepAlive> The client alive messages are | ||
| 374 | sent through the encrypted channel and therefore will not be spoofable. The TCP | ||
| 375 | keepalive option enabled by B<TCPKeepAlive> is spoofable. The client alive | ||
| 376 | mechanism is valuable when the client or server depend on knowing when a | ||
| 377 | connection has become unresponsive. | ||
| 378 | |||
| 379 | The default value is 3. If B<ClientAliveInterval> is set to 15, and | ||
| 380 | B<ClientAliveCountMax> is left at the default, unresponsive SSH clients will be | ||
| 381 | disconnected after approximately 45 seconds. Setting a zero | ||
| 382 | B<ClientAliveCountMax> disables connection termination.', | ||
| 383 | 'type' => 'leaf', | ||
| 384 | 'upstream_default' => '3', | ||
| 385 | 'value_type' => 'integer' | ||
| 386 | }, | ||
| 387 | 'ClientAliveInterval', | ||
| 388 | { | ||
| 389 | 'description' => 'Sets a timeout interval in seconds after which if no data has been received | ||
| 390 | from the client, L<sshd(8)> will send a message through the encrypted channel | ||
| 391 | to request a response from the client. The default is 0, indicating that these | ||
| 392 | messages will not be sent to the client.', | ||
| 393 | 'type' => 'leaf', | ||
| 394 | 'upstream_default' => '0', | ||
| 395 | 'value_type' => 'integer' | ||
| 396 | }, | ||
| 397 | 'DenyGroups', | ||
| 398 | { | ||
| 399 | 'cargo' => { | ||
| 400 | 'type' => 'leaf', | ||
| 401 | 'value_type' => 'uniline' | ||
| 402 | }, | ||
| 403 | 'description' => 'This keyword can be followed by a list of group name patterns, separated by | ||
| 404 | spaces. Login is disallowed for users whose primary group or supplementary | ||
| 405 | group list matches one of the patterns. Only group names are valid; a numerical | ||
| 406 | group ID is not recognized. By default, login is allowed for all groups. The | ||
| 407 | allow/deny groups directives are processed in the following order: | ||
| 408 | B<DenyGroups> B<AllowGroups> | ||
| 409 | |||
| 410 | See PATTERNS in ssh_config5 for more information on patterns. This keyword may | ||
| 411 | appear multiple times in B<sshd_config> with each instance appending to the | ||
| 412 | list.', | ||
| 413 | 'type' => 'list' | ||
| 414 | }, | ||
| 415 | 'DenyUsers', | ||
| 416 | { | ||
| 417 | 'cargo' => { | ||
| 418 | 'type' => 'leaf', | ||
| 419 | 'value_type' => 'uniline' | ||
| 420 | }, | ||
| 421 | 'description' => 'This keyword can be followed by a list of user name patterns, separated by | ||
| 422 | spaces. Login is disallowed for user names that match one of the patterns. Only | ||
| 423 | user names are valid; a numerical user ID is not recognized. By default, login | ||
| 424 | is allowed for all users. If the pattern takes the form USER@HOST then USER and | ||
| 425 | HOST are separately checked, restricting logins to particular users from | ||
| 426 | particular hosts. HOST criteria may additionally contain addresses to match in | ||
| 427 | CIDR address/masklen format. The allow/deny users directives are processed in | ||
| 428 | the following order: B<DenyUsers> B<AllowUsers> | ||
| 429 | |||
| 430 | See PATTERNS in ssh_config5 for more information on patterns. This keyword may | ||
| 431 | appear multiple times in B<sshd_config> with each instance appending to the | ||
| 432 | list.', | ||
| 433 | 'type' => 'list' | ||
| 434 | }, | ||
| 435 | 'DisableForwarding', | ||
| 436 | { | ||
| 437 | 'description' => 'Disables all forwarding features, including X11, ssh-agent1, TCP and | ||
| 438 | StreamLocal. This option overrides all other forwarding-related options and may | ||
| 439 | simplify restricted configurations.', | ||
| 440 | 'type' => 'leaf', | ||
| 441 | 'value_type' => 'uniline' | ||
| 442 | }, | ||
| 443 | 'ExposeAuthInfo', | ||
| 444 | { | ||
| 445 | 'description' => 'Writes a temporary file containing a list of authentication methods and public | ||
| 446 | credentials (e.g. keys) used to authenticate the user. The location of the file | ||
| 447 | is exposed to the user session through the B<SSH_USER_AUTH> environment | ||
| 448 | variable. The default is B<no>', | ||
| 449 | 'type' => 'leaf', | ||
| 450 | 'upstream_default' => 'no', | ||
| 451 | 'value_type' => 'boolean', | ||
| 452 | 'write_as' => [ | ||
| 453 | 'no', | ||
| 454 | 'yes' | ||
| 455 | ] | ||
| 456 | }, | ||
| 457 | 'ForceCommand', | ||
| 458 | { | ||
| 459 | 'description' => 'Forces the execution of the command specified by B<ForceCommand> ignoring any | ||
| 460 | command supplied by the client and ~/.ssh/rc if present. The command is invoked | ||
| 461 | by using the user\'s login shell with the -c option. This applies to shell, | ||
| 462 | command, or subsystem execution. It is most useful inside a B<Match> block. The | ||
| 463 | command originally supplied by the client is available in the | ||
| 464 | B<SSH_ORIGINAL_COMMAND> environment variable. Specifying a command of | ||
| 465 | B<internal-sftp> will force the use of an in-process SFTP server that requires | ||
| 466 | no support files when used with B<ChrootDirectory> The default is B<none>', | ||
| 467 | 'type' => 'leaf', | ||
| 468 | 'upstream_default' => 'none', | ||
| 469 | 'value_type' => 'uniline' | ||
| 470 | }, | ||
| 471 | 'GatewayPorts', | ||
| 472 | { | ||
| 473 | 'choice' => [ | ||
| 474 | 'clientspecified', | ||
| 475 | 'no', | ||
| 476 | 'yes' | ||
| 477 | ], | ||
| 478 | 'description' => 'Specifies whether remote hosts are allowed to connect to ports forwarded for | ||
| 479 | the client. By default, L<sshd(8)> binds remote port forwardings to the | ||
| 480 | loopback address. This prevents other remote hosts from connecting to forwarded | ||
| 481 | ports. B<GatewayPorts> can be used to specify that sshd should allow remote | ||
| 482 | port forwardings to bind to non-loopback addresses, thus allowing other hosts | ||
| 483 | to connect. The argument may be B<no> to force remote port forwardings to be | ||
| 484 | available to the local host only, B<yes> to force remote port forwardings to | ||
| 485 | bind to the wildcard address, or B<clientspecified> to allow the client to | ||
| 486 | select the address to which the forwarding is bound. The default is B<no>', | ||
| 487 | 'type' => 'leaf', | ||
| 488 | 'upstream_default' => 'no', | ||
| 489 | 'value_type' => 'enum' | ||
| 490 | }, | ||
| 491 | 'GSSAPIAuthentication', | ||
| 492 | { | ||
| 493 | 'description' => 'Specifies whether user authentication based on GSSAPI is allowed. The default | ||
| 494 | is B<no>', | ||
| 495 | 'type' => 'leaf', | ||
| 496 | 'upstream_default' => 'no', | ||
| 497 | 'value_type' => 'boolean', | ||
| 498 | 'write_as' => [ | ||
| 499 | 'no', | ||
| 500 | 'yes' | ||
| 501 | ] | ||
| 502 | }, | ||
| 503 | 'HostbasedAcceptedAlgorithms', | ||
| 504 | { | ||
| 505 | 'description' => 'Specifies the signature algorithms that will be accepted for hostbased | ||
| 506 | authentication as a list of comma-separated patterns. Alternately if the | ||
| 507 | specified list begins with a \'+\' character, then the specified signature | ||
| 508 | algorithms will be appended to the default set instead of replacing them. If | ||
| 509 | the specified list begins with a \'-\' character, then the specified signature | ||
| 510 | algorithms (including wildcards) will be removed from the default set instead | ||
| 511 | of replacing them. If the specified list begins with a \'^\' character, then the | ||
| 512 | specified signature algorithms will be placed at the head of the default set. | ||
| 513 | The default for this option is: ssh-ed25519-cert-v01@openssh.com, | ||
| 514 | ecdsa-sha2-nistp256-cert-v01@openssh.com, | ||
| 515 | ecdsa-sha2-nistp384-cert-v01@openssh.com, | ||
| 516 | ecdsa-sha2-nistp521-cert-v01@openssh.com, sk-ssh-ed25519-cert-v01@openssh.com, | ||
| 517 | sk-ecdsa-sha2-nistp256-cert-v01@openssh.com, rsa-sha2-512-cert-v01@openssh.com, | ||
| 518 | rsa-sha2-256-cert-v01@openssh.com, ssh-ed25519, ecdsa-sha2-nistp256, | ||
| 519 | ecdsa-sha2-nistp384, ecdsa-sha2-nistp521, sk-ssh-ed25519@openssh.com, | ||
| 520 | sk-ecdsa-sha2-nistp256@openssh.com, rsa-sha2-512, rsa-sha2-256 | ||
| 521 | |||
| 522 | The list of available signature algorithms may also be obtained using Qq ssh -Q | ||
| 523 | HostbasedAcceptedAlgorithms . This was formerly named | ||
| 524 | HostbasedAcceptedKeyTypes.', | ||
| 525 | 'type' => 'leaf', | ||
| 526 | 'value_type' => 'uniline' | ||
| 527 | }, | ||
| 528 | 'HostbasedAuthentication', | ||
| 529 | { | ||
| 530 | 'description' => 'Specifies whether rhosts or /etc/hosts.equiv authentication together with | ||
| 531 | successful public key client host authentication is allowed (host-based | ||
| 532 | authentication). The default is B<no>', | ||
| 533 | 'type' => 'leaf', | ||
| 534 | 'upstream_default' => 'no', | ||
| 535 | 'value_type' => 'boolean', | ||
| 536 | 'write_as' => [ | ||
| 537 | 'no', | ||
| 538 | 'yes' | ||
| 539 | ] | ||
| 540 | }, | ||
| 541 | 'HostbasedUsesNameFromPacketOnly', | ||
| 542 | { | ||
| 543 | 'description' => 'Specifies whether or not the server will attempt to perform a reverse name | ||
| 544 | lookup when matching the name in the ~/.shosts ~/.rhosts and /etc/hosts.equiv | ||
| 545 | files during B<HostbasedAuthentication> A setting of B<yes> means that | ||
| 546 | L<sshd(8)> uses the name supplied by the client rather than attempting to | ||
| 547 | resolve the name from the TCP connection itself. The default is B<no>', | ||
| 548 | 'type' => 'leaf', | ||
| 549 | 'upstream_default' => 'no', | ||
| 550 | 'value_type' => 'boolean', | ||
| 551 | 'write_as' => [ | ||
| 552 | 'no', | ||
| 553 | 'yes' | ||
| 554 | ] | ||
| 555 | }, | ||
| 556 | 'IgnoreRhosts', | ||
| 557 | { | ||
| 558 | 'description' => 'Specifies whether to ignore per-user .rhosts and .shosts files during | ||
| 559 | B<HostbasedAuthentication> The system-wide /etc/hosts.equiv and | ||
| 560 | /etc/ssh/shosts.equiv are still used regardless of this setting. | ||
| 561 | |||
| 562 | Accepted values are B<yes> (the default) to ignore all per-user files, | ||
| 563 | B<shosts-only> to allow the use of .shosts but to ignore .rhosts or B<no> to | ||
| 564 | allow both .shosts and rhosts', | ||
| 565 | 'type' => 'leaf', | ||
| 566 | 'upstream_default' => 'yes', | ||
| 567 | 'value_type' => 'boolean', | ||
| 568 | 'write_as' => [ | ||
| 569 | 'no', | ||
| 570 | 'yes' | ||
| 571 | ] | ||
| 572 | }, | ||
| 573 | 'Include', | ||
| 574 | { | ||
| 575 | 'cargo' => { | ||
| 576 | 'type' => 'leaf', | ||
| 577 | 'value_type' => 'uniline' | ||
| 578 | }, | ||
| 579 | 'description' => 'Include the specified configuration file(s). Multiple pathnames may be | ||
| 580 | specified and each pathname may contain L<glob(7)> wildcards that will be | ||
| 581 | expanded and processed in lexical order. Files without absolute paths are | ||
| 582 | assumed to be in /etc/ssh An B<Include> directive may appear inside a B<Match> | ||
| 583 | block to perform conditional inclusion.', | ||
| 584 | 'type' => 'list' | ||
| 585 | }, | ||
| 586 | 'IPQoS', | ||
| 587 | { | ||
| 588 | 'assert' => { | ||
| 589 | '1_or_2' => { | ||
| 590 | 'code' => 'return 1 unless defined $_; | ||
| 591 | my @v = (/(\\w+)/g); | ||
| 592 | return (@v < 3) ? 1 : 0; | ||
| 593 | ', | ||
| 594 | 'msg' => 'value must not have more than 2 fields.' | ||
| 595 | }, | ||
| 596 | 'accepted_values' => { | ||
| 597 | 'code' => 'return 1 unless defined $_; | ||
| 598 | my @v = (/(\\S+)/g); | ||
| 599 | my @good = grep {/^(af[1-4][1-3]|cs[0-7]|ef|lowdelay|throughput|reliability|\\d+)/} @v ; | ||
| 600 | return @good == @v ? 1 : 0; | ||
| 601 | ', | ||
| 602 | 'msg' => 'Unexpected value "$_". Expected 1 or 2 occurences of: "af11", "af12", "af13", "af21", "af22", | ||
| 603 | "af23", "af31", "af32", "af33", "af41", "af42", "af43", "cs0", "cs1", | ||
| 604 | "cs2", "cs3", "cs4", "cs5", "cs6", "cs7", "ef", "lowdelay", | ||
| 605 | "throughput", "reliability", or numeric value. | ||
| 606 | ' | ||
| 607 | } | ||
| 608 | }, | ||
| 609 | 'description' => 'Specifies the I<Differentiated Services Field Codepoint (DSCP) > value for the | ||
| 610 | connection. Accepted values are B<af11> B<af12> B<af13> B<af21> B<af22> B<af23> | ||
| 611 | B<af31> B<af32> B<af33> B<af41> B<af42> B<af43> B<cs0> B<cs1> B<cs2> B<cs3> | ||
| 612 | B<cs4> B<cs5> B<cs6> B<cs7> B<ef> B<le> a numeric value, or B<none> to use the | ||
| 613 | operating system default. This option may take one or two arguments, separated | ||
| 614 | by whitespace. If one argument is specified, it is used as the packet class | ||
| 615 | unconditionally. If two values are specified, the first is automatically | ||
| 616 | selected for interactive sessions and the second for non-interactive sessions. | ||
| 617 | The default is B<ef> (Expedited Forwarding) for interactive sessions and | ||
| 618 | B<none> (the operating system default) for non-interactive sessions.', | ||
| 619 | 'type' => 'leaf', | ||
| 620 | 'value_type' => 'uniline' | ||
| 621 | }, | ||
| 622 | 'KbdInteractiveAuthentication', | ||
| 623 | { | ||
| 624 | 'description' => 'Specifies whether to allow keyboard-interactive authentication. The default is | ||
| 625 | B<yes> The argument to this keyword must be B<yes> or B<no> | ||
| 626 | B<ChallengeResponseAuthentication> is a deprecated alias for this.', | ||
| 627 | 'migrate_from' => { | ||
| 628 | 'formula' => '$old', | ||
| 629 | 'variables' => { | ||
| 630 | 'old' => '- ChallengeResponseAuthentication' | ||
| 631 | } | ||
| 632 | }, | ||
| 633 | 'type' => 'leaf', | ||
| 634 | 'upstream_default' => 'yes', | ||
| 635 | 'value_type' => 'boolean', | ||
| 636 | 'write_as' => [ | ||
| 637 | 'no', | ||
| 638 | 'yes' | ||
| 639 | ] | ||
| 640 | }, | ||
| 641 | 'KerberosAuthentication', | ||
| 642 | { | ||
| 643 | 'description' => 'Specifies whether the password provided by the user for | ||
| 644 | B<PasswordAuthentication> will be validated through the Kerberos KDC. To use | ||
| 645 | this option, the server needs a Kerberos servtab which allows the verification | ||
| 646 | of the KDC\'s identity. The default is B<no>', | ||
| 647 | 'type' => 'leaf', | ||
| 648 | 'upstream_default' => 'no', | ||
| 649 | 'value_type' => 'boolean', | ||
| 650 | 'write_as' => [ | ||
| 651 | 'no', | ||
| 652 | 'yes' | ||
| 653 | ] | ||
| 654 | }, | ||
| 655 | 'LogLevel', | ||
| 656 | { | ||
| 657 | 'choice' => [ | ||
| 658 | 'DEBUG', | ||
| 659 | 'DEBUG1', | ||
| 660 | 'DEBUG2', | ||
| 661 | 'DEBUG3', | ||
| 662 | 'ERROR', | ||
| 663 | 'FATAL', | ||
| 664 | 'INFO', | ||
| 665 | 'QUIET', | ||
| 666 | 'VERBOSE' | ||
| 667 | ], | ||
| 668 | 'description' => 'Gives the verbosity level that is used when logging messages from L<sshd(8)>. | ||
| 669 | The possible values are: QUIET, FATAL, ERROR, INFO, VERBOSE, DEBUG, DEBUG1, | ||
| 670 | DEBUG2, and DEBUG3. The default is INFO. DEBUG and DEBUG1 are equivalent. | ||
| 671 | DEBUG2 and DEBUG3 each specify higher levels of debugging output. Logging with | ||
| 672 | a DEBUG level violates the privacy of users and is not recommended.', | ||
| 673 | 'type' => 'leaf', | ||
| 674 | 'upstream_default' => 'INFO', | ||
| 675 | 'value_type' => 'enum' | ||
| 676 | }, | ||
| 677 | 'MaxAuthTries', | ||
| 678 | { | ||
| 679 | 'description' => 'Specifies the maximum number of authentication attempts permitted per | ||
| 680 | connection. Once the number of failures reaches half this value, additional | ||
| 681 | failures are logged. The default is 6.', | ||
| 682 | 'type' => 'leaf', | ||
| 683 | 'upstream_default' => '6', | ||
| 684 | 'value_type' => 'integer' | ||
| 685 | }, | ||
| 686 | 'MaxSessions', | ||
| 687 | { | ||
| 688 | 'description' => 'Specifies the maximum number of open shell, login or subsystem (e.g. sftp) | ||
| 689 | sessions permitted per network connection. Multiple sessions may be established | ||
| 690 | by clients that support connection multiplexing. Setting B<MaxSessions> to 1 | ||
| 691 | will effectively disable session multiplexing, whereas setting it to 0 will | ||
| 692 | prevent all shell, login and subsystem sessions while still permitting | ||
| 693 | forwarding. The default is 10.', | ||
| 694 | 'type' => 'leaf', | ||
| 695 | 'upstream_default' => '10', | ||
| 696 | 'value_type' => 'integer' | ||
| 697 | }, | ||
| 698 | 'PAMServiceName', | ||
| 699 | { | ||
| 700 | 'description' => 'Specifies the service name used for Pluggable Authentication Modules (PAM) | ||
| 701 | authentication, authorisation and session controls when B<UsePAM> is enabled. | ||
| 702 | The default is B<sshd>', | ||
| 703 | 'level' => 'hidden', | ||
| 704 | 'type' => 'leaf', | ||
| 705 | 'value_type' => 'uniline', | ||
| 706 | 'warp' => { | ||
| 707 | 'follow' => { | ||
| 708 | 'use_pam' => '- UsePAM' | ||
| 709 | }, | ||
| 710 | 'rules' => [ | ||
| 711 | '$use_pam', | ||
| 712 | { | ||
| 713 | 'level' => 'normal' | ||
| 714 | } | ||
| 715 | ] | ||
| 716 | } | ||
| 717 | }, | ||
| 718 | 'PasswordAuthentication', | ||
| 719 | { | ||
| 720 | 'description' => 'Specifies whether password authentication is allowed. The default is B<yes>', | ||
| 721 | 'type' => 'leaf', | ||
| 722 | 'upstream_default' => 'sshd', | ||
| 723 | 'value_type' => 'uniline' | ||
| 724 | }, | ||
| 725 | 'PermitEmptyPasswords', | ||
| 726 | { | ||
| 727 | 'description' => 'When password authentication is allowed, it specifies whether the server allows | ||
| 728 | login to accounts with empty password strings. The default is B<no>', | ||
| 729 | 'type' => 'leaf', | ||
| 730 | 'upstream_default' => 'no', | ||
| 731 | 'value_type' => 'boolean', | ||
| 732 | 'write_as' => [ | ||
| 733 | 'no', | ||
| 734 | 'yes' | ||
| 735 | ] | ||
| 736 | }, | ||
| 737 | 'PermitListen', | ||
| 738 | { | ||
| 739 | 'cargo' => { | ||
| 740 | 'type' => 'leaf', | ||
| 741 | 'value_type' => 'uniline' | ||
| 742 | }, | ||
| 743 | 'description' => 'Specifies the addresses/ports on which a remote TCP port forwarding may listen. | ||
| 744 | The listen specification must be one of the following forms: | ||
| 745 | |||
| 746 | B<PermitListen> I<port> B<PermitListen> I<host : port> | ||
| 747 | |||
| 748 | Multiple permissions may be specified by separating them with whitespace. An | ||
| 749 | argument of B<any> can be used to remove all restrictions and permit any listen | ||
| 750 | requests. An argument of B<none> can be used to prohibit all listen requests. | ||
| 751 | The host name may contain wildcards as described in the PATTERNS section in | ||
| 752 | ssh_config5. The wildcard \'*\' can also be used in place of a port number to | ||
| 753 | allow all ports. By default all port forwarding listen requests are permitted. | ||
| 754 | Note that the B<GatewayPorts> option may further restrict which addresses may | ||
| 755 | be listened on. Note also that L<ssh(1)> will request a listen host of | ||
| 756 | \'\'localhost\'\' if no listen host was specifically requested, and this name is | ||
| 757 | treated differently to explicit localhost addresses of \'\'127.0.0.1\'\' and | ||
| 758 | \'\'::1\'\'', | ||
| 759 | 'type' => 'list' | ||
| 760 | }, | ||
| 761 | 'PermitOpen', | ||
| 762 | { | ||
| 763 | 'cargo' => { | ||
| 764 | 'type' => 'leaf', | ||
| 765 | 'value_type' => 'uniline' | ||
| 766 | }, | ||
| 767 | 'description' => 'Specifies the destinations to which TCP port forwarding is permitted. The | ||
| 768 | forwarding specification must be one of the following forms: | ||
| 769 | |||
| 770 | B<PermitOpen> I<host : port> B<PermitOpen> I<IPv4_addr : port> B<PermitOpen> | ||
| 771 | I<[ IPv6_addr ] : port> | ||
| 772 | |||
| 773 | Multiple forwards may be specified by separating them with whitespace. An | ||
| 774 | argument of B<any> can be used to remove all restrictions and permit any | ||
| 775 | forwarding requests. An argument of B<none> can be used to prohibit all | ||
| 776 | forwarding requests. The wildcard \'*\' can be used for host or port to allow all | ||
| 777 | hosts or ports respectively. Otherwise, no pattern matching or address lookups | ||
| 778 | are performed on supplied names. By default all port forwarding requests are | ||
| 779 | permitted.', | ||
| 780 | 'type' => 'list' | ||
| 781 | }, | ||
| 782 | 'PermitRootLogin', | ||
| 783 | { | ||
| 784 | 'choice' => [ | ||
| 785 | 'forced-commands-only', | ||
| 786 | 'no', | ||
| 787 | 'prohibit-password', | ||
| 788 | 'yes' | ||
| 789 | ], | ||
| 790 | 'description' => 'Specifies whether root can log in using L<ssh(1)>. The argument must be B<yes> | ||
| 791 | B<prohibit-password> B<forced-commands-only> or B<no> The default is | ||
| 792 | B<prohibit-password> | ||
| 793 | |||
| 794 | If this option is set to B<prohibit-password> (or its deprecated alias, | ||
| 795 | B<without-password )> password and keyboard-interactive authentication are | ||
| 796 | disabled for root. | ||
| 797 | |||
| 798 | If this option is set to B<forced-commands-only> root login with public key | ||
| 799 | authentication will be allowed, but only if the I<command> option has been | ||
| 800 | specified (which may be useful for taking remote backups even if root login is | ||
| 801 | normally not allowed). All other authentication methods are disabled for root. | ||
| 802 | |||
| 803 | If this option is set to B<no> root is not allowed to log in.', | ||
| 804 | 'type' => 'leaf', | ||
| 805 | 'value_type' => 'enum' | ||
| 806 | }, | ||
| 807 | 'PermitTTY', | ||
| 808 | { | ||
| 809 | 'description' => 'Specifies whether L<pty(4)> allocation is permitted. The default is B<yes>', | ||
| 810 | 'type' => 'leaf', | ||
| 811 | 'upstream_default' => 'yes', | ||
| 812 | 'value_type' => 'boolean', | ||
| 813 | 'write_as' => [ | ||
| 814 | 'no', | ||
| 815 | 'yes' | ||
| 816 | ] | ||
| 817 | }, | ||
| 818 | 'PermitTunnel', | ||
| 819 | { | ||
| 820 | 'choice' => [ | ||
| 821 | 'ethernet', | ||
| 822 | 'no', | ||
| 823 | 'point-to-point', | ||
| 824 | 'yes' | ||
| 825 | ], | ||
| 826 | 'description' => 'Specifies whether L<tun(4)> device forwarding is allowed. The argument must be | ||
| 827 | B<yes> B<point-to-point> (layer 3), B<ethernet> (layer 2), or B<no> Specifying | ||
| 828 | B<yes> permits both B<point-to-point> and B<ethernet> The default is B<no> | ||
| 829 | |||
| 830 | Independent of this setting, the permissions of the selected L<tun(4)> device | ||
| 831 | must allow access to the user.', | ||
| 832 | 'type' => 'leaf', | ||
| 833 | 'upstream_default' => 'no', | ||
| 834 | 'value_type' => 'enum' | ||
| 835 | }, | ||
| 836 | 'PermitUserRC', | ||
| 837 | { | ||
| 838 | 'description' => 'Specifies whether any ~/.ssh/rc file is executed. The default is B<yes>', | ||
| 839 | 'type' => 'leaf', | ||
| 840 | 'upstream_default' => 'yes', | ||
| 841 | 'value_type' => 'boolean', | ||
| 842 | 'write_as' => [ | ||
| 843 | 'no', | ||
| 844 | 'yes' | ||
| 845 | ] | ||
| 846 | }, | ||
| 847 | 'PubkeyAcceptedAlgorithms', | ||
| 848 | { | ||
| 849 | 'description' => 'Specifies the signature algorithms that will be accepted for public key | ||
| 850 | authentication as a list of comma-separated patterns. Alternately if the | ||
| 851 | specified list begins with a \'+\' character, then the specified algorithms will | ||
| 852 | be appended to the default set instead of replacing them. If the specified list | ||
| 853 | begins with a \'-\' character, then the specified algorithms (including | ||
| 854 | wildcards) will be removed from the default set instead of replacing them. If | ||
| 855 | the specified list begins with a \'^\' character, then the specified algorithms | ||
| 856 | will be placed at the head of the default set. The default for this option is: | ||
| 857 | ssh-ed25519-cert-v01@openssh.com, ecdsa-sha2-nistp256-cert-v01@openssh.com, | ||
| 858 | ecdsa-sha2-nistp384-cert-v01@openssh.com, | ||
| 859 | ecdsa-sha2-nistp521-cert-v01@openssh.com, sk-ssh-ed25519-cert-v01@openssh.com, | ||
| 860 | sk-ecdsa-sha2-nistp256-cert-v01@openssh.com, rsa-sha2-512-cert-v01@openssh.com, | ||
| 861 | rsa-sha2-256-cert-v01@openssh.com, ssh-ed25519, ecdsa-sha2-nistp256, | ||
| 862 | ecdsa-sha2-nistp384, ecdsa-sha2-nistp521, sk-ssh-ed25519@openssh.com, | ||
| 863 | sk-ecdsa-sha2-nistp256@openssh.com, rsa-sha2-512, rsa-sha2-256 | ||
| 864 | |||
| 865 | The list of available signature algorithms may also be obtained using Qq ssh -Q | ||
| 866 | PubkeyAcceptedAlgorithms .', | ||
| 867 | 'type' => 'leaf', | ||
| 868 | 'value_type' => 'uniline' | ||
| 869 | }, | ||
| 870 | 'PubkeyAuthOptions', | ||
| 871 | { | ||
| 872 | 'choice' => [ | ||
| 873 | 'none', | ||
| 874 | 'touch-required', | ||
| 875 | 'verify-required' | ||
| 876 | ], | ||
| 877 | 'description' => 'Sets one or more public key authentication options. The supported keywords are: | ||
| 878 | B<none> (the default; indicating no additional options are enabled), | ||
| 879 | B<touch-required> and B<verify-required> | ||
| 880 | |||
| 881 | The B<touch-required> option causes public key authentication using a FIDO | ||
| 882 | authenticator algorithm (i.e. B<ecdsa-sk> or B<ed25519-sk> to always require | ||
| 883 | the signature to attest that a physically present user explicitly confirmed the | ||
| 884 | authentication (usually by touching the authenticator). By default, L<sshd(8)> | ||
| 885 | requires user presence unless overridden with an authorized_keys option. The | ||
| 886 | B<touch-required> flag disables this override. | ||
| 887 | |||
| 888 | The B<verify-required> option requires a FIDO key signature attest that the | ||
| 889 | user was verified, e.g. via a PIN. | ||
| 890 | |||
| 891 | Neither the B<touch-required> or B<verify-required> options have any effect for | ||
| 892 | other, non-FIDO, public key types.', | ||
| 893 | 'type' => 'leaf', | ||
| 894 | 'value_type' => 'enum' | ||
| 895 | }, | ||
| 896 | 'PubkeyAuthentication', | ||
| 897 | { | ||
| 898 | 'description' => 'Specifies whether public key authentication is allowed. The default is B<yes>', | ||
| 899 | 'type' => 'leaf', | ||
| 900 | 'upstream_default' => 'yes', | ||
| 901 | 'value_type' => 'boolean', | ||
| 902 | 'write_as' => [ | ||
| 903 | 'no', | ||
| 904 | 'yes' | ||
| 905 | ] | ||
| 906 | }, | ||
| 907 | 'RefuseConnection', | ||
| 908 | { | ||
| 909 | 'description' => 'Indicates that L<sshd(8)> should unconditionally terminate the connection. | ||
| 910 | Additionally, a B<refuseconnection> penalty may be recorded against the source | ||
| 911 | of the connection if B<PerSourcePenalties> are enabled. This option is only | ||
| 912 | really useful in a B<Match> block.', | ||
| 913 | 'type' => 'leaf', | ||
| 914 | 'value_type' => 'uniline' | ||
| 915 | }, | ||
| 916 | 'RekeyLimit', | ||
| 917 | { | ||
| 918 | 'description' => 'Specifies the maximum amount of data that may be transmitted or received before | ||
| 919 | the session key is renegotiated, optionally followed by a maximum amount of | ||
| 920 | time that may pass before the session key is renegotiated. The first argument | ||
| 921 | is specified in bytes and may have a suffix of \'K\' \'M\' or \'G\' to indicate | ||
| 922 | Kilobytes, Megabytes, or Gigabytes, respectively. The default is between \'1G\' | ||
| 923 | and \'4G\' depending on the cipher. The optional second value is specified in | ||
| 924 | seconds and may use any of the units documented in the I<TIME FORMATS> section. | ||
| 925 | The default value for B<RekeyLimit> is B<default none> which means that | ||
| 926 | rekeying is performed after the cipher\'s default amount of data has been sent | ||
| 927 | or received and no time based rekeying is done.', | ||
| 928 | 'type' => 'leaf', | ||
| 929 | 'value_type' => 'uniline' | ||
| 930 | }, | ||
| 931 | 'RevokedKeys', | ||
| 932 | { | ||
| 933 | 'description' => 'Specifies revoked public keys file, or B<none> to not use one. Keys listed in | ||
| 934 | this file will be refused for public key authentication. Note that if this file | ||
| 935 | is not readable, then public key authentication will be refused for all users. | ||
| 936 | Keys may be specified as a text file, listing one public key per line, or as an | ||
| 937 | OpenSSH Key Revocation List (KRL) as generated by ssh-keygen1. For more | ||
| 938 | information on KRLs, see the KEY REVOCATION LISTS section in ssh-keygen1.', | ||
| 939 | 'type' => 'leaf', | ||
| 940 | 'value_type' => 'uniline' | ||
| 941 | }, | ||
| 942 | 'SetEnv', | ||
| 943 | { | ||
| 944 | 'description' => 'Specifies one or more environment variables to set in child sessions started by | ||
| 945 | L<sshd(8)> as \'\'NAME=VALUE\'\' The environment value may be quoted (e.g. if it | ||
| 946 | contains whitespace characters). Environment variables set by B<SetEnv> | ||
| 947 | override the default environment and any variables specified by the user via | ||
| 948 | B<AcceptEnv> or B<PermitUserEnvironment>', | ||
| 949 | 'type' => 'leaf', | ||
| 950 | 'value_type' => 'uniline' | ||
| 951 | }, | ||
| 952 | 'StreamLocalBindMask', | ||
| 953 | { | ||
| 954 | 'description' => 'Sets the octal file creation mode mask (umask) used when creating a Unix-domain | ||
| 955 | socket file for local or remote port forwarding. This option is only used for | ||
| 956 | port forwarding to a Unix-domain socket file. | ||
| 957 | |||
| 958 | The default value is 0177, which creates a Unix-domain socket file that is | ||
| 959 | readable and writable only by the owner. Note that not all operating systems | ||
| 960 | honor the file mode on Unix-domain socket files.', | ||
| 961 | 'type' => 'leaf', | ||
| 962 | 'value_type' => 'uniline' | ||
| 963 | }, | ||
| 964 | 'StreamLocalBindUnlink', | ||
| 965 | { | ||
| 966 | 'description' => 'Specifies whether to remove an existing Unix-domain socket file for local or | ||
| 967 | remote port forwarding before creating a new one. If the socket file already | ||
| 968 | exists and B<StreamLocalBindUnlink> is not enabled, B<sshd> will be unable to | ||
| 969 | forward the port to the Unix-domain socket file. This option is only used for | ||
| 970 | port forwarding to a Unix-domain socket file. | ||
| 971 | |||
| 972 | The argument must be B<yes> or B<no> The default is B<no>', | ||
| 973 | 'type' => 'leaf', | ||
| 974 | 'upstream_default' => 'no', | ||
| 975 | 'value_type' => 'boolean', | ||
| 976 | 'write_as' => [ | ||
| 977 | 'no', | ||
| 978 | 'yes' | ||
| 979 | ] | ||
| 980 | }, | ||
| 981 | 'TrustedUserCAKeys', | ||
| 982 | { | ||
| 983 | 'description' => 'Specifies a file containing public keys of certificate authorities that are | ||
| 984 | trusted to sign user certificates for authentication, or B<none> to not use | ||
| 985 | one. Keys are listed one per line; empty lines and comments starting with \'#\' | ||
| 986 | are allowed. If a certificate is presented for authentication and has its | ||
| 987 | signing CA key listed in this file, then it may be used for authentication for | ||
| 988 | any user listed in the certificate\'s principals list. Note that certificates | ||
| 989 | that lack a list of principals will not be permitted for authentication using | ||
| 990 | B<TrustedUserCAKeys> For more details on certificates, see the CERTIFICATES | ||
| 991 | section in ssh-keygen1.', | ||
| 992 | 'type' => 'leaf', | ||
| 993 | 'value_type' => 'uniline' | ||
| 994 | }, | ||
| 995 | 'UnusedConnectionTimeout', | ||
| 996 | { | ||
| 997 | 'description' => 'Specifies whether and how quickly L<sshd(8)> should close client connections | ||
| 998 | with no open channels. Open channels include active shell, command execution or | ||
| 999 | subsystem sessions, connected network, socket, agent or X11 forwardings. | ||
| 1000 | Forwarding listeners, such as those from the L<ssh(1)> -B<R> flag, are not | ||
| 1001 | considered as open channels and do not prevent the timeout. The timeout value | ||
| 1002 | is specified in seconds or may use any of the units documented in the I<TIME | ||
| 1003 | FORMATS> section. | ||
| 1004 | |||
| 1005 | Note that this timeout starts when the client connection completes user | ||
| 1006 | authentication but before the client has an opportunity to open any channels. | ||
| 1007 | Caution should be used when using short timeout values, as they may not provide | ||
| 1008 | sufficient time for the client to request and open its channels before | ||
| 1009 | terminating the connection. | ||
| 1010 | |||
| 1011 | The default B<none> is to never expire connections for having no open channels. | ||
| 1012 | This option may be useful in conjunction with B<ChannelTimeout>', | ||
| 1013 | 'type' => 'leaf', | ||
| 1014 | 'value_type' => 'uniline' | ||
| 1015 | }, | ||
| 1016 | 'X11DisplayOffset', | ||
| 1017 | { | ||
| 1018 | 'description' => 'Specifies the first display number available for L<sshd(8)>Ns\'s X11 forwarding. | ||
| 1019 | This prevents sshd from interfering with real X11 servers. The default is 10.', | ||
| 1020 | 'type' => 'leaf', | ||
| 1021 | 'value_type' => 'uniline' | ||
| 1022 | }, | ||
| 1023 | 'X11Forwarding', | ||
| 1024 | { | ||
| 1025 | 'description' => 'Specifies whether X11 forwarding is permitted. The argument must be B<yes> or | ||
| 1026 | B<no> The default is B<no> | ||
| 1027 | |||
| 1028 | When X11 forwarding is enabled, there may be additional exposure to the server | ||
| 1029 | and to client displays if the L<sshd(8)> proxy display is configured to listen | ||
| 1030 | on the wildcard address (see B<X11UseLocalhost )> though this is not the | ||
| 1031 | default. Additionally, the authentication spoofing and authentication data | ||
| 1032 | verification and substitution occur on the client side. The security risk of | ||
| 1033 | using X11 forwarding is that the client\'s X11 display server may be exposed to | ||
| 1034 | attack when the SSH client requests forwarding (see the warnings for | ||
| 1035 | B<ForwardX11> in ssh_config5). A system administrator may have a stance in | ||
| 1036 | which they want to protect clients that may expose themselves to attack by | ||
| 1037 | unwittingly requesting X11 forwarding, which can warrant a B<no> setting. | ||
| 1038 | |||
| 1039 | Note that disabling X11 forwarding does not prevent users from forwarding X11 | ||
| 1040 | traffic, as users can always install their own forwarders.', | ||
| 1041 | 'type' => 'leaf', | ||
| 1042 | 'upstream_default' => 'no', | ||
| 1043 | 'value_type' => 'boolean', | ||
| 1044 | 'write_as' => [ | ||
| 1045 | 'no', | ||
| 1046 | 'yes' | ||
| 1047 | ] | ||
| 1048 | }, | ||
| 1049 | 'X11UseLocalhost', | ||
| 1050 | { | ||
| 1051 | 'description' => 'Specifies whether L<sshd(8)> should bind the X11 forwarding server to the | ||
| 1052 | loopback address or to the wildcard address. By default, sshd binds the | ||
| 1053 | forwarding server to the loopback address and sets the hostname part of the | ||
| 1054 | B<DISPLAY> environment variable to B<localhost> This prevents remote hosts from | ||
| 1055 | connecting to the proxy display. However, some older X11 clients may not | ||
| 1056 | function with this configuration. B<X11UseLocalhost> may be set to B<no> to | ||
| 1057 | specify that the forwarding server should be bound to the wildcard address. The | ||
| 1058 | argument must be B<yes> or B<no> The default is B<yes>', | ||
| 1059 | 'type' => 'leaf', | ||
| 1060 | 'upstream_default' => 'yes', | ||
| 1061 | 'value_type' => 'boolean', | ||
| 1062 | 'write_as' => [ | ||
| 1063 | 'no', | ||
| 1064 | 'yes' | ||
| 1065 | ] | ||
| 1066 | }, | ||
| 1067 | 'AuthorizedKeysFile2', | ||
| 1068 | { | ||
| 1069 | 'cargo' => { | ||
| 1070 | 'type' => 'leaf', | ||
| 1071 | 'value_type' => 'uniline' | ||
| 1072 | }, | ||
| 1073 | 'description' => 'This parameter is now ignored by Ssh', | ||
| 1074 | 'status' => 'deprecated', | ||
| 1075 | 'type' => 'list' | ||
| 1076 | }, | ||
| 1077 | 'ChallengeResponseAuthentication', | ||
| 1078 | { | ||
| 1079 | 'status' => 'deprecated', | ||
| 1080 | 'type' => 'leaf', | ||
| 1081 | 'value_type' => 'boolean' | ||
| 1082 | }, | ||
| 1083 | 'KeyRegenerationInterval', | ||
| 1084 | { | ||
| 1085 | 'status' => 'deprecated', | ||
| 1086 | 'type' => 'leaf', | ||
| 1087 | 'value_type' => 'uniline' | ||
| 1088 | }, | ||
| 1089 | 'Protocol', | ||
| 1090 | { | ||
| 1091 | 'status' => 'deprecated', | ||
| 1092 | 'type' => 'leaf', | ||
| 1093 | 'value_type' => 'uniline' | ||
| 1094 | }, | ||
| 1095 | 'RDomain', | ||
| 1096 | { | ||
| 1097 | 'status' => 'deprecated', | ||
| 1098 | 'type' => 'leaf', | ||
| 1099 | 'value_type' => 'uniline' | ||
| 1100 | }, | ||
| 1101 | 'RSAAuthentication', | ||
| 1102 | { | ||
| 1103 | 'status' => 'deprecated', | ||
| 1104 | 'type' => 'leaf', | ||
| 1105 | 'value_type' => 'uniline' | ||
| 1106 | }, | ||
| 1107 | 'RhostsRSAAuthentication', | ||
| 1108 | { | ||
| 1109 | 'status' => 'deprecated', | ||
| 1110 | 'type' => 'leaf', | ||
| 1111 | 'value_type' => 'uniline' | ||
| 1112 | }, | ||
| 1113 | 'UsePrivilegeSeparation', | ||
| 1114 | { | ||
| 1115 | 'status' => 'deprecated', | ||
| 1116 | 'type' => 'leaf', | ||
| 1117 | 'value_type' => 'uniline' | ||
| 1118 | } | ||
| 1119 | ], | ||
| 1120 | 'generated_by' => 'parse-man.pl from sshd_system 10.2p1 doc', | ||
| 1121 | 'license' => 'LGPL2', | ||
| 1122 | 'name' => 'Sshd::MatchElement' | ||
| 1123 | } | ||
| 1124 | ] | ||
| 1125 | ; | ||
| 1126 | |||