models/Ssh/HostElement.pl

filter: Statementstmt 100% 13 / 13 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod n/a totaltotal 100% 17 / 17 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« models/Ssh.pl ↑ Summary models/Ssh/PortForward.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 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
11 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
12  
13 return [
14 {
15 1 '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 ssh_system documentation.
25 by L<parse-man.pl|https://github.com/dod38fr/config-model-openssh/contrib/parse-man.pl>
26 ',
27 'element' => [
28 'AddKeysToAgent',
29 {
30 'choice' => [
31 'ask',
32 'confirm',
33 'no',
34 'yes'
35 ],
36 'description' => 'Specifies whether keys should be automatically added to a running ssh-agent1.
37 If this option is set to B<yes> and a key is loaded from a file, the key and
38 its passphrase are added to the agent with the default lifetime, as if by
39 ssh-add1. If this option is set to B<ask> L<ssh(1)> will require confirmation
40 using the B<SSH_ASKPASS> program before adding a key (see ssh-add1 for
41 details). If this option is set to B<confirm> each use of the key must be
42 confirmed, as if the -B<c> option was specified to ssh-add1. If this option is
43 set to B<no> no keys are added to the agent. Alternately, this option may be
44 specified as a time interval using the format described in the I<TIME FORMATS>
45 section of sshd_config5 to specify the key\'s lifetime in ssh-agent1, after
46 which it will automatically be removed. The argument must be B<no> (the
47 default), B<yes> B<confirm> (optionally followed by a time interval), B<ask> or
48 a time interval.',
49 'type' => 'leaf',
50 'upstream_default' => 'no',
51 'value_type' => 'enum'
52 },
53 'AddressFamily',
54 {
55 'choice' => [
56 'any',
57 'inet',
58 'inet6'
59 ],
60 'description' => 'Specifies which address family to use when connecting. Valid arguments are
61 B<any> (the default), B<inet> (use IPv4 only), or B<inet6> (use IPv6 only).',
62 'type' => 'leaf',
63 'upstream_default' => 'any',
64 'value_type' => 'enum'
65 },
66 'BatchMode',
67 {
68 'description' => 'If set to B<yes> user interaction such as password prompts and host key
69 confirmation requests will be disabled. In addition, the B<ServerAliveInterval>
70 option will be set to 300 seconds by default (Debian-specific). This option is
71 useful in scripts and other batch jobs where no user is present to interact
72 with L<ssh(1)>, and where it is desirable to detect a broken network swiftly.
73 The argument must be B<yes> or B<no> (the default).',
74 'type' => 'leaf',
75 'upstream_default' => 'no',
76 'value_type' => 'boolean',
77 'write_as' => [
78 'no',
79 'yes'
80 ]
81 },
82 'BindAddress',
83 {
84 'description' => 'Use the specified address on the local machine as the source address of the
85 connection. Only useful on systems with more than one address.',
86 'type' => 'leaf',
87 'value_type' => 'uniline'
88 },
89 'BindInterface',
90 {
91 'description' => 'Use the address of the specified interface on the local machine as the source
92 address of the connection.',
93 'type' => 'leaf',
94 'value_type' => 'uniline'
95 },
96 'CanonicalDomains',
97 {
98 'description' => 'When B<CanonicalizeHostname> is enabled, this option specifies the list of
99 domain suffixes in which to search for the specified destination host.',
100 'type' => 'leaf',
101 'value_type' => 'uniline'
102 },
103 'CanonicalizeFallbackLocal',
104 {
105 'description' => 'Specifies whether to fail with an error when hostname canonicalization fails.
106 The default, B<yes> will attempt to look up the unqualified hostname using the
107 system resolver\'s search rules. A value of B<no> will cause L<ssh(1)> to fail
108 instantly if B<CanonicalizeHostname> is enabled and the target hostname cannot
109 be found in any of the domains specified by B<CanonicalDomains>',
110 'type' => 'leaf',
111 'upstream_default' => 'yes',
112 'value_type' => 'boolean',
113 'write_as' => [
114 'no',
115 'yes'
116 ]
117 },
118 'CanonicalizeHostname',
119 {
120 'choice' => [
121 'always',
122 'no',
123 'none',
124 'yes'
125 ],
126 'description' => 'Controls whether explicit hostname canonicalization is performed. The default,
127 B<no> is not to perform any name rewriting and let the system resolver handle
128 all hostname lookups. If set to B<yes> then, for connections that do not use a
129 B<ProxyCommand> or B<ProxyJump> L<ssh(1)> will attempt to canonicalize the
130 hostname specified on the command line using the B<CanonicalDomains> suffixes
131 and B<CanonicalizePermittedCNAMEs> rules. If B<CanonicalizeHostname> is set to
132 B<always> then canonicalization is applied to proxied connections too.
133  
134 If this option is enabled, then the configuration files are processed again
135 using the new target name to pick up any new configuration in matching B<Host>
136 and B<Match> stanzas. A value of B<none> disables the use of a B<ProxyJump>
137 host.',
138 'type' => 'leaf',
139 'upstream_default' => 'no',
140 'value_type' => 'enum'
141 },
142 'CanonicalizeMaxDots',
143 {
144 'description' => 'Specifies the maximum number of dot characters in a hostname before
145 canonicalization is disabled. The default, 1, allows a single dot (i.e.
146 hostname.subdomain).',
147 'type' => 'leaf',
148 'upstream_default' => '1',
149 'value_type' => 'integer'
150 },
151 'CanonicalizePermittedCNAMEs',
152 {
153 'description' => 'Specifies rules to determine whether CNAMEs should be followed when
154  
155 canonicalizing hostnames. The rules consist of one or more arguments of
156 I<source_domain_list : > B<> I<target_domain_list> where I<source_domain_list>
157 is a pattern-list of domains that may follow CNAMEs in canonicalization, and
158 I<target_domain_list> is a pattern-list of domains that they may resolve to.
159  
160 For example, Qq *.a.example.com:*.b.example.com,*.c.example.com will allow
161 hostnames matching Qq *.a.example.com to be canonicalized to names in the Qq
162 *.b.example.com or Qq *.c.example.com domains.
163  
164 A single argument of Qq none causes no CNAMEs to be considered for
165 canonicalization. This is the default behaviour.',
166 'type' => 'leaf',
167 'value_type' => 'uniline'
168 },
169 'CASignatureAlgorithms',
170 {
171 'description' => 'Specifies which algorithms are allowed for signing of certificates by
172 certificate authorities (CAs). The default is: ssh-ed25519,
173 ecdsa-sha2-nistp256, ecdsa-sha2-nistp384, ecdsa-sha2-nistp521,
174 sk-ssh-ed25519@openssh.com, sk-ecdsa-sha2-nistp256@openssh.com, rsa-sha2-512,
175 rsa-sha2-256
176  
177 If the specified list begins with a \'+\' character, then the specified
178 algorithms will be appended to the default set instead of replacing them. If
179 the specified list begins with a \'-\' character, then the specified algorithms
180 (including wildcards) will be removed from the default set instead of replacing
181 them.
182  
183 L<ssh(1)> will not accept host certificates signed using algorithms other than
184 those specified.',
185 'type' => 'leaf',
186 'value_type' => 'uniline'
187 },
188 'CertificateFile',
189 {
190 'description' => 'Specifies a file from which the user\'s certificate is read. A corresponding
191 private key must be provided separately in order to use this certificate either
192 from an B<IdentityFile> directive or -B<i> flag to L<ssh(1)>, via ssh-agent1,
193 or via a B<PKCS11Provider> or B<SecurityKeyProvider>
194  
195 Arguments to B<CertificateFile> may use the tilde syntax to refer to a user\'s
196 home directory, the tokens described in the I<TOKENS> section and environment
197 variables as described in the I<ENVIRONMENT VARIABLES> section.
198  
199 It is possible to have multiple certificate files specified in configuration
200 files; these certificates will be tried in sequence. Multiple
201 B<CertificateFile> directives will add to the list of certificates used for
202 authentication.',
203 'type' => 'leaf',
204 'value_type' => 'uniline'
205 },
206 'ChannelTimeout',
207 {
208 'description' => 'Specifies whether and how quickly L<ssh(1)> should close inactive channels.
209 Timeouts are specified as one or more \'\'type=interval\'\' pairs separated by
210 whitespace, where the \'\'type\'\' must be the special keyword \'\'global\'\' or a
211 channel type name from the list below, optionally containing wildcard
212 characters.
213  
214 The timeout value \'\'interval\'\' is specified in seconds or may use any of the
215 units documented in the I<TIME FORMATS> section. For example, \'\'session=5m\'\'
216 would cause interactive sessions to terminate after five minutes of inactivity.
217 Specifying a zero value disables the inactivity timeout.
218  
219 The special timeout \'\'global\'\' applies to all active channels, taken together.
220 Traffic on any active channel will reset the timeout, but when the timeout
221 expires then all open channels will be closed. Note that this global timeout is
222 not matched by wildcards and must be specified explicitly.
223  
224 The available channel type names include:
225  
226 B<agent-connection> Open connections to ssh-agent1. B<direct-tcpip ,
227 direct-streamlocal@openssh.com> Open TCP or Unix socket (respectively)
228 connections that have been established from an L<ssh(1)> local forwarding, i.e.
229 B<LocalForward> or B<DynamicForward> B<forwarded-tcpip ,
230 forwarded-streamlocal@openssh.com> Open TCP or Unix socket (respectively)
231 connections that have been established to an L<sshd(8)> listening on behalf of
232 an L<ssh(1)> remote forwarding, i.e. B<RemoteForward> B<session> The
233 interactive main session, including shell session, command execution,
234 L<scp(1)>, L<sftp(1)>, etc. B<tun-connection> Open B<TunnelForward>
235 connections. B<x11-connection> Open X11 forwarding sessions.
236  
237 Note that in all the above cases, terminating an inactive session does not
238 guarantee to remove all resources associated with the session, e.g. shell
239 processes or X11 clients relating to the session may continue to execute.
240  
241 Moreover, terminating an inactive channel or session does not necessarily close
242 the SSH connection, nor does it prevent a client from requesting another
243 channel of the same type. In particular, expiring an inactive forwarding
244 session does not prevent another identical forwarding from being subsequently
245 created.
246  
247 The default is not to expire channels of any type for inactivity.',
248 'type' => 'leaf',
249 'value_type' => 'uniline'
250 },
251 'CheckHostIP',
252 {
253 'description' => 'If set to B<yes> L<ssh(1)> will additionally check the host IP address in the
254 known_hosts file. This allows it to detect if a host key changed due to DNS
255 spoofing and will add addresses of destination hosts to ~/.ssh/known_hosts in
256 the process, regardless of the setting of B<StrictHostKeyChecking> If the
257 option is set to B<no> (the default), the check will not be executed.',
258 'type' => 'leaf',
259 'upstream_default' => 'no',
260 'value_type' => 'boolean',
261 'write_as' => [
262 'no',
263 'yes'
264 ]
265 },
266 'Ciphers',
267 {
268 'description' => 'Specifies the ciphers allowed and their order of preference. Multiple ciphers
269 must be comma-separated. If the specified list begins with a \'+\' character,
270 then the specified ciphers will be appended to the default set instead of
271 replacing them. If the specified list begins with a \'-\' character, then the
272 specified ciphers (including wildcards) will be removed from the default set
273 instead of replacing them. If the specified list begins with a \'^\' character,
274 then the specified ciphers will be placed at the head of the default set.
275  
276 The supported ciphers are: 3des-cbc aes128-cbc aes192-cbc aes256-cbc aes128-ctr
277 aes192-ctr aes256-ctr
278 aes128-gcm@openssh.comaes256-gcm@openssh.comchacha20-poly1305@openssh.com
279  
280 The default is: chacha20-poly1305@openssh.com, aes128-gcm@openssh.com,
281 aes256-gcm@openssh.com, aes128-ctr, aes192-ctr, aes256-ctr
282  
283 The list of available ciphers may also be obtained using Qq ssh -Q cipher .',
284 'type' => 'leaf',
285 'value_type' => 'uniline'
286 },
287 'ClearAllForwardings',
288 {
289 'description' => 'Specifies that all local, remote, and dynamic port forwardings specified in the
290 configuration files or on the command line be cleared. This option is primarily
291 useful when used from the L<ssh(1)> command line to clear port forwardings set
292 in configuration files, and is automatically set by L<scp(1)> and L<sftp(1)>.
293 The argument must be B<yes> or B<no> (the default).',
294 'type' => 'leaf',
295 'upstream_default' => 'no',
296 'value_type' => 'boolean',
297 'write_as' => [
298 'no',
299 'yes'
300 ]
301 },
302 'Compression',
303 {
304 'description' => 'Specifies whether to use compression. The argument must be B<yes> or B<no> (the
305 default).',
306 'type' => 'leaf',
307 'upstream_default' => 'no',
308 'value_type' => 'boolean',
309 'write_as' => [
310 'no',
311 'yes'
312 ]
313 },
314 'ConnectionAttempts',
315 {
316 'description' => 'Specifies the number of tries (one per second) to make before exiting. The
317 argument must be an integer. This may be useful in scripts if the connection
318 sometimes fails. The default is 1.',
319 'type' => 'leaf',
320 'upstream_default' => '1',
321 'value_type' => 'integer'
322 },
323 'ConnectTimeout',
324 {
325 'description' => 'Specifies the timeout (in seconds) used when connecting to the SSH server,
326 instead of using the default system TCP timeout. This timeout is applied both
327 to establishing the connection and to performing the initial SSH protocol
328 handshake and key exchange. B<SetupTimeOut> is a Debian-specific compatibility
329 alias for this option.',
330 'type' => 'leaf',
331 'value_type' => 'integer'
332 },
333 'ControlMaster',
334 {
335 'choice' => [
336 'ask',
337 'auto',
338 'autoask',
339 'no',
340 'yes'
341 ],
342 'description' => 'Enables the sharing of multiple sessions over a single network connection. When
343 set to B<yes> L<ssh(1)> will listen for connections on a control socket
344 specified using the B<ControlPath> argument. Additional sessions can connect to
345 this socket using the same B<ControlPath> with B<ControlMaster> set to B<no>
346 (the default). These sessions will try to reuse the master instance\'s network
347 connection rather than initiating new ones, but will fall back to connecting
348 normally if the control socket does not exist, or is not listening.
349  
350 Setting this to B<ask> will cause L<ssh(1)> to listen for control connections,
351 but require confirmation using ssh-askpass1. If the B<ControlPath> cannot be
352 opened, L<ssh(1)> will continue without connecting to a master instance.
353  
354 X11 and ssh-agent1 forwarding is supported over these multiplexed connections,
355 however the display and agent forwarded will be the one belonging to the master
356 connection i.e. it is not possible to forward multiple displays or agents.
357  
358 Two additional options allow for opportunistic multiplexing: try to use a
359 master connection but fall back to creating a new one if one does not already
360 exist. These options are: B<auto> and B<autoask> The latter requires
361 confirmation like the B<ask> option.',
362 'type' => 'leaf',
363 'upstream_default' => 'no',
364 'value_type' => 'enum'
365 },
366 'ControlPath',
367 {
368 'description' => 'Specify the path to the control socket used for connection sharing as described
369 in the B<ControlMaster> section above or the string B<none> to disable
370 connection sharing. Arguments to B<ControlPath> may use the tilde syntax to
371 refer to a user\'s home directory, the tokens described in the I<TOKENS> section
372 and environment variables as described in the I<ENVIRONMENT VARIABLES> section.
373 It is recommended that any B<ControlPath> used for opportunistic connection
374 sharing include at least %h, %p, and %r (or alternatively %C) and be placed in
375 a directory that is not writable by other users. This ensures that shared
376 connections are uniquely identified.',
377 'type' => 'leaf',
378 'value_type' => 'uniline'
379 },
380 'ControlPersist',
381 {
382 'description' => 'When used in conjunction with B<ControlMaster> specifies that the master
383 connection should remain open in the background (waiting for future client
384 connections) after the initial client connection has been closed. If set to
385 B<no> (the default), then the master connection will not be placed into the
386 background, and will close as soon as the initial client connection is closed.
387 If set to B<yes> or 0, then the master connection will remain in the background
388 indefinitely (until killed or closed via a mechanism such as the Qq ssh -O exit
389 ) . If set to a time in seconds, or a time in any of the formats documented in
390 sshd_config5, then the backgrounded master connection will automatically
391 terminate after it has remained idle (with no client connections) for the
392 specified time.',
393 'type' => 'leaf',
394 'value_type' => 'uniline'
395 },
396 'DynamicForward',
397 {
398 'cargo' => {
399 'type' => 'leaf',
400 'value_type' => 'uniline'
401 },
402 'description' => 'Specifies that a TCP port on the local machine be forwarded over the secure
403 channel, and the application protocol is then used to determine where to
404 connect to from the remote machine.
405  
406 The argument must be [I<bind_address : port> ] IPv6 addresses can be specified
407 by enclosing addresses in square brackets. By default, the local port is bound
408 in accordance with the B<GatewayPorts> setting. However, an explicit
409 I<bind_address> may be used to bind the connection to a specific address. The
410 I<bind_address> of B<localhost> indicates that the listening port be bound for
411 local use only, while an empty address or \'*\' indicates that the port should be
412 available from all interfaces.
413  
414 Currently the SOCKS4 and SOCKS5 protocols are supported, and L<ssh(1)> will act
415 as a SOCKS server. Multiple forwardings may be specified, and additional
416 forwardings can be given on the command line. Only the superuser can forward
417 privileged ports.',
418 'type' => 'list'
419 },
420 'EnableEscapeCommandline',
421 {
422 'description' => 'Enables the command line option in the B<EscapeChar> menu for interactive
423 sessions (default \'~C\' ) . By default, the command line is disabled.',
424 'type' => 'leaf',
425 'value_type' => 'uniline'
426 },
427 'EnableSSHKeysign',
428 {
429 'description' => 'Setting this option to B<yes> in the global client configuration file
430 /etc/ssh/ssh_config enables the use of the helper program ssh-keysign8 during
431 B<HostbasedAuthentication> The argument must be B<yes> or B<no> (the default).
432 This option should be placed in the non-hostspecific section. See ssh-keysign8
433 for more information.',
434 'type' => 'leaf',
435 'upstream_default' => 'no',
436 'value_type' => 'boolean',
437 'write_as' => [
438 'no',
439 'yes'
440 ]
441 },
442 'EscapeChar',
443 {
444 'description' => 'Sets the escape character (default: \'~\' ) . The escape character can also be
445 set on the command line. The argument should be a single character, \'^\'
446 followed by a letter, or B<none> to disable the escape character entirely
447 (making the connection transparent for binary data).',
448 'type' => 'leaf',
449 'value_type' => 'uniline'
450 },
451 'ExitOnForwardFailure',
452 {
453 'description' => 'Specifies whether L<ssh(1)> should terminate the connection if it cannot set up
454 all requested dynamic, tunnel, local, and remote port forwardings, (e.g. if
455 either end is unable to bind and listen on a specified port). Note that
456 B<ExitOnForwardFailure> does not apply to connections made over port
457 forwardings and will not, for example, cause L<ssh(1)> to exit if TCP
458 connections to the ultimate forwarding destination fail. The argument must be
459 B<yes> or B<no> (the default).',
460 'type' => 'leaf',
461 'upstream_default' => 'no',
462 'value_type' => 'boolean',
463 'write_as' => [
464 'no',
465 'yes'
466 ]
467 },
468 'FingerprintHash',
469 {
470 'choice' => [
471 'md5',
472 'sha256'
473 ],
474 'description' => 'Specifies the hash algorithm used when displaying key fingerprints. Valid
475 options are: B<md5> and B<sha256> (the default).',
476 'type' => 'leaf',
477 'upstream_default' => 'sha256',
478 'value_type' => 'enum'
479 },
480 'ForkAfterAuthentication',
481 {
482 'description' => 'Requests B<ssh> to go to background just before command execution. This is
483 useful if B<ssh> is going to ask for passwords or passphrases, but the user
484 wants it in the background. This implies the B<StdinNull> configuration option
485 being set to \'\'yes\'\' The recommended way to start X11 programs at a remote site
486 is with something like B<ssh -f host xterm> which is the same as B<ssh host
487 xterm> if the B<ForkAfterAuthentication> configuration option is set to \'\'yes\'\'
488  
489 If the B<ExitOnForwardFailure> configuration option is set to \'\'yes\'\' then a
490 client started with the B<ForkAfterAuthentication> configuration option being
491 set to \'\'yes\'\' will wait for all remote port forwards to be successfully
492 established before placing itself in the background. The argument to this
493 keyword must be B<yes> (same as the -B<f> option) or B<no> (the default).',
494 'type' => 'leaf',
495 'upstream_default' => 'no',
496 'value_type' => 'boolean',
497 'write_as' => [
498 'no',
499 'yes'
500 ]
501 },
502 'ForwardAgent',
503 {
504 'description' => 'Specifies whether the connection to the authentication agent (if any) will be
505 forwarded to the remote machine. The argument may be B<yes> B<no> (the
506 default), an explicit path to an agent socket or the name of an environment
507 variable (beginning with \'$\' in which to find the path.
508  
509 Agent forwarding should be enabled with caution. Users with the ability to
510 bypass file permissions on the remote host (for the agent\'s Unix-domain socket)
511 can access the local agent through the forwarded connection. An attacker cannot
512 obtain key material from the agent, however they can perform operations on the
513 keys that enable them to authenticate using the identities loaded into the
514 agent.',
515 'type' => 'leaf',
516 'upstream_default' => 'no',
517 'value_type' => 'boolean',
518 'write_as' => [
519 'no',
520 'yes'
521 ]
522 },
523 'ForwardX11',
524 {
525 'description' => 'Specifies whether X11 connections will be automatically redirected over the
526 secure channel and B<DISPLAY> set. The argument must be B<yes> or B<no> (the
527 default).
528  
529 X11 forwarding should be enabled with caution. Users with the ability to bypass
530 file permissions on the remote host (for the user\'s X11 authorization database)
531 can access the local X11 display through the forwarded connection. An attacker
532 may then be able to perform activities such as keystroke monitoring if the
533 B<ForwardX11Trusted> option is also enabled.',
534 'type' => 'leaf',
535 'upstream_default' => 'no',
536 'value_type' => 'boolean',
537 'write_as' => [
538 'no',
539 'yes'
540 ]
541 },
542 'ForwardX11Timeout',
543 {
544 'description' => 'Specify a timeout for untrusted X11 forwarding using the format described in
545 the I<TIME FORMATS> section of sshd_config5. X11 connections received by
546 L<ssh(1)> after this time will be refused. Setting B<ForwardX11Timeout> to zero
547 will disable the timeout and permit X11 forwarding for the life of the
548 connection. The default is to disable untrusted X11 forwarding after twenty
549 minutes has elapsed.',
550 'type' => 'leaf',
551 'value_type' => 'integer'
552 },
553 'ForwardX11Trusted',
554 {
555 'description' => 'If this option is set to B<yes> (the Debian-specific default), remote X11
556 clients will have full access to the original X11 display.
557  
558 If this option is set to B<no> (the upstream default), remote X11 clients will
559 be considered untrusted and prevented from stealing or tampering with data
560 belonging to trusted X11 clients. Furthermore, the L<xauth(1)> token used for
561 the session will be set to expire after 20 minutes. Remote clients will be
562 refused access after this time.
563  
564 See the X11 SECURITY extension specification for full details on the
565 restrictions imposed on untrusted clients.',
566 'type' => 'leaf',
567 'value_type' => 'boolean',
568 'write_as' => [
569 'no',
570 'yes'
571 ]
572 },
573 'GatewayPorts',
574 {
575 'description' => 'Specifies whether remote hosts are allowed to connect to local forwarded ports.
576 By default, L<ssh(1)> binds local port forwardings to the loopback address.
577 This prevents other remote hosts from connecting to forwarded ports.
578 B<GatewayPorts> can be used to specify that ssh should bind local port
579 forwardings to the wildcard address, thus allowing remote hosts to connect to
580 forwarded ports. The argument must be B<yes> or B<no> (the default).',
581 'type' => 'leaf',
582 'upstream_default' => 'no',
583 'value_type' => 'boolean',
584 'write_as' => [
585 'no',
586 'yes'
587 ]
588 },
589 'GlobalKnownHostsFile',
590 {
591 'default' => '/etc/ssh/ssh_known_hosts /etc/ssh/ssh_known_hosts2',
592 'description' => 'Specifies one or more files to use for the global host key database, separated
593 by whitespace. The default is /etc/ssh/ssh_known_hosts
594 /etc/ssh/ssh_known_hosts2',
595 'type' => 'leaf',
596 'value_type' => 'uniline'
597 },
598 'GSSAPIAuthentication',
599 {
600 'description' => 'Specifies whether user authentication based on GSSAPI is allowed. The default
601 is B<no>',
602 'type' => 'leaf',
603 'upstream_default' => 'no',
604 'value_type' => 'boolean',
605 'write_as' => [
606 'no',
607 'yes'
608 ]
609 },
610 'GSSAPIClientIdentity',
611 {
612 'description' => 'If set, specifies the GSSAPI client identity that ssh should use when
613 connecting to the server. The default is unset, which means that the default
614 identity will be used.',
615 'type' => 'leaf',
616 'value_type' => 'uniline'
617 },
618 'GSSAPIDelegateCredentials',
619 {
620 'description' => 'Forward (delegate) credentials to the server. The default is B<no>',
621 'type' => 'leaf',
622 'upstream_default' => 'no',
623 'value_type' => 'boolean',
624 'write_as' => [
625 'no',
626 'yes'
627 ]
628 },
629 'GSSAPIKeyExchange',
630 {
631 'description' => 'Specifies whether key exchange based on GSSAPI may be used. When using GSSAPI
632 key exchange the server need not have a host key. The default is \'\'no\'\'',
633 'type' => 'leaf',
634 'value_type' => 'uniline'
635 },
636 'GSSAPIRenewalForcesRekey',
637 {
638 'description' => 'If set to \'\'yes\'\' then renewal of the client\'s GSSAPI credentials will force
639 the rekeying of the ssh connection. With a compatible server, this will
640 delegate the renewed credentials to a session on the server.
641  
642 Checks are made to ensure that credentials are only propagated when the new
643 credentials match the old ones on the originating client and where the
644 receiving server still has the old set in its cache.
645  
646 The default is \'\'no\'\'
647  
648 For this to work B<GSSAPIKeyExchange> needs to be enabled in the server and
649 also used by the client.',
650 'type' => 'leaf',
651 'value_type' => 'uniline'
652 },
653 'GSSAPIServerIdentity',
654 {
655 'description' => 'If set, specifies the GSSAPI server identity that ssh should expect when
656 connecting to the server. The default is unset, which means that the expected
657 GSSAPI server identity will be determined from the target hostname.',
658 'type' => 'leaf',
659 'value_type' => 'uniline'
660 },
661 'GSSAPITrustDns',
662 {
663 'description' => 'Set to \'\'yes\'\' to indicate that the DNS is trusted to securely canonicalize the
664 name of the host being connected to. If \'\'no\'\' the hostname entered on the
665 command line will be passed untouched to the GSSAPI library. The default is
666 \'\'no\'\'',
667 'type' => 'leaf',
668 'value_type' => 'uniline'
669 },
670 'GSSAPIKexAlgorithms',
671 {
672 'description' => 'The list of key exchange algorithms that are offered for GSSAPI key exchange.
673 Possible values are gss-gex-sha1-, gss-group1-sha1-, gss-group14-sha1-,
674 gss-group14-sha256-, gss-group16-sha512-, gss-nistp256-sha256-,
675 gss-curve25519-sha256-
676  
677 The default is \'\'gss-group14-sha256-, gss-group16-sha512-,
678 gss-nistp256-sha256-, gss-curve25519-sha256-, gss-gex-sha1-,
679 gss-group14-sha1-\'\' This option only applies to connections using GSSAPI.',
680 'type' => 'leaf',
681 'value_type' => 'uniline'
682 },
683 'HashKnownHosts',
684 {
685 'description' => 'Indicates that L<ssh(1)> should hash host names and addresses when they are
686 added to ~/.ssh/known_hosts These hashed names may be used normally by
687 L<ssh(1)> and L<sshd(8)>, but they do not visually reveal identifying
688 information if the file\'s contents are disclosed. The default is B<no> Note
689 that existing names and addresses in known hosts files will not be converted
690 automatically, but may be manually hashed using ssh-keygen1. Use of this option
691 may break facilities such as tab-completion that rely on being able to read
692 unhashed host names from ~/.ssh/known_hosts',
693 'type' => 'leaf',
694 'upstream_default' => 'no',
695 'value_type' => 'boolean',
696 'write_as' => [
697 'no',
698 'yes'
699 ]
700 },
701 'HostbasedAcceptedAlgorithms',
702 {
703 'description' => 'Specifies the signature algorithms that will be used for hostbased
704 authentication as a comma-separated list of patterns. Alternately if the
705 specified list begins with a \'+\' character, then the specified signature
706 algorithms will be appended to the default set instead of replacing them. If
707 the specified list begins with a \'-\' character, then the specified signature
708 algorithms (including wildcards) will be removed from the default set instead
709 of replacing them. If the specified list begins with a \'^\' character, then the
710 specified signature algorithms will be placed at the head of the default set.
711 The default for this option is: ssh-ed25519-cert-v01@openssh.com,
712 ecdsa-sha2-nistp256-cert-v01@openssh.com,
713 ecdsa-sha2-nistp384-cert-v01@openssh.com,
714 ecdsa-sha2-nistp521-cert-v01@openssh.com, sk-ssh-ed25519-cert-v01@openssh.com,
715 sk-ecdsa-sha2-nistp256-cert-v01@openssh.com, rsa-sha2-512-cert-v01@openssh.com,
716 rsa-sha2-256-cert-v01@openssh.com, ssh-ed25519, ecdsa-sha2-nistp256,
717 ecdsa-sha2-nistp384, ecdsa-sha2-nistp521, sk-ssh-ed25519@openssh.com,
718 sk-ecdsa-sha2-nistp256@openssh.com, rsa-sha2-512, rsa-sha2-256
719  
720 The -B<Q> option of L<ssh(1)> may be used to list supported signature
721 algorithms. This was formerly named HostbasedKeyTypes.',
722 'migrate_from' => {
723 'formula' => '$old',
724 'variables' => {
725 'old' => '- HostbasedKeyTypes'
726 }
727 },
728 'type' => 'leaf',
729 'value_type' => 'uniline'
730 },
731 'HostbasedAuthentication',
732 {
733 'description' => 'Specifies whether to try rhosts based authentication with public key
734 authentication. The argument must be B<yes> or B<no> (the default).',
735 'type' => 'leaf',
736 'upstream_default' => 'no',
737 'value_type' => 'boolean',
738 'write_as' => [
739 'no',
740 'yes'
741 ]
742 },
743 'HostKeyAlgorithms',
744 {
745 'description' => 'Specifies the host key signature algorithms that the client wants to use in
746 order of preference. Alternately if the specified list begins with a \'+\'
747 character, then the specified signature algorithms will be appended to the
748 default set instead of replacing them. If the specified list begins with a \'-\'
749 character, then the specified signature algorithms (including wildcards) will
750 be removed from the default set instead of replacing them. If the specified
751 list begins with a \'^\' character, then the specified signature algorithms will
752 be placed at the head of the default set. The default for this option is:
753 ssh-ed25519-cert-v01@openssh.com, ecdsa-sha2-nistp256-cert-v01@openssh.com,
754 ecdsa-sha2-nistp384-cert-v01@openssh.com,
755 ecdsa-sha2-nistp521-cert-v01@openssh.com, sk-ssh-ed25519-cert-v01@openssh.com,
756 sk-ecdsa-sha2-nistp256-cert-v01@openssh.com, rsa-sha2-512-cert-v01@openssh.com,
757 rsa-sha2-256-cert-v01@openssh.com, ssh-ed25519, ecdsa-sha2-nistp256,
758 ecdsa-sha2-nistp384, ecdsa-sha2-nistp521, sk-ecdsa-sha2-nistp256@openssh.com,
759 sk-ssh-ed25519@openssh.com, rsa-sha2-512, rsa-sha2-256
760  
761 If hostkeys are known for the destination host then this default is modified to
762 prefer their algorithms.
763  
764 The list of available signature algorithms may also be obtained using Qq ssh -Q
765 HostKeyAlgorithms .',
766 'type' => 'leaf',
767 'value_type' => 'uniline'
768 },
769 'HostKeyAlias',
770 {
771 'description' => 'Specifies an alias that should be used instead of the real host name when
772 looking up or saving the host key in the host key database files and when
773 validating host certificates. This option is useful for tunneling SSH
774 connections or for multiple servers running on a single host.',
775 'type' => 'leaf',
776 'value_type' => 'uniline'
777 },
778 'Hostname',
779 {
780 'description' => 'Specifies the real host name to log into. This can be used to specify nicknames
781 or abbreviations for hosts. Arguments to B<Hostname> accept the tokens
782 described in the I<TOKENS> section. Numeric IP addresses are also permitted
783 (both on the command line and in B<Hostname> specifications). The default is
784 the name given on the command line.',
785 'type' => 'leaf',
786 'value_type' => 'uniline'
787 },
788 'IdentitiesOnly',
789 {
790 'description' => 'Specifies that L<ssh(1)> should only use the configured authentication identity
791 and certificate files (either the default files, or those explicitly configured
792 in the B<ssh_config> files or passed on the L<ssh(1)> command-line), even if
793 ssh-agent1 or a B<PKCS11Provider> or B<SecurityKeyProvider> offers more
794 identities. The argument to this keyword must be B<yes> or B<no> (the default).
795 This option is intended for situations where ssh-agent offers many different
796 identities.',
797 'type' => 'leaf',
798 'upstream_default' => 'no',
799 'value_type' => 'boolean',
800 'write_as' => [
801 'no',
802 'yes'
803 ]
804 },
805 'IdentityAgent',
806 {
807 'description' => 'Specifies the UNIX socket used to communicate with the authentication agent.
808  
809 This option overrides the B<SSH_AUTH_SOCK> environment variable and can be used
810 to select a specific agent. Setting the socket name to B<none> disables the use
811 of an authentication agent. If the string Qq SSH_AUTH_SOCK is specified, the
812 location of the socket will be read from the B<SSH_AUTH_SOCK> environment
813 variable. Otherwise if the specified value begins with a \'$\' character, then it
814 will be treated as an environment variable containing the location of the
815 socket.
816  
817 Arguments to B<IdentityAgent> may use the tilde syntax to refer to a user\'s
818 home directory, the tokens described in the I<TOKENS> section and environment
819 variables as described in the I<ENVIRONMENT VARIABLES> section.',
820 'type' => 'leaf',
821 'value_type' => 'uniline'
822 },
823 'IdentityFile',
824 {
825 'cargo' => {
826 'type' => 'leaf',
827 'value_type' => 'uniline',
828 'warn_if_match' => {
829 '\\.pub$' => {
830 'fix' => 's/\\.pub$//;',
831 'msg' => 'identity file must be the private key'
832 }
833 }
834 },
835 'description' => 'Specifies a file from which the user\'s ECDSA, authenticator-hosted ECDSA,
836 Ed25519, authenticator-hosted Ed25519 or RSA authentication identity is read.
837 You can also specify a public key file to use the corresponding private key
838 that is loaded in ssh-agent1 when the private key file is not present locally.
839 The default is ~/.ssh/id_rsa ~/.ssh/id_ecdsa ~/.ssh/id_ecdsa_sk
840 ~/.ssh/id_ed25519 and ~/.ssh/id_ed25519_sk Additionally, any identities
841 represented by the authentication agent will be used for authentication unless
842 B<IdentitiesOnly> is set. If no certificates have been explicitly specified by
843 B<CertificateFile> L<ssh(1)> will try to load certificate information from the
844 filename obtained by appending -cert.pub to the path of a specified
845 B<IdentityFile>
846  
847 Arguments to B<IdentityFile> may use the tilde syntax to refer to a user\'s home
848 directory or the tokens described in the I<TOKENS> section. Alternately an
849 argument of B<none> may be used to indicate no identity files should be loaded.
850  
851 It is possible to have multiple identity files specified in configuration
852 files; all these identities will be tried in sequence. Multiple B<IdentityFile>
853 directives will add to the list of identities tried (this behaviour differs
854 from that of other configuration directives).
855  
856 B<IdentityFile> may be used in conjunction with B<IdentitiesOnly> to select
857 which identities in an agent are offered during authentication. B<IdentityFile>
858 may also be used in conjunction with B<CertificateFile> in order to provide any
859 certificate also needed for authentication with the identity.',
860 'type' => 'list'
861 },
862 'IgnoreUnknown',
863 {
864 'description' => 'Specifies a pattern-list of unknown options to be ignored if they are
865 encountered in configuration parsing. This may be used to suppress errors if
866 B<ssh_config> contains options that are unrecognised by L<ssh(1)>. It is
867 recommended that B<IgnoreUnknown> be listed early in the configuration file as
868 it will not be applied to unknown options that appear before it.',
869 'type' => 'leaf',
870 'value_type' => 'uniline'
871 },
872 'Include',
873 {
874 'cargo' => {
875 'type' => 'leaf',
876 'value_type' => 'uniline'
877 },
878 'description' => 'Include the specified configuration file(s). Multiple pathnames may be
879 specified and each pathname may contain L<glob(7)> wildcards, tokens as
880 described in the I<TOKENS> section, environment variables as described in the
881 I<ENVIRONMENT VARIABLES> section and, for user configurations, shell-like \'~\'
882 references to user home directories. Wildcards will be expanded and processed
883 in lexical order. Files without absolute paths are assumed to be in ~/.ssh if
884 included in a user configuration file or /etc/ssh if included from the system
885 configuration file. B<Include> directive may appear inside a B<Match> or
886 B<Host> block to perform conditional inclusion.',
887 'type' => 'list'
888 },
889 'IPQoS',
890 {
891 'assert' => {
892 '1_or_2' => {
893 'code' => 'return 1 unless defined $_;
894 my @v = (/(\\w+)/g);
895 return (@v < 3) ? 1 : 0;
896 ',
897 'msg' => 'value must not have more than 2 fields.'
898 },
899 'accepted_values' => {
900 'code' => 'return 1 unless defined $_;
901 my @v = (/(\\S+)/g);
902 my @good = grep {/^(af[1-4][1-3]|cs[0-7]|ef|lowdelay|throughput|reliability|\\d+)/} @v ;
903 return @good == @v ? 1 : 0;
904 ',
905 'msg' => 'Unexpected value "$_". Expected 1 or 2 occurences of: "af11", "af12", "af13", "af21", "af22",
906 "af23", "af31", "af32", "af33", "af41", "af42", "af43", "cs0", "cs1",
907 "cs2", "cs3", "cs4", "cs5", "cs6", "cs7", "ef", "lowdelay",
908 "throughput", "reliability", or numeric value.
909 '
910 }
911 },
912 'description' => 'Specifies the I<Differentiated Services Field Codepoint (DSCP) > value for
913 connections. Accepted values are B<af11> B<af12> B<af13> B<af21> B<af22>
914 B<af23> B<af31> B<af32> B<af33> B<af41> B<af42> B<af43> B<cs0> B<cs1> B<cs2>
915 B<cs3> B<cs4> B<cs5> B<cs6> B<cs7> B<ef> B<le> a numeric value, or B<none> to
916 use the operating system default. This option may take one or two arguments,
917 separated by whitespace. If one argument is specified, it is used as the packet
918 class unconditionally. If two values are specified, the first is automatically
919 selected for interactive sessions and the second for non-interactive sessions.
920 The default is B<ef> (Expedited Forwarding) for interactive sessions and
921 B<none> (the operating system default) for non-interactive sessions.',
922 'type' => 'leaf',
923 'value_type' => 'uniline'
924 },
925 'KbdInteractiveAuthentication',
926 {
927 'description' => 'Specifies whether to use keyboard-interactive authentication. The argument to
928 this keyword must be B<yes> (the default) or B<no>
929 B<ChallengeResponseAuthentication> is a deprecated alias for this.',
930 'type' => 'leaf',
931 'upstream_default' => 'yes',
932 'value_type' => 'boolean',
933 'write_as' => [
934 'no',
935 'yes'
936 ]
937 },
938 'KbdInteractiveDevices',
939 {
940 'cargo' => {
941 'type' => 'leaf',
942 'value_type' => 'uniline'
943 },
944 'description' => 'Specifies the list of methods to use in keyboard-interactive authentication.
945 Multiple method names must be comma-separated. The default is to use the server
946 specified list. The methods available vary depending on what the server
947 supports. For an OpenSSH server, it may be zero or more of: B<bsdauth> and
948 B<pam>',
949 'type' => 'list'
950 },
951 'KexAlgorithms',
952 {
953 'description' => 'Specifies the permitted KEX (Key Exchange) algorithms that will be used and
954 their preference order. The selected algorithm will be the first algorithm in
955 this list that the server also supports. Multiple algorithms must be
956 comma-separated.
957  
958 If the specified list begins with a \'+\' character, then the specified
959 algorithms will be appended to the default set instead of replacing them. If
960 the specified list begins with a \'-\' character, then the specified algorithms
961 (including wildcards) will be removed from the default set instead of replacing
962 them. If the specified list begins with a \'^\' character, then the specified
963 algorithms will be placed at the head of the default set.
964  
965 The default is: mlkem768x25519-sha256, sntrup761x25519-sha512,
966 sntrup761x25519-sha512@openssh.com, curve25519-sha256,
967 curve25519-sha256@libssh.org, ecdh-sha2-nistp256, ecdh-sha2-nistp384,
968 ecdh-sha2-nistp521, diffie-hellman-group-exchange-sha256,
969 diffie-hellman-group16-sha512, diffie-hellman-group18-sha512,
970 diffie-hellman-group14-sha256
971  
972 The list of supported key exchange algorithms may also be obtained using Qq ssh
973 -Q kex .',
974 'type' => 'leaf',
975 'value_type' => 'uniline'
976 },
977 'KnownHostsCommand',
978 {
979 'description' => 'Specifies a command to use to obtain a list of host keys, in addition to those
980 listed in B<UserKnownHostsFile> and B<GlobalKnownHostsFile> This command is
981 executed after the files have been read. It may write host key lines to
982 standard output in identical format to the usual files (described in the
983 I<VERIFYING HOST KEYS> section in L<ssh(1)>). Arguments to B<KnownHostsCommand>
984 accept the tokens described in the I<TOKENS> section. The command may be
985 invoked multiple times per connection: once when preparing the preference list
986 of host key algorithms to use, again to obtain the host key for the requested
987 host name and, if B<CheckHostIP> is enabled, one more time to obtain the host
988 key matching the server\'s address. If the command exits abnormally or returns a
989 non-zero exit status then the connection is terminated.',
990 'type' => 'leaf',
991 'value_type' => 'uniline'
992 },
993 'LocalCommand',
994 {
995 'description' => 'Specifies a command to execute on the local machine after successfully
996 connecting to the server. The command string extends to the end of the line,
997 and is executed with the user\'s shell. Arguments to B<LocalCommand> accept the
998 tokens described in the I<TOKENS> section.
999  
1000 The command is run synchronously and does not have access to the session of the
1001 L<ssh(1)> that spawned it. It should not be used for interactive commands.
1002  
1003 This directive is ignored unless B<PermitLocalCommand> has been enabled.',
1004 'type' => 'leaf',
1005 'value_type' => 'uniline'
1006 },
1007 'LocalForward',
1008 {
1009 'cargo' => {
1010 'config_class_name' => 'Ssh::PortForward',
1011 'type' => 'node'
1012 },
1013 'description' => 'Specifies that a TCP port or Unix-domain socket on the local machine be
1014 forwarded over the secure channel to the specified host and port (or
1015 Unix-domain socket) from the remote machine. For a TCP port, the first argument
1016 must be [I<bind_address : port> ] or a Unix domain socket path. The second
1017 argument is the destination and may be I<host : > B<> I<hostport> or a Unix
1018 domain socket path if the remote host supports it.
1019  
1020 IPv6 addresses can be specified by enclosing addresses in square brackets.
1021  
1022 If either argument contains a \'/\' in it, that argument will be interpreted as a
1023 Unix-domain socket (on the corresponding host) rather than a TCP port.
1024  
1025 Multiple forwardings may be specified, and additional forwardings can be given
1026 on the command line. Only the superuser can forward privileged ports. By
1027 default, the local port is bound in accordance with the B<GatewayPorts>
1028 setting. However, an explicit I<bind_address> may be used to bind the
1029 connection to a specific address. The I<bind_address> of B<localhost> indicates
1030 that the listening port be bound for local use only, while an empty address or
1031 \'*\' indicates that the port should be available from all interfaces. Unix
1032 domain socket paths may use the tokens described in the I<TOKENS> section and
1033 environment variables as described in the I<ENVIRONMENT VARIABLES> section.',
1034 'type' => 'list'
1035 },
1036 'LogLevel',
1037 {
1038 'choice' => [
1039 'DEBUG',
1040 'DEBUG1',
1041 'DEBUG2',
1042 'DEBUG3',
1043 'ERROR',
1044 'FATAL',
1045 'INFO',
1046 'QUIET',
1047 'VERBOSE'
1048 ],
1049 'description' => 'Gives the verbosity level that is used when logging messages from L<ssh(1)>.
1050 The possible values are: QUIET, FATAL, ERROR, INFO, VERBOSE, DEBUG, DEBUG1,
1051 DEBUG2, and DEBUG3. The default is INFO. DEBUG and DEBUG1 are equivalent.
1052 DEBUG2 and DEBUG3 each specify higher levels of verbose output.',
1053 'type' => 'leaf',
1054 'upstream_default' => 'INFO',
1055 'value_type' => 'enum'
1056 },
1057 'LogVerbose',
1058 {
1059 'description' => 'Specify one or more overrides to LogLevel. An override consists of one or more
1060 pattern lists that matches the source file, function and line number to force
1061 detailed logging for. For example, an override pattern of:
1062 kex.c:*:1000,*:kex_exchange_identification():*, packet.c:*
1063  
1064 would enable detailed logging for line 1000 of kex.c everything in the Fn
1065 kex_exchange_identification function, and all code in the packet.c file. This
1066 option is intended for debugging and no overrides are enabled by default.',
1067 'type' => 'leaf',
1068 'value_type' => 'uniline'
1069 },
1070 'MACs',
1071 {
1072 'description' => 'Specifies the MAC (message authentication code) algorithms
1073  
1074 in order of preference. The MAC algorithm is used for data integrity
1075 protection. Multiple algorithms must be comma-separated. If the specified list
1076 begins with a \'+\' character, then the specified algorithms will be appended to
1077 the default set instead of replacing them. If the specified list begins with a
1078 \'-\' character, then the specified algorithms (including wildcards) will be
1079 removed from the default set instead of replacing them. If the specified list
1080 begins with a \'^\' character, then the specified algorithms will be placed at
1081 the head of the default set.
1082  
1083 The algorithms that contain Qq -etm calculate the MAC after encryption
1084 (encrypt-then-mac). These are considered safer and their use recommended.
1085  
1086 The default is: umac-64-etm@openssh.com, umac-128-etm@openssh.com,
1087 hmac-sha2-256-etm@openssh.com, hmac-sha2-512-etm@openssh.com,
1088 hmac-sha1-etm@openssh.com, umac-64@openssh.com, umac-128@openssh.com,
1089 hmac-sha2-256, hmac-sha2-512, hmac-sha1
1090  
1091 The list of available MAC algorithms may also be obtained using Qq ssh -Q mac .',
1092 'type' => 'leaf',
1093 'value_type' => 'uniline'
1094 },
1095 'NoHostAuthenticationForLocalhost',
1096 {
1097 'description' => 'Disable host authentication for localhost (loopback addresses). The argument to
1098 this keyword must be B<yes> or B<no> (the default).',
1099 'type' => 'leaf',
1100 'upstream_default' => 'no',
1101 'value_type' => 'boolean',
1102 'write_as' => [
1103 'no',
1104 'yes'
1105 ]
1106 },
1107 'NumberOfPasswordPrompts',
1108 {
1109 'description' => 'Specifies the number of password prompts before giving up. The argument to this
1110 keyword must be an integer. The default is 3.',
1111 'type' => 'leaf',
1112 'upstream_default' => '3',
1113 'value_type' => 'integer'
1114 },
1115 'ObscureKeystrokeTiming',
1116 {
1117 'description' => 'Specifies whether L<ssh(1)> should try to obscure inter-keystroke timings from
1118 passive observers of network traffic. If enabled, then for interactive
1119 sessions, L<ssh(1)> will send keystrokes at fixed intervals of a few tens of
1120 milliseconds and will send fake keystroke packets for some time after typing
1121 ceases. The argument to this keyword must be B<yes> B<no> or an interval
1122 specifier of the form B<interval:milliseconds> (e.g. B<interval:80> for 80
1123 milliseconds). The default is to obscure keystrokes using a 20ms packet
1124 interval. Note that smaller intervals will result in higher fake keystroke
1125 packet rates.',
1126 'type' => 'leaf',
1127 'upstream_default' => 'interval:20',
1128 'value_type' => 'uniline'
1129 },
1130 'PasswordAuthentication',
1131 {
1132 'description' => 'Specifies whether to use password authentication. The argument to this keyword
1133 must be B<yes> (the default) or B<no>',
1134 'type' => 'leaf',
1135 'upstream_default' => 'yes',
1136 'value_type' => 'boolean',
1137 'write_as' => [
1138 'no',
1139 'yes'
1140 ]
1141 },
1142 'PermitLocalCommand',
1143 {
1144 'description' => 'Allow local command execution via the B<LocalCommand> option or using the B<!>
1145 I<command> escape sequence in L<ssh(1)>. The argument must be B<yes> or B<no>
1146 (the default).',
1147 'type' => 'leaf',
1148 'upstream_default' => 'no',
1149 'value_type' => 'boolean',
1150 'write_as' => [
1151 'no',
1152 'yes'
1153 ]
1154 },
1155 'PermitRemoteOpen',
1156 {
1157 'cargo' => {
1158 'type' => 'leaf',
1159 'value_type' => 'uniline'
1160 },
1161 'description' => 'Specifies the destinations to which remote TCP port forwarding is permitted
1162 when B<RemoteForward> is used as a SOCKS proxy. The forwarding specification
1163 must be one of the following forms:
1164  
1165 B<PermitRemoteOpen> I<host : port> B<PermitRemoteOpen> I<IPv4_addr : port>
1166 B<PermitRemoteOpen> I<[ IPv6_addr ] : port>
1167  
1168 Multiple forwards may be specified by separating them with whitespace. An
1169 argument of B<any> can be used to remove all restrictions and permit any
1170 forwarding requests. An argument of B<none> can be used to prohibit all
1171 forwarding requests. The wildcard \'*\' can be used for host or port to allow all
1172 hosts or ports respectively. Otherwise, no pattern matching or address lookups
1173 are performed on supplied names.',
1174 'type' => 'list'
1175 },
1176 'PKCS11Provider',
1177 {
1178 'description' => 'Specifies which PKCS#11 provider to use or B<none> to indicate that no provider
1179 should be used (the default). The argument to this keyword is a path to the
1180 PKCS#11 shared library L<ssh(1)> should use to communicate with a PKCS#11 token
1181 providing keys for user authentication.',
1182 'type' => 'leaf',
1183 'value_type' => 'uniline'
1184 },
1185 'Port',
1186 {
1187 'description' => 'Specifies the port number to connect on the remote host. The default is 22.',
1188 'type' => 'leaf',
1189 'value_type' => 'uniline'
1190 },
1191 'PreferredAuthentications',
1192 {
1193 'cargo' => {
1194 'type' => 'leaf',
1195 'value_type' => 'uniline',
1196 'warn_unless_match' => {
1197 '^(gssapi-with-mic|hostbased|publickey|keyboard-interactive|password)$' => {
1198 'msg' => 'Unexpected authentication method: \'C<$_>\'. Expected one of
1199 C<gssapi-with-mic>, C<hostbased>, C<publickey>,
1200 C<keyboard-interactive> or C<password>
1201 '
1202 }
1203 }
1204 },
1205 'description' => 'Specifies the order in which the client should try authentication methods. This
1206 allows a client to prefer one method (e.g. B<keyboard-interactive> over another
1207 method (e.g. B<password )> The default is: gssapi-with-mic, hostbased,
1208 publickey, keyboard-interactive, password',
1209 'type' => 'list'
1210 },
1211 'ProxyCommand',
1212 {
1213 'description' => 'Specifies the command to use to connect to the server. The command string
1214 extends to the end of the line, and is executed using the user\'s shell \'exec\'
1215 directive to avoid a lingering shell process.
1216  
1217 Arguments to B<ProxyCommand> accept the tokens described in the I<TOKENS>
1218 section. The command can be basically anything, and should read from its
1219 standard input and write to its standard output. It should eventually connect
1220 an L<sshd(8)> server running on some machine, or execute B<sshd -i> somewhere.
1221 Host key management will be done using the B<Hostname> of the host being
1222 connected (defaulting to the name typed by the user). Setting the command to
1223 B<none> disables this option entirely. Note that B<CheckHostIP> is not
1224 available for connects with a proxy command.
1225  
1226 This directive is useful in conjunction with L<nc(1)> and its proxy support.
1227 For example, the following directive would connect via an HTTP proxy at
1228 192.0.2.0: ProxyCommand /usr/bin/nc -X connect -x 192.0.2.0:8080 %h %p',
1229 'type' => 'leaf',
1230 'value_type' => 'uniline'
1231 },
1232 'ProxyJump',
1233 {
1234 'cargo' => {
1235 'type' => 'leaf',
1236 'value_type' => 'uniline'
1237 },
1238 'description' => 'Specifies one or more jump proxies as either [I<user > B<@> ] I<host> [: B<>
1239 I<port> ] or an ssh URI. Multiple proxies may be separated by comma characters
1240 and will be visited sequentially. Setting this option will cause L<ssh(1)> to
1241 connect to the target host by first making an L<ssh(1)> connection to the
1242 specified B<ProxyJump> host and then establishing a TCP forwarding to the
1243 ultimate target from there. Setting the host to B<none> disables this option
1244 entirely.
1245  
1246 Note that this option will compete with the B<ProxyCommand> option - whichever
1247 is specified first will prevent later instances of the other from taking
1248 effect.
1249  
1250 Note also that the configuration for the destination host (either supplied via
1251 the command-line or the configuration file) is not generally applied to jump
1252 hosts. ~/.ssh/config should be used if specific configuration is required for
1253 jump hosts.',
1254 'type' => 'list'
1255 },
1256 'ProxyUseFdpass',
1257 {
1258 'description' => 'Specifies that B<ProxyCommand> will pass a connected file descriptor back to
1259 L<ssh(1)> instead of continuing to execute and pass data. The default is B<no>',
1260 'type' => 'leaf',
1261 'upstream_default' => 'no',
1262 'value_type' => 'boolean',
1263 'write_as' => [
1264 'no',
1265 'yes'
1266 ]
1267 },
1268 'PubkeyAcceptedAlgorithms',
1269 {
1270 'description' => 'Specifies the signature algorithms that will be used for public key
1271 authentication as a comma-separated list of patterns. If the specified list
1272 begins with a \'+\' character, then the algorithms after it will be appended to
1273 the default instead of replacing it. If the specified list begins with a \'-\'
1274 character, then the specified algorithms (including wildcards) will be removed
1275 from the default set instead of replacing them. If the specified list begins
1276 with a \'^\' character, then the specified algorithms will be placed at the head
1277 of the default set. The default for this option is:
1278 ssh-ed25519-cert-v01@openssh.com, ecdsa-sha2-nistp256-cert-v01@openssh.com,
1279 ecdsa-sha2-nistp384-cert-v01@openssh.com,
1280 ecdsa-sha2-nistp521-cert-v01@openssh.com, sk-ssh-ed25519-cert-v01@openssh.com,
1281 sk-ecdsa-sha2-nistp256-cert-v01@openssh.com, rsa-sha2-512-cert-v01@openssh.com,
1282 rsa-sha2-256-cert-v01@openssh.com, ssh-ed25519, ecdsa-sha2-nistp256,
1283 ecdsa-sha2-nistp384, ecdsa-sha2-nistp521, sk-ssh-ed25519@openssh.com,
1284 sk-ecdsa-sha2-nistp256@openssh.com, rsa-sha2-512, rsa-sha2-256
1285  
1286 The list of available signature algorithms may also be obtained using Qq ssh -Q
1287 PubkeyAcceptedAlgorithms .',
1288 'migrate_from' => {
1289 'formula' => '$old',
1290 'variables' => {
1291 'old' => '- PubkeyAcceptedKeyTypes'
1292 }
1293 },
1294 'type' => 'leaf',
1295 'value_type' => 'uniline'
1296 },
1297 'PubkeyAuthentication',
1298 {
1299 'choice' => [
1300 'host-bound',
1301 'no',
1302 'unbound',
1303 'yes'
1304 ],
1305 'description' => 'Specifies whether to try public key authentication. The argument to this
1306 keyword must be B<yes> (the default), B<no> B<unbound> or B<host-bound> The
1307 final two options enable public key authentication while respectively disabling
1308 or enabling the OpenSSH host-bound authentication protocol extension required
1309 for restricted ssh-agent1 forwarding.',
1310 'type' => 'leaf',
1311 'upstream_default' => 'yes',
1312 'value_type' => 'enum'
1313 },
1314 'RefuseConnection',
1315 {
1316 'description' => 'Allows a connection to be refused by the configuration file. If this option is
1317 specified, then L<ssh(1)> will terminate immediately before attempting to
1318 connect to the remote host, display an error message that contains the argument
1319 to this keyword and return a non-zero exit status. This option may be useful to
1320 express reminders or warnings to the user via B<ssh_config.>',
1321 'type' => 'leaf',
1322 'value_type' => 'uniline'
1323 },
1324 'RekeyLimit',
1325 {
1326 'description' => 'Specifies the maximum amount of data that may be transmitted or received before
1327 the session key is renegotiated, optionally followed by a maximum amount of
1328 time that may pass before the session key is renegotiated. The first argument
1329 is specified in bytes and may have a suffix of \'K\' \'M\' or \'G\' to indicate
1330 Kilobytes, Megabytes, or Gigabytes, respectively. The default is between \'1G\'
1331 and \'4G\' depending on the cipher. The optional second value is specified in
1332 seconds and may use any of the units documented in the TIME FORMATS section of
1333 sshd_config5. The default value for B<RekeyLimit> is B<default none> which
1334 means that rekeying is performed after the cipher\'s default amount of data has
1335 been sent or received and no time based rekeying is done.',
1336 'type' => 'leaf',
1337 'value_type' => 'uniline'
1338 },
1339 'RemoteCommand',
1340 {
1341 'description' => 'Specifies a command to execute on the remote machine after successfully
1342 connecting to the server. The command string extends to the end of the line,
1343 and is executed with the user\'s shell. Arguments to B<RemoteCommand> accept the
1344 tokens described in the I<TOKENS> section.',
1345 'type' => 'leaf',
1346 'value_type' => 'uniline'
1347 },
1348 'RemoteForward',
1349 {
1350 'cargo' => {
1351 'config_class_name' => 'Ssh::PortForward',
1352 'type' => 'node'
1353 },
1354 'description' => 'Specifies that a TCP port or Unix-domain socket on the remote machine be
1355 forwarded over the secure channel. The remote port may either be forwarded to a
1356 specified host and port or Unix-domain socket from the local machine, or may
1357 act as a SOCKS 4/5 proxy that allows a remote client to connect to arbitrary
1358 destinations from the local machine. The first argument is the listening
1359 specification and may be [I<bind_address : port> ] or, if the remote host
1360 supports it, a Unix domain socket path. If forwarding to a specific destination
1361 then the second argument must be I<host : > B<> I<hostport> or a Unix domain
1362 socket path, otherwise if no destination argument is specified then the remote
1363 forwarding will be established as a SOCKS proxy. When acting as a SOCKS proxy,
1364 the destination of the connection can be restricted by B<PermitRemoteOpen>
1365  
1366 IPv6 addresses can be specified by enclosing addresses in square brackets.
1367  
1368 If either argument contains a \'/\' in it, that argument will be interpreted as a
1369 Unix-domain socket (on the corresponding host) rather than a TCP port.
1370  
1371 Multiple forwardings may be specified, and additional forwardings can be given
1372 on the command line. Privileged ports can be forwarded only when logging in as
1373 root on the remote machine. Unix domain socket paths may use the tokens
1374 described in the I<TOKENS> section and environment variables as described in
1375 the I<ENVIRONMENT VARIABLES> section.
1376  
1377 If the I<port> argument is 0, the listen port will be dynamically allocated on
1378 the server and reported to the client at run time.
1379  
1380 If the I<bind_address> is not specified, the default is to only bind to
1381 loopback addresses. If the I<bind_address> is \'*\' or an empty string, then the
1382 forwarding is requested to listen on all interfaces. Specifying a remote
1383 I<bind_address> will only succeed if the server\'s B<GatewayPorts> option is
1384 enabled (see sshd_config5).',
1385 'type' => 'list'
1386 },
1387 'RequestTTY',
1388 {
1389 'choice' => [
1390 'auto',
1391 'force',
1392 'no',
1393 'yes'
1394 ],
1395 'description' => 'Specifies whether to request a pseudo-tty for the session. The argument may be
1396 one of: B<no> (never request a TTY), B<yes> (always request a TTY when standard
1397 input is a TTY), B<force> (always request a TTY) or B<auto> (request a TTY when
1398 opening a login session). This option mirrors the -B<t> and -B<T> flags for
1399 L<ssh(1)>.',
1400 'type' => 'leaf',
1401 'value_type' => 'enum'
1402 },
1403 'RequiredRSASize',
1404 {
1405 'description' => 'Specifies the minimum RSA key size (in bits) that L<ssh(1)> will accept. User
1406 authentication keys smaller than this limit will be ignored. Servers that
1407 present host keys smaller than this limit will cause the connection to be
1408 terminated. The default is B<1024> bits. Note that this limit may only be
1409 raised from the default.',
1410 'type' => 'leaf',
1411 'upstream_default' => '1024',
1412 'value_type' => 'integer'
1413 },
1414 'RevokedHostKeys',
1415 {
1416 'description' => 'Specifies revoked host public keys. Keys listed in this file will be refused
1417 for host authentication. Note that if this file does not exist or is not
1418 readable, then host authentication will be refused for all hosts. Keys may be
1419 specified as a text file, listing one public key per line, or as an OpenSSH Key
1420 Revocation List (KRL) as generated by ssh-keygen1. For more information on
1421 KRLs, see the KEY REVOCATION LISTS section in ssh-keygen1. Arguments to
1422 B<RevokedHostKeys> may use the tilde syntax to refer to a user\'s home
1423 directory, the tokens described in the I<TOKENS> section and environment
1424 variables as described in the I<ENVIRONMENT VARIABLES> section.',
1425 'type' => 'leaf',
1426 'value_type' => 'uniline'
1427 },
1428 'SecurityKeyProvider',
1429 {
1430 'description' => 'Specifies a path to a library that will be used when loading any FIDO
1431 authenticator-hosted keys, overriding the default of using the built-in USB HID
1432 support.
1433  
1434 If the specified value begins with a \'$\' character, then it will be treated as
1435 an environment variable containing the path to the library.',
1436 'type' => 'leaf',
1437 'value_type' => 'uniline'
1438 },
1439 'SendEnv',
1440 {
1441 'cargo' => {
1442 'type' => 'leaf',
1443 'value_type' => 'uniline'
1444 },
1445 'description' => 'Specifies what variables from the local L<environ(7)> should be sent to the
1446 server. The server must also support it, and the server must be configured to
1447 accept these environment variables. Note that the B<TERM> environment variable
1448 is always sent whenever a pseudo-terminal is requested as it is required by the
1449 protocol. Refer to B<AcceptEnv> in sshd_config5 for how to configure the
1450 server. Variables are specified by name, which may contain wildcard characters.
1451 Multiple environment variables may be separated by whitespace or spread across
1452 multiple B<SendEnv> directives.
1453  
1454 See I<PATTERNS> for more information on patterns.
1455  
1456 It is possible to clear previously set B<SendEnv> variable names by prefixing
1457 patterns with - The default is not to send any environment variables.',
1458 'type' => 'list'
1459 },
1460 'ServerAliveCountMax',
1461 {
1462 'description' => 'Sets the number of server alive messages (see below) which may be sent without
1463 L<ssh(1)> receiving any messages back from the server. If this threshold is
1464 reached while server alive messages are being sent, ssh will disconnect from
1465 the server, terminating the session. It is important to note that the use of
1466 server alive messages is very different from B<TCPKeepAlive> (below). The
1467 server alive messages are sent through the encrypted channel and therefore will
1468 not be spoofable. The TCP keepalive option enabled by B<TCPKeepAlive> is
1469 spoofable. The server alive mechanism is valuable when the client or server
1470 depend on knowing when a connection has become unresponsive.
1471  
1472 The default value is 3. If, for example, B<ServerAliveInterval> (see below) is
1473 set to 15 and B<ServerAliveCountMax> is left at the default, if the server
1474 becomes unresponsive, ssh will disconnect after approximately 45 seconds.',
1475 'type' => 'leaf',
1476 'upstream_default' => '3',
1477 'value_type' => 'integer'
1478 },
1479 'ServerAliveInterval',
1480 {
1481 'description' => 'Sets a timeout interval in seconds after which if no data has been received
1482 from the server, L<ssh(1)> will send a message through the encrypted channel to
1483 request a response from the server. The default is 0, indicating that these
1484 messages will not be sent to the server, or 300 if the B<BatchMode> option is
1485 set (Debian-specific). B<ProtocolKeepAlives> is a Debian-specific compatibility
1486 alias for this option.',
1487 'type' => 'leaf',
1488 'upstream_default' => '0',
1489 'value_type' => 'integer'
1490 },
1491 'SessionType',
1492 {
1493 'choice' => [
1494 'default',
1495 'none',
1496 'subsystem'
1497 ],
1498 'description' => 'May be used to either request invocation of a subsystem on the remote system,
1499 or to prevent the execution of a remote command at all. The latter is useful
1500 for just forwarding ports. The argument to this keyword must be B<none> (same
1501 as the -B<N> option), B<subsystem> (same as the -B<s> option) or B<default>
1502 (shell or command execution).',
1503 'type' => 'leaf',
1504 'value_type' => 'enum'
1505 },
1506 'SetEnv',
1507 {
1508 'description' => 'Directly specify one or more environment variables and their contents to be
1509 sent to the server in the form \'\'NAME=VALUE\'\' Similarly to B<SendEnv> with the
1510 exception of the B<TERM> variable, the server must be prepared to accept the
1511 environment variable.
1512  
1513 The \'\'VALUE\'\' may use the tokens described in the I<TOKENS> section and
1514 environment variables as described in the I<ENVIRONMENT VARIABLES> section.',
1515 'type' => 'leaf',
1516 'value_type' => 'uniline'
1517 },
1518 'StdinNull',
1519 {
1520 'description' => 'Redirects stdin from /dev/null (actually, prevents reading from stdin). Either
1521 this or the equivalent -B<n> option must be used when B<ssh> is run in the
1522 background. The argument to this keyword must be B<yes> (same as the -B<n>
1523 option) or B<no> (the default).',
1524 'type' => 'leaf',
1525 'upstream_default' => 'no',
1526 'value_type' => 'boolean',
1527 'write_as' => [
1528 'no',
1529 'yes'
1530 ]
1531 },
1532 'StreamLocalBindMask',
1533 {
1534 'description' => 'Sets the octal file creation mode mask (umask) used when creating a Unix-domain
1535 socket file for local or remote port forwarding. This option is only used for
1536 port forwarding to a Unix-domain socket file.
1537  
1538 The default value is 0177, which creates a Unix-domain socket file that is
1539 readable and writable only by the owner. Note that not all operating systems
1540 honor the file mode on Unix-domain socket files.',
1541 'type' => 'leaf',
1542 'value_type' => 'uniline'
1543 },
1544 'StreamLocalBindUnlink',
1545 {
1546 'description' => 'Specifies whether to remove an existing Unix-domain socket file for local or
1547 remote port forwarding before creating a new one. If the socket file already
1548 exists and B<StreamLocalBindUnlink> is not enabled, B<ssh> will be unable to
1549 forward the port to the Unix-domain socket file. This option is only used for
1550 port forwarding to a Unix-domain socket file.
1551  
1552 The argument must be B<yes> or B<no> (the default).',
1553 'type' => 'leaf',
1554 'upstream_default' => 'no',
1555 'value_type' => 'boolean',
1556 'write_as' => [
1557 'no',
1558 'yes'
1559 ]
1560 },
1561 'StrictHostKeyChecking',
1562 {
1563 'choice' => [
1564 'yes',
1565 'accept-new',
1566 'no',
1567 'off',
1568 'ask'
1569 ],
1570 'description' => 'If this flag is set to B<yes> L<ssh(1)> will never automatically add host keys
1571 to the ~/.ssh/known_hosts file, and refuses to connect to hosts whose host key
1572 has changed. This provides maximum protection against man-in-the-middle (MITM)
1573 attacks, though it can be annoying when the /etc/ssh/ssh_known_hosts file is
1574 poorly maintained or when connections to new hosts are frequently made. This
1575 option forces the user to manually add all new hosts.
1576  
1577 If this flag is set to B<accept-new> then ssh will automatically add new host
1578 keys to the user\'s known_hosts file, but will not permit connections to hosts
1579 with changed host keys. If this flag is set to B<no> or B<off> ssh will
1580 automatically add new host keys to the user known hosts files and allow
1581 connections to hosts with changed hostkeys to proceed, subject to some
1582 restrictions. If this flag is set to B<ask> (the default), new host keys will
1583 be added to the user known host files only after the user has confirmed that is
1584 what they really want to do, and ssh will refuse to connect to hosts whose host
1585 key has changed. The host keys of known hosts will be verified automatically in
1586 all cases.',
1587 'type' => 'leaf',
1588 'upstream_default' => 'ask',
1589 'value_type' => 'enum'
1590 },
1591 'SyslogFacility',
1592 {
1593 'choice' => [
1594 'AUTH',
1595 'DAEMON',
1596 'LOCAL0',
1597 'LOCAL1',
1598 'LOCAL2',
1599 'LOCAL3',
1600 'LOCAL4',
1601 'LOCAL5',
1602 'LOCAL6',
1603 'LOCAL7',
1604 'USER'
1605 ],
1606 'description' => 'Gives the facility code that is used when logging messages from L<ssh(1)>. The
1607 possible values are: DAEMON, USER, AUTH, LOCAL0, LOCAL1, LOCAL2, LOCAL3,
1608 LOCAL4, LOCAL5, LOCAL6, LOCAL7. The default is USER.',
1609 'type' => 'leaf',
1610 'upstream_default' => 'USER',
1611 'value_type' => 'enum'
1612 },
1613 'TCPKeepAlive',
1614 {
1615 'description' => 'Specifies whether the system should send TCP keepalive messages to the other
1616 side. If they are sent, death of the connection or crash of one of the machines
1617 will be properly noticed. This option only uses TCP keepalives (as opposed to
1618 using ssh level keepalives), so takes a long time to notice when the connection
1619 dies. As such, you probably want the B<ServerAliveInterval> option as well.
1620 However, this means that connections will die if the route is down temporarily,
1621 and some people find it annoying.
1622  
1623 The default is B<yes> (to send TCP keepalive messages), and the client will
1624 notice if the network goes down or the remote host dies. This is important in
1625 scripts, and many users want it too.
1626  
1627 To disable TCP keepalive messages, the value should be set to B<no> See also
1628 B<ServerAliveInterval> for protocol-level keepalives.',
1629 'type' => 'leaf',
1630 'upstream_default' => 'yes',
1631 'value_type' => 'boolean',
1632 'write_as' => [
1633 'no',
1634 'yes'
1635 ]
1636 },
1637 'Tag',
1638 {
1639 'description' => 'Specify a configuration tag name that may be later used by a B<Match> directive
1640 to select a block of configuration.',
1641 'type' => 'leaf',
1642 'value_type' => 'uniline'
1643 },
1644 'Tunnel',
1645 {
1646 'choice' => [
1647 'ethernet',
1648 'no',
1649 'point-to-point',
1650 'yes'
1651 ],
1652 'description' => 'Request L<tun(4)> device forwarding between the client and the server. The
1653 argument must be B<yes> B<point-to-point> (layer 3), B<ethernet> (layer 2), or
1654 B<no> (the default). Specifying B<yes> requests the default tunnel mode, which
1655 is B<point-to-point>',
1656 'type' => 'leaf',
1657 'upstream_default' => 'no',
1658 'value_type' => 'enum'
1659 },
1660 'TunnelDevice',
1661 {
1662 'description' => 'Specifies the L<tun(4)> devices to open on the client (I<local_tun> ) and the
1663 server (I<remote_tun> )
1664  
1665 The argument must be I<local_tun > [: I<remote_tun> ] The devices may be
1666 specified by numerical ID or the keyword B<any> which uses the next available
1667 tunnel device. If I<remote_tun> is not specified, it defaults to B<any> The
1668 default is B<any:any>',
1669 'type' => 'leaf',
1670 'upstream_default' => 'any:any',
1671 'value_type' => 'uniline'
1672 },
1673 'UpdateHostKeys',
1674 {
1675 'choice' => [
1676 'ask',
1677 'no',
1678 'yes'
1679 ],
1680 'description' => 'Specifies whether L<ssh(1)> should accept notifications of additional hostkeys
1681 from the server sent after authentication has completed and add them to
1682 B<UserKnownHostsFile> The argument must be B<yes> B<no> or B<ask> This option
1683 allows learning alternate hostkeys for a server and supports graceful key
1684 rotation by allowing a server to send replacement public keys before old ones
1685 are removed.
1686  
1687 Additional hostkeys are only accepted if the key used to authenticate the host
1688 was already trusted or explicitly accepted by the user, the host was
1689 authenticated via B<UserKnownHostsFile> (i.e. not B<GlobalKnownHostsFile> and
1690 the host was authenticated using a plain key and not a certificate.
1691  
1692 B<UpdateHostKeys> is enabled by default if the user has not overridden the
1693 default B<UserKnownHostsFile> setting and has not enabled B<VerifyHostKeyDNS>
1694 otherwise B<UpdateHostKeys> will be set to B<no>
1695  
1696 If B<UpdateHostKeys> is set to B<ask> then the user is asked to confirm the
1697 modifications to the known_hosts file. Confirmation is currently incompatible
1698 with B<ControlPersist> and will be disabled if it is enabled.
1699  
1700 Presently, only L<sshd(8)> from OpenSSH 6.8 and greater support the Qq
1701 hostkeys@openssh.com protocol extension used to inform the client of all the
1702 server\'s hostkeys.',
1703 'type' => 'leaf',
1704 'value_type' => 'enum'
1705 },
1706 'User',
1707 {
1708 'description' => 'Specifies the user to log in as. This can be useful when a different user name
1709 is used on different machines. This saves the trouble of having to remember to
1710 give the user name on the command line. Arguments to B<User> may use the tokens
1711 described in the I<TOKENS> section (with the exception of %r and %C) and
1712 environment variables as described in the I<ENVIRONMENT VARIABLES> section.',
1713 'type' => 'leaf',
1714 'value_type' => 'uniline'
1715 },
1716 'UserKnownHostsFile',
1717 {
1718 'cargo' => {
1719 'type' => 'leaf',
1720 'value_type' => 'uniline'
1721 },
1722 'description' => 'Specifies one or more files to use for the user host key database, separated by
1723 whitespace. Each filename may use tilde notation to refer to the user\'s home
1724 directory, the tokens described in the I<TOKENS> section and environment
1725 variables as described in the I<ENVIRONMENT VARIABLES> section. A value of
1726 B<none> causes L<ssh(1)> to ignore any user-specific known hosts files. The
1727 default is ~/.ssh/known_hosts ~/.ssh/known_hosts2',
1728 'type' => 'list'
1729 },
1730 'VerifyHostKeyDNS',
1731 {
1732 'choice' => [
1733 'ask',
1734 'no',
1735 'yes'
1736 ],
1737 'description' => 'Specifies whether to verify the remote key using DNS and SSHFP resource
1738 records. If this option is set to B<yes> the client will implicitly trust keys
1739 that match a secure fingerprint from DNS. Insecure fingerprints will be handled
1740 as if this option was set to B<ask> If this option is set to B<ask> information
1741 on fingerprint match will be displayed, but the user will still need to confirm
1742 new host keys according to the B<StrictHostKeyChecking> option. The default is
1743 B<no>
1744  
1745 See also I<VERIFYING HOST KEYS> in L<ssh(1)>.',
1746 'type' => 'leaf',
1747 'upstream_default' => 'no',
1748 'value_type' => 'enum'
1749 },
1750 'VersionAddendum',
1751 {
1752 'description' => 'Optionally specifies additional text to append to the SSH protocol banner sent
1753 by the client upon connection. The default is B<none>',
1754 'type' => 'leaf',
1755 'value_type' => 'uniline'
1756 },
1757 'VisualHostKey',
1758 {
1759 'description' => 'If this flag is set to B<yes> an ASCII art representation of the remote host
1760 key fingerprint is printed in addition to the fingerprint string at login and
1761 for unknown host keys. If this flag is set to B<no> (the default), no
1762 fingerprint strings are printed at login and only the fingerprint string will
1763 be printed for unknown host keys.',
1764 'type' => 'leaf',
1765 'upstream_default' => 'no',
1766 'value_type' => 'uniline'
1767 },
1768 'WarnWeakCrypto',
1769 {
1770 'description' => 'controls whether the user is warned when the cryptographic algorithms
1771 negotiated for the connection are weak or otherwise recommended against.
1772 Warnings may be disabled by turning off a specific warning or by disabling all
1773 warnings. Warnings about connections that don\'t use a post-quantum key exchange
1774 may be disabled using the B<no-pq-kex> flag. B<no> will disable all warnings.
1775 The default, equivalent to B<yes> is to enable all warnings.',
1776 'type' => 'leaf',
1777 'value_type' => 'uniline'
1778 },
1779 'XAuthLocation',
1780 {
1781 'description' => 'Specifies the full pathname of the L<xauth(1)> program. The default is
1782 /usr/bin/xauth',
1783 'type' => 'leaf',
1784 'upstream_default' => '/usr/bin/xauth',
1785 'value_type' => 'uniline'
1786 },
1787 'FallBackToRsh',
1788 {
1789 'description' => 'This parameter is now ignored by Ssh',
1790 'status' => 'deprecated',
1791 'type' => 'leaf',
1792 'value_type' => 'uniline'
1793 },
1794 'HostbasedKeyTypes',
1795 {
1796 'description' => 'This parameter is now ignored by Ssh',
1797 'status' => 'deprecated',
1798 'type' => 'leaf',
1799 'value_type' => 'uniline'
1800 },
1801 'PubkeyAcceptedKeyTypes',
1802 {
1803 'description' => 'This parameter is now ignored by Ssh',
1804 'status' => 'deprecated',
1805 'type' => 'leaf',
1806 'value_type' => 'uniline'
1807 },
1808 'UseRsh',
1809 {
1810 'description' => 'This parameter is now ignored by Ssh',
1811 'status' => 'deprecated',
1812 'type' => 'leaf',
1813 'value_type' => 'uniline'
1814 }
1815 ],
1816 'generated_by' => 'parse-man.pl from ssh_system 10.2p1 doc',
1817 'license' => 'LGPL2',
1818 'name' => 'Ssh::HostElement'
1819 }
1820 ]
1821 ;
1822  
« models/Ssh.pl ↑ Summary models/Ssh/PortForward.pl »