line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# |
2
|
|
|
|
|
|
|
# This file is part of Config-Model-OpenSsh |
3
|
|
|
|
|
|
|
# |
4
|
|
|
|
|
|
|
# This software is Copyright (c) 2008-2022 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
|
|
|
2
|
|
68198
|
use strict; |
|
2
|
|
|
1
|
|
4
|
|
|
2
|
|
|
|
|
79
|
|
|
1
|
|
|
|
|
3257
|
|
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
22
|
|
11
|
2
|
|
|
2
|
|
33
|
use warnings; |
|
2
|
|
|
1
|
|
4
|
|
|
2
|
|
|
|
|
280
|
|
|
1
|
|
|
|
|
5
|
|
|
1
|
|
|
|
|
476
|
|
|
1
|
|
|
|
|
156
|
|
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
return [ |
14
|
|
|
|
|
|
|
{ |
15
|
|
|
|
|
|
|
'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
|
|
|
|
|
|
|
'Host', |
29
|
|
|
|
|
|
|
{ |
30
|
|
|
|
|
|
|
'cargo' => { |
31
|
|
|
|
|
|
|
'config_class_name' => 'Ssh::HostElement', |
32
|
|
|
|
|
|
|
'type' => 'node' |
33
|
|
|
|
|
|
|
}, |
34
|
|
|
|
|
|
|
'description' => 'Restricts the following declarations (up to the next B<Host> or B<Match> |
35
|
|
|
|
|
|
|
keyword) to be only for those hosts that match one of the patterns given after |
36
|
|
|
|
|
|
|
the keyword. If more than one pattern is provided, they should be separated by |
37
|
|
|
|
|
|
|
whitespace. A single \'*\' as a pattern can be used to provide global defaults |
38
|
|
|
|
|
|
|
for all hosts. The host is usually the I<hostname> argument given on the |
39
|
|
|
|
|
|
|
command line (see the B<CanonicalizeHostname> keyword for exceptions). |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
A pattern entry may be negated by prefixing it with an exclamation mark (\'!\' ) |
42
|
|
|
|
|
|
|
If a negated entry is matched, then the B<Host> entry is ignored, regardless of |
43
|
|
|
|
|
|
|
whether any other patterns on the line match. Negated matches are therefore |
44
|
|
|
|
|
|
|
useful to provide exceptions for wildcard matches. |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
See I<PATTERNS> for more information on patterns.', |
47
|
|
|
|
|
|
|
'index_type' => 'string', |
48
|
|
|
|
|
|
|
'ordered' => '1', |
49
|
|
|
|
|
|
|
'type' => 'hash' |
50
|
|
|
|
|
|
|
}, |
51
|
|
|
|
|
|
|
'Match', |
52
|
|
|
|
|
|
|
{ |
53
|
|
|
|
|
|
|
'cargo' => { |
54
|
|
|
|
|
|
|
'config_class_name' => 'Ssh::HostElement', |
55
|
|
|
|
|
|
|
'type' => 'node' |
56
|
|
|
|
|
|
|
}, |
57
|
|
|
|
|
|
|
'description' => 'Restricts the following declarations (up to the next B<Host> or B<Match> |
58
|
|
|
|
|
|
|
keyword) to be used only when the conditions following the B<Match> keyword are |
59
|
|
|
|
|
|
|
satisfied. Match conditions are specified using one or more criteria or the |
60
|
|
|
|
|
|
|
single token B<all> which always matches. The available criteria keywords are: |
61
|
|
|
|
|
|
|
B<canonical> B<final> B<exec> B<localnetwork> B<host> B<originalhost> B<Tag> |
62
|
|
|
|
|
|
|
B<user> and B<localuser> The B<all> criteria must appear alone or immediately |
63
|
|
|
|
|
|
|
after B<canonical> or B<final> Other criteria may be combined arbitrarily. All |
64
|
|
|
|
|
|
|
criteria but B<all> B<canonical> and B<final> require an argument. Criteria may |
65
|
|
|
|
|
|
|
be negated by prepending an exclamation mark (\'!\' ) |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
The B<canonical> keyword matches only when the configuration file is being |
68
|
|
|
|
|
|
|
re-parsed after hostname canonicalization (see the B<CanonicalizeHostname> |
69
|
|
|
|
|
|
|
option). This may be useful to specify conditions that work with canonical host |
70
|
|
|
|
|
|
|
names only. |
71
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
The B<final> keyword requests that the configuration be re-parsed (regardless |
73
|
|
|
|
|
|
|
of whether B<CanonicalizeHostname> is enabled), and matches only during this |
74
|
|
|
|
|
|
|
final pass. If B<CanonicalizeHostname> is enabled, then B<canonical> and |
75
|
|
|
|
|
|
|
B<final> match during the same pass. |
76
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
The B<exec> keyword executes the specified command under the user\'s shell. If |
78
|
|
|
|
|
|
|
the command returns a zero exit status then the condition is considered true. |
79
|
|
|
|
|
|
|
Commands containing whitespace characters must be quoted. Arguments to B<exec> |
80
|
|
|
|
|
|
|
accept the tokens described in the I<TOKENS> section. |
81
|
|
|
|
|
|
|
|
82
|
|
|
|
|
|
|
The B<localnetwork> keyword matches the addresses of active local network |
83
|
|
|
|
|
|
|
interfaces against the supplied list of networks in CIDR format. This may be |
84
|
|
|
|
|
|
|
convenient for varying the effective configuration on devices that roam between |
85
|
|
|
|
|
|
|
networks. Note that network address is not a trustworthy criteria in many |
86
|
|
|
|
|
|
|
situations (e.g. when the network is automatically configured using DHCP) and |
87
|
|
|
|
|
|
|
so caution should be applied if using it to control security-sensitive |
88
|
|
|
|
|
|
|
configuration. |
89
|
|
|
|
|
|
|
|
90
|
|
|
|
|
|
|
The other keywords\' criteria must be single entries or comma-separated lists |
91
|
|
|
|
|
|
|
and may use the wildcard and negation operators described in the I<PATTERNS> |
92
|
|
|
|
|
|
|
section. The criteria for the B<host> keyword are matched against the target |
93
|
|
|
|
|
|
|
hostname, after any substitution by the B<Hostname> or B<CanonicalizeHostname> |
94
|
|
|
|
|
|
|
options. The B<originalhost> keyword matches against the hostname as it was |
95
|
|
|
|
|
|
|
specified on the command-line. The B<tagged> keyword matches a tag name |
96
|
|
|
|
|
|
|
specified by a prior B<Tag> directive or on the L<ssh(1)> command-line using |
97
|
|
|
|
|
|
|
the -B<P> flag. The B<user> keyword matches against the target username on the |
98
|
|
|
|
|
|
|
remote host. The B<localuser> keyword matches against the name of the local |
99
|
|
|
|
|
|
|
user running L<ssh(1)> (this keyword may be useful in system-wide B<ssh_config> |
100
|
|
|
|
|
|
|
files).', |
101
|
|
|
|
|
|
|
'index_type' => 'string', |
102
|
|
|
|
|
|
|
'ordered' => '1', |
103
|
|
|
|
|
|
|
'type' => 'hash' |
104
|
|
|
|
|
|
|
} |
105
|
|
|
|
|
|
|
], |
106
|
|
|
|
|
|
|
'generated_by' => 'parse-man.pl from ssh_system 9.4p1 doc', |
107
|
|
|
|
|
|
|
'include' => [ |
108
|
|
|
|
|
|
|
'Ssh::HostElement' |
109
|
|
|
|
|
|
|
], |
110
|
|
|
|
|
|
|
'include_after' => 'Host', |
111
|
|
|
|
|
|
|
'license' => 'LGPL2', |
112
|
|
|
|
|
|
|
'name' => 'Ssh', |
113
|
|
|
|
|
|
|
'rw_config' => { |
114
|
|
|
|
|
|
|
'auto_create' => '1', |
115
|
|
|
|
|
|
|
'backend' => 'OpenSsh::Ssh', |
116
|
|
|
|
|
|
|
'config_dir' => '~/.ssh', |
117
|
|
|
|
|
|
|
'file' => 'config' |
118
|
|
|
|
|
|
|
} |
119
|
|
|
|
|
|
|
} |
120
|
|
|
|
|
|
|
] |
121
|
|
|
|
|
|
|
; |
122
|
|
|
|
|
|
|
|