version 1.79, 2006/02/19 20:12:25 |
version 1.80, 2006/02/24 10:25:14 |
|
|
Since the first obtained value for each parameter is used, more |
Since the first obtained value for each parameter is used, more |
host-specific declarations should be given near the beginning of the |
host-specific declarations should be given near the beginning of the |
file, and general defaults at the end. |
file, and general defaults at the end. |
|
.Sh PATTERNS |
|
A |
|
.Em pattern |
|
consists of zero or more non-whitespace characters, |
|
.Sq * |
|
(a wildcard that matches zero or more characters), |
|
or |
|
.Sq ?\& |
|
(a wildcard that matches exactly one character). |
|
For example, to specify a set of declarations for any host in the |
|
.Dq .co.uk |
|
set of domains, |
|
the following pattern could be used: |
.Pp |
.Pp |
|
.Dl Host *.co.uk |
|
.Pp |
|
The following pattern |
|
would match any host in the 192.168.0.[0-9] network range: |
|
.Pp |
|
.Dl Host 192.168.0.? |
|
.Pp |
|
A |
|
.Em pattern-list |
|
is a comma-separated list of patterns. |
|
Patterns within pattern-lists may be negated |
|
by preceding them with an exclamation mark |
|
.Pq Sq !\& . |
|
For example, |
|
to allow a key to be used from anywhere within an organisation |
|
except from the |
|
.Dq dialup |
|
pool, |
|
the following entry (in authorized_keys) could be used: |
|
.Pp |
|
.Dl from=\&"!*.dialup.example.com,*.example.com\&" |
|
.Sh FILE FORMAT |
The configuration file has the following format: |
The configuration file has the following format: |
.Pp |
.Pp |
Empty lines and lines starting with |
Empty lines and lines starting with |
.Ql # |
.Ql # |
are comments. |
are comments. |
.Pp |
|
Otherwise a line is of the format |
Otherwise a line is of the format |
.Dq keyword arguments . |
.Dq keyword arguments . |
Configuration options may be separated by whitespace or |
Configuration options may be separated by whitespace or |
|
|
.Cm Host |
.Cm Host |
keyword) to be only for those hosts that match one of the patterns |
keyword) to be only for those hosts that match one of the patterns |
given after the keyword. |
given after the keyword. |
.Ql \&* |
|
and |
|
.Ql \&? |
|
can be used as wildcards in the |
|
patterns. |
|
A single |
A single |
.Ql \&* |
.Ql \&* |
as a pattern can be used to provide global |
as a pattern can be used to provide global |
defaults for all hosts. |
defaults for all hosts. |
|
See |
|
.Sx PATTERNS |
|
for more information on patterns. |
The host is the |
The host is the |
.Ar hostname |
.Ar hostname |
argument given on the command line (i.e., the name is not converted to |
argument given on the command line (i.e., the name is not converted to |
|
|
in |
in |
.Xr sshd_config 5 |
.Xr sshd_config 5 |
for how to configure the server. |
for how to configure the server. |
Variables are specified by name, which may contain the wildcard characters |
Variables are specified by name, which may contain wildcard characters. |
.Ql \&* |
See |
and |
.Sx PATTERNS |
.Ql \&? . |
for more information on patterns. |
Multiple environment variables may be separated by whitespace or spread |
Multiple environment variables may be separated by whitespace or spread |
across multiple |
across multiple |
.Cm SendEnv |
.Cm SendEnv |