xref: /freebsd/crypto/openssh/sshd_config.5 (revision 076ad2f836d5f49dc1375f1677335a48fe0d4b82)
1545d5ecaSDag-Erling Smørgrav.\"
2545d5ecaSDag-Erling Smørgrav.\" Author: Tatu Ylonen <ylo@cs.hut.fi>
3545d5ecaSDag-Erling Smørgrav.\" Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
4545d5ecaSDag-Erling Smørgrav.\"                    All rights reserved
5545d5ecaSDag-Erling Smørgrav.\"
6545d5ecaSDag-Erling Smørgrav.\" As far as I am concerned, the code I have written for this software
7545d5ecaSDag-Erling Smørgrav.\" can be used freely for any purpose.  Any derived versions of this
8545d5ecaSDag-Erling Smørgrav.\" software must be clearly marked as such, and if the derived work is
9545d5ecaSDag-Erling Smørgrav.\" incompatible with the protocol description in the RFC file, it must be
10545d5ecaSDag-Erling Smørgrav.\" called by a name other than "ssh" or "Secure Shell".
11545d5ecaSDag-Erling Smørgrav.\"
12545d5ecaSDag-Erling Smørgrav.\" Copyright (c) 1999,2000 Markus Friedl.  All rights reserved.
13545d5ecaSDag-Erling Smørgrav.\" Copyright (c) 1999 Aaron Campbell.  All rights reserved.
14545d5ecaSDag-Erling Smørgrav.\" Copyright (c) 1999 Theo de Raadt.  All rights reserved.
15545d5ecaSDag-Erling Smørgrav.\"
16545d5ecaSDag-Erling Smørgrav.\" Redistribution and use in source and binary forms, with or without
17545d5ecaSDag-Erling Smørgrav.\" modification, are permitted provided that the following conditions
18545d5ecaSDag-Erling Smørgrav.\" are met:
19545d5ecaSDag-Erling Smørgrav.\" 1. Redistributions of source code must retain the above copyright
20545d5ecaSDag-Erling Smørgrav.\"    notice, this list of conditions and the following disclaimer.
21545d5ecaSDag-Erling Smørgrav.\" 2. Redistributions in binary form must reproduce the above copyright
22545d5ecaSDag-Erling Smørgrav.\"    notice, this list of conditions and the following disclaimer in the
23545d5ecaSDag-Erling Smørgrav.\"    documentation and/or other materials provided with the distribution.
24545d5ecaSDag-Erling Smørgrav.\"
25545d5ecaSDag-Erling Smørgrav.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
26545d5ecaSDag-Erling Smørgrav.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
27545d5ecaSDag-Erling Smørgrav.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
28545d5ecaSDag-Erling Smørgrav.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
29545d5ecaSDag-Erling Smørgrav.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
30545d5ecaSDag-Erling Smørgrav.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
31545d5ecaSDag-Erling Smørgrav.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
32545d5ecaSDag-Erling Smørgrav.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
33545d5ecaSDag-Erling Smørgrav.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
34545d5ecaSDag-Erling Smørgrav.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
35545d5ecaSDag-Erling Smørgrav.\"
36*076ad2f8SDag-Erling Smørgrav.\" $OpenBSD: sshd_config.5,v 1.227 2016/07/19 12:59:16 jmc Exp $
3735d4ccfbSDag-Erling Smørgrav.\" $FreeBSD$
38*076ad2f8SDag-Erling Smørgrav.Dd $Mdocdate: July 19 2016 $
39545d5ecaSDag-Erling Smørgrav.Dt SSHD_CONFIG 5
40545d5ecaSDag-Erling Smørgrav.Os
41545d5ecaSDag-Erling Smørgrav.Sh NAME
42545d5ecaSDag-Erling Smørgrav.Nm sshd_config
43545d5ecaSDag-Erling Smørgrav.Nd OpenSSH SSH daemon configuration file
44545d5ecaSDag-Erling Smørgrav.Sh SYNOPSIS
45d4af9e69SDag-Erling Smørgrav.Nm /etc/ssh/sshd_config
46545d5ecaSDag-Erling Smørgrav.Sh DESCRIPTION
47333ee039SDag-Erling Smørgrav.Xr sshd 8
48545d5ecaSDag-Erling Smørgravreads configuration data from
49545d5ecaSDag-Erling Smørgrav.Pa /etc/ssh/sshd_config
50545d5ecaSDag-Erling Smørgrav(or the file specified with
51545d5ecaSDag-Erling Smørgrav.Fl f
52545d5ecaSDag-Erling Smørgravon the command line).
53545d5ecaSDag-Erling SmørgravThe file contains keyword-argument pairs, one per line.
54545d5ecaSDag-Erling SmørgravLines starting with
55545d5ecaSDag-Erling Smørgrav.Ql #
56545d5ecaSDag-Erling Smørgravand empty lines are interpreted as comments.
57333ee039SDag-Erling SmørgravArguments may optionally be enclosed in double quotes
58333ee039SDag-Erling Smørgrav.Pq \&"
59333ee039SDag-Erling Smørgravin order to represent arguments containing spaces.
60545d5ecaSDag-Erling Smørgrav.Pp
61545d5ecaSDag-Erling SmørgravThe possible
62545d5ecaSDag-Erling Smørgravkeywords and their meanings are as follows (note that
63545d5ecaSDag-Erling Smørgravkeywords are case-insensitive and arguments are case-sensitive):
64545d5ecaSDag-Erling Smørgrav.Bl -tag -width Ds
6521e764dfSDag-Erling Smørgrav.It Cm AcceptEnv
6621e764dfSDag-Erling SmørgravSpecifies what environment variables sent by the client will be copied into
6721e764dfSDag-Erling Smørgravthe session's
6821e764dfSDag-Erling Smørgrav.Xr environ 7 .
6921e764dfSDag-Erling SmørgravSee
7021e764dfSDag-Erling Smørgrav.Cm SendEnv
7121e764dfSDag-Erling Smørgravin
7221e764dfSDag-Erling Smørgrav.Xr ssh_config 5
7321e764dfSDag-Erling Smørgravfor how to configure the client.
74acc1a9efSDag-Erling SmørgravThe
75557f75e5SDag-Erling Smørgrav.Ev TERM
76557f75e5SDag-Erling Smørgravenvironment variable is always sent whenever the client
77557f75e5SDag-Erling Smørgravrequests a pseudo-terminal as it is required by the protocol.
7821e764dfSDag-Erling SmørgravVariables are specified by name, which may contain the wildcard characters
79333ee039SDag-Erling Smørgrav.Ql *
8021e764dfSDag-Erling Smørgravand
8121e764dfSDag-Erling Smørgrav.Ql \&? .
8221e764dfSDag-Erling SmørgravMultiple environment variables may be separated by whitespace or spread
8321e764dfSDag-Erling Smørgravacross multiple
8421e764dfSDag-Erling Smørgrav.Cm AcceptEnv
8521e764dfSDag-Erling Smørgravdirectives.
8621e764dfSDag-Erling SmørgravBe warned that some environment variables could be used to bypass restricted
8721e764dfSDag-Erling Smørgravuser environments.
8821e764dfSDag-Erling SmørgravFor this reason, care should be taken in the use of this directive.
8921e764dfSDag-Erling SmørgravThe default is not to accept any environment variables.
90aa49c926SDag-Erling Smørgrav.It Cm AddressFamily
91aa49c926SDag-Erling SmørgravSpecifies which address family should be used by
92333ee039SDag-Erling Smørgrav.Xr sshd 8 .
93aa49c926SDag-Erling SmørgravValid arguments are
94aa49c926SDag-Erling Smørgrav.Dq any ,
95aa49c926SDag-Erling Smørgrav.Dq inet
96333ee039SDag-Erling Smørgrav(use IPv4 only), or
97aa49c926SDag-Erling Smørgrav.Dq inet6
98aa49c926SDag-Erling Smørgrav(use IPv6 only).
99aa49c926SDag-Erling SmørgravThe default is
100aa49c926SDag-Erling Smørgrav.Dq any .
101d4af9e69SDag-Erling Smørgrav.It Cm AllowAgentForwarding
102d4af9e69SDag-Erling SmørgravSpecifies whether
103d4af9e69SDag-Erling Smørgrav.Xr ssh-agent 1
104d4af9e69SDag-Erling Smørgravforwarding is permitted.
105d4af9e69SDag-Erling SmørgravThe default is
106d4af9e69SDag-Erling Smørgrav.Dq yes .
107d4af9e69SDag-Erling SmørgravNote that disabling agent forwarding does not improve security
108d4af9e69SDag-Erling Smørgravunless users are also denied shell access, as they can always install
109d4af9e69SDag-Erling Smørgravtheir own forwarders.
110545d5ecaSDag-Erling Smørgrav.It Cm AllowGroups
111545d5ecaSDag-Erling SmørgravThis keyword can be followed by a list of group name patterns, separated
112545d5ecaSDag-Erling Smørgravby spaces.
113545d5ecaSDag-Erling SmørgravIf specified, login is allowed only for users whose primary
114545d5ecaSDag-Erling Smørgravgroup or supplementary group list matches one of the patterns.
115545d5ecaSDag-Erling SmørgravOnly group names are valid; a numerical group ID is not recognized.
116545d5ecaSDag-Erling SmørgravBy default, login is allowed for all groups.
117333ee039SDag-Erling SmørgravThe allow/deny directives are processed in the following order:
118333ee039SDag-Erling Smørgrav.Cm DenyUsers ,
119333ee039SDag-Erling Smørgrav.Cm AllowUsers ,
120333ee039SDag-Erling Smørgrav.Cm DenyGroups ,
121333ee039SDag-Erling Smørgravand finally
122333ee039SDag-Erling Smørgrav.Cm AllowGroups .
123333ee039SDag-Erling Smørgrav.Pp
124e4a9863fSDag-Erling SmørgravSee PATTERNS in
125333ee039SDag-Erling Smørgrav.Xr ssh_config 5
126333ee039SDag-Erling Smørgravfor more information on patterns.
127545d5ecaSDag-Erling Smørgrav.It Cm AllowTcpForwarding
128545d5ecaSDag-Erling SmørgravSpecifies whether TCP forwarding is permitted.
1296888a9beSDag-Erling SmørgravThe available options are
1306888a9beSDag-Erling Smørgrav.Dq yes
1316888a9beSDag-Erling Smørgravor
1326888a9beSDag-Erling Smørgrav.Dq all
1336888a9beSDag-Erling Smørgravto allow TCP forwarding,
1346888a9beSDag-Erling Smørgrav.Dq no
1356888a9beSDag-Erling Smørgravto prevent all TCP forwarding,
1366888a9beSDag-Erling Smørgrav.Dq local
1376888a9beSDag-Erling Smørgravto allow local (from the perspective of
1386888a9beSDag-Erling Smørgrav.Xr ssh 1 )
1396888a9beSDag-Erling Smørgravforwarding only or
1406888a9beSDag-Erling Smørgrav.Dq remote
1416888a9beSDag-Erling Smørgravto allow remote forwarding only.
142545d5ecaSDag-Erling SmørgravThe default is
143545d5ecaSDag-Erling Smørgrav.Dq yes .
144545d5ecaSDag-Erling SmørgravNote that disabling TCP forwarding does not improve security unless
145545d5ecaSDag-Erling Smørgravusers are also denied shell access, as they can always install their
146545d5ecaSDag-Erling Smørgravown forwarders.
147a0ee8cc6SDag-Erling Smørgrav.It Cm AllowStreamLocalForwarding
148a0ee8cc6SDag-Erling SmørgravSpecifies whether StreamLocal (Unix-domain socket) forwarding is permitted.
149a0ee8cc6SDag-Erling SmørgravThe available options are
150a0ee8cc6SDag-Erling Smørgrav.Dq yes
151a0ee8cc6SDag-Erling Smørgravor
152a0ee8cc6SDag-Erling Smørgrav.Dq all
153a0ee8cc6SDag-Erling Smørgravto allow StreamLocal forwarding,
154a0ee8cc6SDag-Erling Smørgrav.Dq no
155a0ee8cc6SDag-Erling Smørgravto prevent all StreamLocal forwarding,
156a0ee8cc6SDag-Erling Smørgrav.Dq local
157a0ee8cc6SDag-Erling Smørgravto allow local (from the perspective of
158a0ee8cc6SDag-Erling Smørgrav.Xr ssh 1 )
159a0ee8cc6SDag-Erling Smørgravforwarding only or
160a0ee8cc6SDag-Erling Smørgrav.Dq remote
161a0ee8cc6SDag-Erling Smørgravto allow remote forwarding only.
162a0ee8cc6SDag-Erling SmørgravThe default is
163a0ee8cc6SDag-Erling Smørgrav.Dq yes .
164a0ee8cc6SDag-Erling SmørgravNote that disabling StreamLocal forwarding does not improve security unless
165a0ee8cc6SDag-Erling Smørgravusers are also denied shell access, as they can always install their
166a0ee8cc6SDag-Erling Smørgravown forwarders.
167545d5ecaSDag-Erling Smørgrav.It Cm AllowUsers
168545d5ecaSDag-Erling SmørgravThis keyword can be followed by a list of user name patterns, separated
169545d5ecaSDag-Erling Smørgravby spaces.
170e73e9afaSDag-Erling SmørgravIf specified, login is allowed only for user names that
171545d5ecaSDag-Erling Smørgravmatch one of the patterns.
172545d5ecaSDag-Erling SmørgravOnly user names are valid; a numerical user ID is not recognized.
173545d5ecaSDag-Erling SmørgravBy default, login is allowed for all users.
174545d5ecaSDag-Erling SmørgravIf the pattern takes the form USER@HOST then USER and HOST
175545d5ecaSDag-Erling Smørgravare separately checked, restricting logins to particular
176545d5ecaSDag-Erling Smørgravusers from particular hosts.
177*076ad2f8SDag-Erling SmørgravHOST criteria may additionally contain addresses to match in CIDR
178*076ad2f8SDag-Erling Smørgravaddress/masklen format.
179333ee039SDag-Erling SmørgravThe allow/deny directives are processed in the following order:
180333ee039SDag-Erling Smørgrav.Cm DenyUsers ,
181333ee039SDag-Erling Smørgrav.Cm AllowUsers ,
182333ee039SDag-Erling Smørgrav.Cm DenyGroups ,
183333ee039SDag-Erling Smørgravand finally
184333ee039SDag-Erling Smørgrav.Cm AllowGroups .
185333ee039SDag-Erling Smørgrav.Pp
186e4a9863fSDag-Erling SmørgravSee PATTERNS in
187333ee039SDag-Erling Smørgrav.Xr ssh_config 5
188333ee039SDag-Erling Smørgravfor more information on patterns.
1896888a9beSDag-Erling Smørgrav.It Cm AuthenticationMethods
1906888a9beSDag-Erling SmørgravSpecifies the authentication methods that must be successfully completed
1916888a9beSDag-Erling Smørgravfor a user to be granted access.
1926888a9beSDag-Erling SmørgravThis option must be followed by one or more comma-separated lists of
193*076ad2f8SDag-Erling Smørgravauthentication method names, or by the single string
194*076ad2f8SDag-Erling Smørgrav.Dq any
195*076ad2f8SDag-Erling Smørgravto indicate the default behaviour of accepting any single authentication
196*076ad2f8SDag-Erling Smørgravmethod.
197*076ad2f8SDag-Erling Smørgravif the default is overridden, then successful authentication requires
198*076ad2f8SDag-Erling Smørgravcompletion of every method in at least one of these lists.
1996888a9beSDag-Erling Smørgrav.Pp
2006888a9beSDag-Erling SmørgravFor example, an argument of
2016888a9beSDag-Erling Smørgrav.Dq publickey,password publickey,keyboard-interactive
2026888a9beSDag-Erling Smørgravwould require the user to complete public key authentication, followed by
2036888a9beSDag-Erling Smørgraveither password or keyboard interactive authentication.
2046888a9beSDag-Erling SmørgravOnly methods that are next in one or more lists are offered at each stage,
2056888a9beSDag-Erling Smørgravso for this example, it would not be possible to attempt password or
2066888a9beSDag-Erling Smørgravkeyboard-interactive authentication before public key.
2076888a9beSDag-Erling Smørgrav.Pp
208e4a9863fSDag-Erling SmørgravFor keyboard interactive authentication it is also possible to
209e4a9863fSDag-Erling Smørgravrestrict authentication to a specific device by appending a
210e4a9863fSDag-Erling Smørgravcolon followed by the device identifier
211e4a9863fSDag-Erling Smørgrav.Dq bsdauth ,
212e4a9863fSDag-Erling Smørgrav.Dq pam ,
213e4a9863fSDag-Erling Smørgravor
214e4a9863fSDag-Erling Smørgrav.Dq skey ,
215e4a9863fSDag-Erling Smørgravdepending on the server configuration.
216e4a9863fSDag-Erling SmørgravFor example,
217e4a9863fSDag-Erling Smørgrav.Dq keyboard-interactive:bsdauth
218e4a9863fSDag-Erling Smørgravwould restrict keyboard interactive authentication to the
219e4a9863fSDag-Erling Smørgrav.Dq bsdauth
220e4a9863fSDag-Erling Smørgravdevice.
221e4a9863fSDag-Erling Smørgrav.Pp
222bc5531deSDag-Erling SmørgravIf the
223bc5531deSDag-Erling Smørgrav.Dq publickey
224bc5531deSDag-Erling Smørgravmethod is listed more than once,
225bc5531deSDag-Erling Smørgrav.Xr sshd 8
226bc5531deSDag-Erling Smørgravverifies that keys that have been used successfully are not reused for
227bc5531deSDag-Erling Smørgravsubsequent authentications.
228bc5531deSDag-Erling SmørgravFor example, an
229bc5531deSDag-Erling Smørgrav.Cm AuthenticationMethods
230bc5531deSDag-Erling Smørgravof
231bc5531deSDag-Erling Smørgrav.Dq publickey,publickey
232bc5531deSDag-Erling Smørgravwill require successful authentication using two different public keys.
233bc5531deSDag-Erling Smørgrav.Pp
234acc1a9efSDag-Erling SmørgravThis option will yield a fatal
2356888a9beSDag-Erling Smørgraverror if enabled if protocol 1 is also enabled.
2366888a9beSDag-Erling SmørgravNote that each authentication method listed should also be explicitly enabled
2376888a9beSDag-Erling Smørgravin the configuration.
238*076ad2f8SDag-Erling SmørgravThe default
239*076ad2f8SDag-Erling Smørgrav.Dq any
240*076ad2f8SDag-Erling Smørgravis not to require multiple authentication; successful completion
2416888a9beSDag-Erling Smørgravof a single authentication method is sufficient.
2426888a9beSDag-Erling Smørgrav.It Cm AuthorizedKeysCommand
2436888a9beSDag-Erling SmørgravSpecifies a program to be used to look up the user's public keys.
244557f75e5SDag-Erling SmørgravThe program must be owned by root, not writable by group or others and
245557f75e5SDag-Erling Smørgravspecified by an absolute path.
246557f75e5SDag-Erling Smørgrav.Pp
247557f75e5SDag-Erling SmørgravArguments to
248557f75e5SDag-Erling Smørgrav.Cm AuthorizedKeysCommand
249557f75e5SDag-Erling Smørgravmay be provided using the following tokens, which will be expanded
250557f75e5SDag-Erling Smørgravat runtime: %% is replaced by a literal '%', %u is replaced by the
251557f75e5SDag-Erling Smørgravusername being authenticated, %h is replaced by the home directory
252557f75e5SDag-Erling Smørgravof the user being authenticated, %t is replaced with the key type
253557f75e5SDag-Erling Smørgravoffered for authentication, %f is replaced with the fingerprint of
254557f75e5SDag-Erling Smørgravthe key, and %k is replaced with the key being offered for authentication.
255557f75e5SDag-Erling SmørgravIf no arguments are specified then the username of the target user
256557f75e5SDag-Erling Smørgravwill be supplied.
257557f75e5SDag-Erling Smørgrav.Pp
258557f75e5SDag-Erling SmørgravThe program should produce on standard output zero or
259e4a9863fSDag-Erling Smørgravmore lines of authorized_keys output (see AUTHORIZED_KEYS in
2606888a9beSDag-Erling Smørgrav.Xr sshd 8 ) .
2616888a9beSDag-Erling SmørgravIf a key supplied by AuthorizedKeysCommand does not successfully authenticate
2626888a9beSDag-Erling Smørgravand authorize the user then public key authentication continues using the usual
2636888a9beSDag-Erling Smørgrav.Cm AuthorizedKeysFile
2646888a9beSDag-Erling Smørgravfiles.
2656888a9beSDag-Erling SmørgravBy default, no AuthorizedKeysCommand is run.
2666888a9beSDag-Erling Smørgrav.It Cm AuthorizedKeysCommandUser
2676888a9beSDag-Erling SmørgravSpecifies the user under whose account the AuthorizedKeysCommand is run.
2686888a9beSDag-Erling SmørgravIt is recommended to use a dedicated user that has no other role on the host
2696888a9beSDag-Erling Smørgravthan running authorized keys commands.
270bc5531deSDag-Erling SmørgravIf
271bc5531deSDag-Erling Smørgrav.Cm AuthorizedKeysCommand
272bc5531deSDag-Erling Smørgravis specified but
273bc5531deSDag-Erling Smørgrav.Cm AuthorizedKeysCommandUser
274bc5531deSDag-Erling Smørgravis not, then
275bc5531deSDag-Erling Smørgrav.Xr sshd 8
276bc5531deSDag-Erling Smørgravwill refuse to start.
277545d5ecaSDag-Erling Smørgrav.It Cm AuthorizedKeysFile
278545d5ecaSDag-Erling SmørgravSpecifies the file that contains the public keys that can be used
279545d5ecaSDag-Erling Smørgravfor user authentication.
280e2f6069cSDag-Erling SmørgravThe format is described in the
281e4a9863fSDag-Erling SmørgravAUTHORIZED_KEYS FILE FORMAT
282e2f6069cSDag-Erling Smørgravsection of
283e2f6069cSDag-Erling Smørgrav.Xr sshd 8 .
284545d5ecaSDag-Erling Smørgrav.Cm AuthorizedKeysFile
285545d5ecaSDag-Erling Smørgravmay contain tokens of the form %T which are substituted during connection
286333ee039SDag-Erling Smørgravsetup.
287cf2b5f3bSDag-Erling SmørgravThe following tokens are defined: %% is replaced by a literal '%',
288333ee039SDag-Erling Smørgrav%h is replaced by the home directory of the user being authenticated, and
289545d5ecaSDag-Erling Smørgrav%u is replaced by the username of that user.
290545d5ecaSDag-Erling SmørgravAfter expansion,
291545d5ecaSDag-Erling Smørgrav.Cm AuthorizedKeysFile
292545d5ecaSDag-Erling Smørgravis taken to be an absolute path or one relative to the user's home
293545d5ecaSDag-Erling Smørgravdirectory.
294e146993eSDag-Erling SmørgravMultiple files may be listed, separated by whitespace.
295acc1a9efSDag-Erling SmørgravAlternately this option may be set to
296acc1a9efSDag-Erling Smørgrav.Dq none
297acc1a9efSDag-Erling Smørgravto skip checking for user keys in files.
298545d5ecaSDag-Erling SmørgravThe default is
299e146993eSDag-Erling Smørgrav.Dq .ssh/authorized_keys .ssh/authorized_keys2 .
300557f75e5SDag-Erling Smørgrav.It Cm AuthorizedPrincipalsCommand
301557f75e5SDag-Erling SmørgravSpecifies a program to be used to generate the list of allowed
302557f75e5SDag-Erling Smørgravcertificate principals as per
303557f75e5SDag-Erling Smørgrav.Cm AuthorizedPrincipalsFile .
304557f75e5SDag-Erling SmørgravThe program must be owned by root, not writable by group or others and
305557f75e5SDag-Erling Smørgravspecified by an absolute path.
306557f75e5SDag-Erling Smørgrav.Pp
307557f75e5SDag-Erling SmørgravArguments to
308557f75e5SDag-Erling Smørgrav.Cm AuthorizedPrincipalsCommand
309557f75e5SDag-Erling Smørgravmay be provided using the following tokens, which will be expanded
310557f75e5SDag-Erling Smørgravat runtime: %% is replaced by a literal '%', %u is replaced by the
311557f75e5SDag-Erling Smørgravusername being authenticated and %h is replaced by the home directory
312557f75e5SDag-Erling Smørgravof the user being authenticated.
313557f75e5SDag-Erling Smørgrav.Pp
314557f75e5SDag-Erling SmørgravThe program should produce on standard output zero or
315557f75e5SDag-Erling Smørgravmore lines of
316557f75e5SDag-Erling Smørgrav.Cm AuthorizedPrincipalsFile
317557f75e5SDag-Erling Smørgravoutput.
318557f75e5SDag-Erling SmørgravIf either
319557f75e5SDag-Erling Smørgrav.Cm AuthorizedPrincipalsCommand
320557f75e5SDag-Erling Smørgravor
321557f75e5SDag-Erling Smørgrav.Cm AuthorizedPrincipalsFile
322557f75e5SDag-Erling Smørgravis specified, then certificates offered by the client for authentication
323557f75e5SDag-Erling Smørgravmust contain a principal that is listed.
324557f75e5SDag-Erling SmørgravBy default, no AuthorizedPrincipalsCommand is run.
325557f75e5SDag-Erling Smørgrav.It Cm AuthorizedPrincipalsCommandUser
326557f75e5SDag-Erling SmørgravSpecifies the user under whose account the AuthorizedPrincipalsCommand is run.
327557f75e5SDag-Erling SmørgravIt is recommended to use a dedicated user that has no other role on the host
328557f75e5SDag-Erling Smørgravthan running authorized principals commands.
329557f75e5SDag-Erling SmørgravIf
330557f75e5SDag-Erling Smørgrav.Cm AuthorizedPrincipalsCommand
331557f75e5SDag-Erling Smørgravis specified but
332557f75e5SDag-Erling Smørgrav.Cm AuthorizedPrincipalsCommandUser
333557f75e5SDag-Erling Smørgravis not, then
334557f75e5SDag-Erling Smørgrav.Xr sshd 8
335557f75e5SDag-Erling Smørgravwill refuse to start.
336e2f6069cSDag-Erling Smørgrav.It Cm AuthorizedPrincipalsFile
337e2f6069cSDag-Erling SmørgravSpecifies a file that lists principal names that are accepted for
338e2f6069cSDag-Erling Smørgravcertificate authentication.
339e2f6069cSDag-Erling SmørgravWhen using certificates signed by a key listed in
340e2f6069cSDag-Erling Smørgrav.Cm TrustedUserCAKeys ,
341e2f6069cSDag-Erling Smørgravthis file lists names, one of which must appear in the certificate for it
342e2f6069cSDag-Erling Smørgravto be accepted for authentication.
343e2f6069cSDag-Erling SmørgravNames are listed one per line preceded by key options (as described
344e4a9863fSDag-Erling Smørgravin AUTHORIZED_KEYS FILE FORMAT in
345e2f6069cSDag-Erling Smørgrav.Xr sshd 8 ) .
346e2f6069cSDag-Erling SmørgravEmpty lines and comments starting with
347e2f6069cSDag-Erling Smørgrav.Ql #
348e2f6069cSDag-Erling Smørgravare ignored.
349e2f6069cSDag-Erling Smørgrav.Pp
350e2f6069cSDag-Erling Smørgrav.Cm AuthorizedPrincipalsFile
351e2f6069cSDag-Erling Smørgravmay contain tokens of the form %T which are substituted during connection
352e2f6069cSDag-Erling Smørgravsetup.
353e2f6069cSDag-Erling SmørgravThe following tokens are defined: %% is replaced by a literal '%',
354e2f6069cSDag-Erling Smørgrav%h is replaced by the home directory of the user being authenticated, and
355e2f6069cSDag-Erling Smørgrav%u is replaced by the username of that user.
356e2f6069cSDag-Erling SmørgravAfter expansion,
357e2f6069cSDag-Erling Smørgrav.Cm AuthorizedPrincipalsFile
358e2f6069cSDag-Erling Smørgravis taken to be an absolute path or one relative to the user's home
359e2f6069cSDag-Erling Smørgravdirectory.
360e2f6069cSDag-Erling Smørgrav.Pp
361462c32cbSDag-Erling SmørgravThe default is
362462c32cbSDag-Erling Smørgrav.Dq none ,
363462c32cbSDag-Erling Smørgravi.e. not to use a principals file \(en in this case, the username
364e2f6069cSDag-Erling Smørgravof the user must appear in a certificate's principals list for it to be
365e2f6069cSDag-Erling Smørgravaccepted.
366e2f6069cSDag-Erling SmørgravNote that
367e2f6069cSDag-Erling Smørgrav.Cm AuthorizedPrincipalsFile
368e2f6069cSDag-Erling Smørgravis only used when authentication proceeds using a CA listed in
369e2f6069cSDag-Erling Smørgrav.Cm TrustedUserCAKeys
370e2f6069cSDag-Erling Smørgravand is not consulted for certification authorities trusted via
371e2f6069cSDag-Erling Smørgrav.Pa ~/.ssh/authorized_keys ,
372e2f6069cSDag-Erling Smørgravthough the
373e2f6069cSDag-Erling Smørgrav.Cm principals=
374e2f6069cSDag-Erling Smørgravkey option offers a similar facility (see
375e2f6069cSDag-Erling Smørgrav.Xr sshd 8
376e2f6069cSDag-Erling Smørgravfor details).
377545d5ecaSDag-Erling Smørgrav.It Cm Banner
378545d5ecaSDag-Erling SmørgravThe contents of the specified file are sent to the remote user before
379545d5ecaSDag-Erling Smørgravauthentication is allowed.
380d4af9e69SDag-Erling SmørgravIf the argument is
381d4af9e69SDag-Erling Smørgrav.Dq none
382d4af9e69SDag-Erling Smørgravthen no banner is displayed.
383545d5ecaSDag-Erling SmørgravBy default, no banner is displayed.
384545d5ecaSDag-Erling Smørgrav.It Cm ChallengeResponseAuthentication
3857aee6ffeSDag-Erling SmørgravSpecifies whether challenge-response authentication is allowed (e.g. via
386a0ee8cc6SDag-Erling SmørgravPAM or through authentication styles supported in
3877aee6ffeSDag-Erling Smørgrav.Xr login.conf 5 )
388545d5ecaSDag-Erling SmørgravThe default is
389545d5ecaSDag-Erling Smørgrav.Dq yes .
390d4af9e69SDag-Erling Smørgrav.It Cm ChrootDirectory
391b15c8340SDag-Erling SmørgravSpecifies the pathname of a directory to
392d4af9e69SDag-Erling Smørgrav.Xr chroot 2
393d4af9e69SDag-Erling Smørgravto after authentication.
394bc5531deSDag-Erling SmørgravAt session startup
395bc5531deSDag-Erling Smørgrav.Xr sshd 8
396bc5531deSDag-Erling Smørgravchecks that all components of the pathname are root-owned directories
397bc5531deSDag-Erling Smørgravwhich are not writable by any other user or group.
3987aee6ffeSDag-Erling SmørgravAfter the chroot,
3997aee6ffeSDag-Erling Smørgrav.Xr sshd 8
4007aee6ffeSDag-Erling Smørgravchanges the working directory to the user's home directory.
401d4af9e69SDag-Erling Smørgrav.Pp
402b15c8340SDag-Erling SmørgravThe pathname may contain the following tokens that are expanded at runtime once
403d4af9e69SDag-Erling Smørgravthe connecting user has been authenticated: %% is replaced by a literal '%',
404d4af9e69SDag-Erling Smørgrav%h is replaced by the home directory of the user being authenticated, and
405d4af9e69SDag-Erling Smørgrav%u is replaced by the username of that user.
406d4af9e69SDag-Erling Smørgrav.Pp
407d4af9e69SDag-Erling SmørgravThe
408d4af9e69SDag-Erling Smørgrav.Cm ChrootDirectory
409d4af9e69SDag-Erling Smørgravmust contain the necessary files and directories to support the
4107aee6ffeSDag-Erling Smørgravuser's session.
411d4af9e69SDag-Erling SmørgravFor an interactive session this requires at least a shell, typically
412d4af9e69SDag-Erling Smørgrav.Xr sh 1 ,
413d4af9e69SDag-Erling Smørgravand basic
414d4af9e69SDag-Erling Smørgrav.Pa /dev
415d4af9e69SDag-Erling Smørgravnodes such as
416d4af9e69SDag-Erling Smørgrav.Xr null 4 ,
417d4af9e69SDag-Erling Smørgrav.Xr zero 4 ,
418d4af9e69SDag-Erling Smørgrav.Xr stdin 4 ,
419d4af9e69SDag-Erling Smørgrav.Xr stdout 4 ,
420d4af9e69SDag-Erling Smørgrav.Xr stderr 4 ,
421d4af9e69SDag-Erling Smørgravand
422d4af9e69SDag-Erling Smørgrav.Xr tty 4
423d4af9e69SDag-Erling Smørgravdevices.
424d4af9e69SDag-Erling SmørgravFor file transfer sessions using
425d4af9e69SDag-Erling Smørgrav.Dq sftp ,
426d4af9e69SDag-Erling Smørgravno additional configuration of the environment is necessary if the
4277aee6ffeSDag-Erling Smørgravin-process sftp server is used,
428a0ee8cc6SDag-Erling Smørgravthough sessions which use logging may require
4297aee6ffeSDag-Erling Smørgrav.Pa /dev/log
430a0ee8cc6SDag-Erling Smørgravinside the chroot directory on some operating systems (see
4317aee6ffeSDag-Erling Smørgrav.Xr sftp-server 8
432d4af9e69SDag-Erling Smørgravfor details).
433d4af9e69SDag-Erling Smørgrav.Pp
434bc5531deSDag-Erling SmørgravFor safety, it is very important that the directory hierarchy be
435bc5531deSDag-Erling Smørgravprevented from modification by other processes on the system (especially
436bc5531deSDag-Erling Smørgravthose outside the jail).
437bc5531deSDag-Erling SmørgravMisconfiguration can lead to unsafe environments which
438bc5531deSDag-Erling Smørgrav.Xr sshd 8
439bc5531deSDag-Erling Smørgravcannot detect.
440bc5531deSDag-Erling Smørgrav.Pp
441acc1a9efSDag-Erling SmørgravThe default is
442acc1a9efSDag-Erling Smørgrav.Dq none ,
443acc1a9efSDag-Erling Smørgravindicating not to
444d4af9e69SDag-Erling Smørgrav.Xr chroot 2 .
445545d5ecaSDag-Erling Smørgrav.It Cm Ciphers
446acc1a9efSDag-Erling SmørgravSpecifies the ciphers allowed.
447545d5ecaSDag-Erling SmørgravMultiple ciphers must be comma-separated.
448eccfee6eSDag-Erling SmørgravIf the specified value begins with a
449eccfee6eSDag-Erling Smørgrav.Sq +
450eccfee6eSDag-Erling Smørgravcharacter, then the specified ciphers will be appended to the default set
451eccfee6eSDag-Erling Smørgravinstead of replacing them.
452eccfee6eSDag-Erling Smørgrav.Pp
453f7167e0eSDag-Erling SmørgravThe supported ciphers are:
454f7167e0eSDag-Erling Smørgrav.Pp
455a0ee8cc6SDag-Erling Smørgrav.Bl -item -compact -offset indent
456a0ee8cc6SDag-Erling Smørgrav.It
457a0ee8cc6SDag-Erling Smørgrav3des-cbc
458a0ee8cc6SDag-Erling Smørgrav.It
459a0ee8cc6SDag-Erling Smørgravaes128-cbc
460a0ee8cc6SDag-Erling Smørgrav.It
461a0ee8cc6SDag-Erling Smørgravaes192-cbc
462a0ee8cc6SDag-Erling Smørgrav.It
463a0ee8cc6SDag-Erling Smørgravaes256-cbc
464a0ee8cc6SDag-Erling Smørgrav.It
465a0ee8cc6SDag-Erling Smørgravaes128-ctr
466a0ee8cc6SDag-Erling Smørgrav.It
467a0ee8cc6SDag-Erling Smørgravaes192-ctr
468a0ee8cc6SDag-Erling Smørgrav.It
469a0ee8cc6SDag-Erling Smørgravaes256-ctr
470a0ee8cc6SDag-Erling Smørgrav.It
471a0ee8cc6SDag-Erling Smørgravaes128-gcm@openssh.com
472a0ee8cc6SDag-Erling Smørgrav.It
473a0ee8cc6SDag-Erling Smørgravaes256-gcm@openssh.com
474a0ee8cc6SDag-Erling Smørgrav.It
475a0ee8cc6SDag-Erling Smørgravarcfour
476a0ee8cc6SDag-Erling Smørgrav.It
477a0ee8cc6SDag-Erling Smørgravarcfour128
478a0ee8cc6SDag-Erling Smørgrav.It
479a0ee8cc6SDag-Erling Smørgravarcfour256
480a0ee8cc6SDag-Erling Smørgrav.It
481a0ee8cc6SDag-Erling Smørgravblowfish-cbc
482a0ee8cc6SDag-Erling Smørgrav.It
483a0ee8cc6SDag-Erling Smørgravcast128-cbc
484a0ee8cc6SDag-Erling Smørgrav.It
485a0ee8cc6SDag-Erling Smørgravchacha20-poly1305@openssh.com
486a0ee8cc6SDag-Erling Smørgrav.El
487f7167e0eSDag-Erling Smørgrav.Pp
488333ee039SDag-Erling SmørgravThe default is:
489a0ee8cc6SDag-Erling Smørgrav.Bd -literal -offset indent
490fc1ba28aSDag-Erling Smørgravchacha20-poly1305@openssh.com,
491a0ee8cc6SDag-Erling Smørgravaes128-ctr,aes192-ctr,aes256-ctr,
492c3c6c935SDag-Erling Smørgravaes128-gcm@openssh.com,aes256-gcm@openssh.com,
493c3c6c935SDag-Erling Smørgravaes128-cbc,aes192-cbc,aes256-cbc
494545d5ecaSDag-Erling Smørgrav.Ed
495f7167e0eSDag-Erling Smørgrav.Pp
496f7167e0eSDag-Erling SmørgravThe list of available ciphers may also be obtained using the
497f7167e0eSDag-Erling Smørgrav.Fl Q
498f7167e0eSDag-Erling Smørgravoption of
499bc5531deSDag-Erling Smørgrav.Xr ssh 1
500bc5531deSDag-Erling Smørgravwith an argument of
501bc5531deSDag-Erling Smørgrav.Dq cipher .
502545d5ecaSDag-Erling Smørgrav.It Cm ClientAliveCountMax
503b74df5b2SDag-Erling SmørgravSets the number of client alive messages (see below) which may be
504545d5ecaSDag-Erling Smørgravsent without
505333ee039SDag-Erling Smørgrav.Xr sshd 8
506cf2b5f3bSDag-Erling Smørgravreceiving any messages back from the client.
507cf2b5f3bSDag-Erling SmørgravIf this threshold is reached while client alive messages are being sent,
508333ee039SDag-Erling Smørgravsshd will disconnect the client, terminating the session.
509cf2b5f3bSDag-Erling SmørgravIt is important to note that the use of client alive messages is very
510cf2b5f3bSDag-Erling Smørgravdifferent from
5111ec0d754SDag-Erling Smørgrav.Cm TCPKeepAlive
512cf2b5f3bSDag-Erling Smørgrav(below).
513cf2b5f3bSDag-Erling SmørgravThe client alive messages are sent through the encrypted channel
514cf2b5f3bSDag-Erling Smørgravand therefore will not be spoofable.
515cf2b5f3bSDag-Erling SmørgravThe TCP keepalive option enabled by
5161ec0d754SDag-Erling Smørgrav.Cm TCPKeepAlive
517cf2b5f3bSDag-Erling Smørgravis spoofable.
518cf2b5f3bSDag-Erling SmørgravThe client alive mechanism is valuable when the client or
519545d5ecaSDag-Erling Smørgravserver depend on knowing when a connection has become inactive.
520545d5ecaSDag-Erling Smørgrav.Pp
521cf2b5f3bSDag-Erling SmørgravThe default value is 3.
522cf2b5f3bSDag-Erling SmørgravIf
523545d5ecaSDag-Erling Smørgrav.Cm ClientAliveInterval
524b74df5b2SDag-Erling Smørgrav(see below) is set to 15, and
525545d5ecaSDag-Erling Smørgrav.Cm ClientAliveCountMax
526333ee039SDag-Erling Smørgravis left at the default, unresponsive SSH clients
527545d5ecaSDag-Erling Smørgravwill be disconnected after approximately 45 seconds.
528d4ecd108SDag-Erling Smørgrav.It Cm ClientAliveInterval
529d4ecd108SDag-Erling SmørgravSets a timeout interval in seconds after which if no data has been received
530d4ecd108SDag-Erling Smørgravfrom the client,
531333ee039SDag-Erling Smørgrav.Xr sshd 8
532d4ecd108SDag-Erling Smørgravwill send a message through the encrypted
533d4ecd108SDag-Erling Smørgravchannel to request a response from the client.
534d4ecd108SDag-Erling SmørgravThe default
535d4ecd108SDag-Erling Smørgravis 0, indicating that these messages will not be sent to the client.
536545d5ecaSDag-Erling Smørgrav.It Cm Compression
537d4ecd108SDag-Erling SmørgravSpecifies whether compression is allowed, or delayed until
538d4ecd108SDag-Erling Smørgravthe user has authenticated successfully.
539545d5ecaSDag-Erling SmørgravThe argument must be
540d4ecd108SDag-Erling Smørgrav.Dq yes ,
541d4ecd108SDag-Erling Smørgrav.Dq delayed ,
542545d5ecaSDag-Erling Smørgravor
543545d5ecaSDag-Erling Smørgrav.Dq no .
544545d5ecaSDag-Erling SmørgravThe default is
545d4ecd108SDag-Erling Smørgrav.Dq delayed .
546545d5ecaSDag-Erling Smørgrav.It Cm DenyGroups
547545d5ecaSDag-Erling SmørgravThis keyword can be followed by a list of group name patterns, separated
548545d5ecaSDag-Erling Smørgravby spaces.
549545d5ecaSDag-Erling SmørgravLogin is disallowed for users whose primary group or supplementary
550545d5ecaSDag-Erling Smørgravgroup list matches one of the patterns.
551545d5ecaSDag-Erling SmørgravOnly group names are valid; a numerical group ID is not recognized.
552545d5ecaSDag-Erling SmørgravBy default, login is allowed for all groups.
553333ee039SDag-Erling SmørgravThe allow/deny directives are processed in the following order:
554333ee039SDag-Erling Smørgrav.Cm DenyUsers ,
555333ee039SDag-Erling Smørgrav.Cm AllowUsers ,
556333ee039SDag-Erling Smørgrav.Cm DenyGroups ,
557333ee039SDag-Erling Smørgravand finally
558333ee039SDag-Erling Smørgrav.Cm AllowGroups .
559333ee039SDag-Erling Smørgrav.Pp
560e4a9863fSDag-Erling SmørgravSee PATTERNS in
561333ee039SDag-Erling Smørgrav.Xr ssh_config 5
562333ee039SDag-Erling Smørgravfor more information on patterns.
563545d5ecaSDag-Erling Smørgrav.It Cm DenyUsers
564545d5ecaSDag-Erling SmørgravThis keyword can be followed by a list of user name patterns, separated
565545d5ecaSDag-Erling Smørgravby spaces.
566545d5ecaSDag-Erling SmørgravLogin is disallowed for user names that match one of the patterns.
567545d5ecaSDag-Erling SmørgravOnly user names are valid; a numerical user ID is not recognized.
568545d5ecaSDag-Erling SmørgravBy default, login is allowed for all users.
569545d5ecaSDag-Erling SmørgravIf the pattern takes the form USER@HOST then USER and HOST
570545d5ecaSDag-Erling Smørgravare separately checked, restricting logins to particular
571545d5ecaSDag-Erling Smørgravusers from particular hosts.
572*076ad2f8SDag-Erling SmørgravHOST criteria may additionally contain addresses to match in CIDR
573*076ad2f8SDag-Erling Smørgravaddress/masklen format.
574333ee039SDag-Erling SmørgravThe allow/deny directives are processed in the following order:
575333ee039SDag-Erling Smørgrav.Cm DenyUsers ,
576333ee039SDag-Erling Smørgrav.Cm AllowUsers ,
577333ee039SDag-Erling Smørgrav.Cm DenyGroups ,
578333ee039SDag-Erling Smørgravand finally
579333ee039SDag-Erling Smørgrav.Cm AllowGroups .
580333ee039SDag-Erling Smørgrav.Pp
581e4a9863fSDag-Erling SmørgravSee PATTERNS in
582333ee039SDag-Erling Smørgrav.Xr ssh_config 5
583333ee039SDag-Erling Smørgravfor more information on patterns.
584bc5531deSDag-Erling Smørgrav.It Cm FingerprintHash
585bc5531deSDag-Erling SmørgravSpecifies the hash algorithm used when logging key fingerprints.
586bc5531deSDag-Erling SmørgravValid options are:
587bc5531deSDag-Erling Smørgrav.Dq md5
588bc5531deSDag-Erling Smørgravand
589bc5531deSDag-Erling Smørgrav.Dq sha256 .
590bc5531deSDag-Erling SmørgravThe default is
591bc5531deSDag-Erling Smørgrav.Dq sha256 .
592333ee039SDag-Erling Smørgrav.It Cm ForceCommand
593333ee039SDag-Erling SmørgravForces the execution of the command specified by
594333ee039SDag-Erling Smørgrav.Cm ForceCommand ,
595d4af9e69SDag-Erling Smørgravignoring any command supplied by the client and
596d4af9e69SDag-Erling Smørgrav.Pa ~/.ssh/rc
597d4af9e69SDag-Erling Smørgravif present.
598333ee039SDag-Erling SmørgravThe command is invoked by using the user's login shell with the -c option.
599333ee039SDag-Erling SmørgravThis applies to shell, command, or subsystem execution.
600333ee039SDag-Erling SmørgravIt is most useful inside a
601333ee039SDag-Erling Smørgrav.Cm Match
602333ee039SDag-Erling Smørgravblock.
603333ee039SDag-Erling SmørgravThe command originally supplied by the client is available in the
604333ee039SDag-Erling Smørgrav.Ev SSH_ORIGINAL_COMMAND
605333ee039SDag-Erling Smørgravenvironment variable.
606d4af9e69SDag-Erling SmørgravSpecifying a command of
607d4af9e69SDag-Erling Smørgrav.Dq internal-sftp
608d4af9e69SDag-Erling Smørgravwill force the use of an in-process sftp server that requires no support
609d4af9e69SDag-Erling Smørgravfiles when used with
610d4af9e69SDag-Erling Smørgrav.Cm ChrootDirectory .
611acc1a9efSDag-Erling SmørgravThe default is
612acc1a9efSDag-Erling Smørgrav.Dq none .
613545d5ecaSDag-Erling Smørgrav.It Cm GatewayPorts
614545d5ecaSDag-Erling SmørgravSpecifies whether remote hosts are allowed to connect to ports
615545d5ecaSDag-Erling Smørgravforwarded for the client.
616545d5ecaSDag-Erling SmørgravBy default,
617333ee039SDag-Erling Smørgrav.Xr sshd 8
618e73e9afaSDag-Erling Smørgravbinds remote port forwardings to the loopback address.
619e73e9afaSDag-Erling SmørgravThis prevents other remote hosts from connecting to forwarded ports.
620545d5ecaSDag-Erling Smørgrav.Cm GatewayPorts
621333ee039SDag-Erling Smørgravcan be used to specify that sshd
622aa49c926SDag-Erling Smørgravshould allow remote port forwardings to bind to non-loopback addresses, thus
623aa49c926SDag-Erling Smørgravallowing other hosts to connect.
624aa49c926SDag-Erling SmørgravThe argument may be
625aa49c926SDag-Erling Smørgrav.Dq no
626aa49c926SDag-Erling Smørgravto force remote port forwardings to be available to the local host only,
627545d5ecaSDag-Erling Smørgrav.Dq yes
628aa49c926SDag-Erling Smørgravto force remote port forwardings to bind to the wildcard address, or
629aa49c926SDag-Erling Smørgrav.Dq clientspecified
630aa49c926SDag-Erling Smørgravto allow the client to select the address to which the forwarding is bound.
631545d5ecaSDag-Erling SmørgravThe default is
632545d5ecaSDag-Erling Smørgrav.Dq no .
633cf2b5f3bSDag-Erling Smørgrav.It Cm GSSAPIAuthentication
634cf2b5f3bSDag-Erling SmørgravSpecifies whether user authentication based on GSSAPI is allowed.
635cf2b5f3bSDag-Erling SmørgravThe default is
636cf2b5f3bSDag-Erling Smørgrav.Dq no .
637cf2b5f3bSDag-Erling Smørgrav.It Cm GSSAPICleanupCredentials
638cf2b5f3bSDag-Erling SmørgravSpecifies whether to automatically destroy the user's credentials cache
639cf2b5f3bSDag-Erling Smørgravon logout.
640cf2b5f3bSDag-Erling SmørgravThe default is
641cf2b5f3bSDag-Erling Smørgrav.Dq yes .
642557f75e5SDag-Erling Smørgrav.It Cm GSSAPIStrictAcceptorCheck
643557f75e5SDag-Erling SmørgravDetermines whether to be strict about the identity of the GSSAPI acceptor
644557f75e5SDag-Erling Smørgrava client authenticates against.
645557f75e5SDag-Erling SmørgravIf set to
646557f75e5SDag-Erling Smørgrav.Dq yes
647557f75e5SDag-Erling Smørgravthen the client must authenticate against the
648557f75e5SDag-Erling Smørgrav.Pa host
649557f75e5SDag-Erling Smørgravservice on the current hostname.
650557f75e5SDag-Erling SmørgravIf set to
651557f75e5SDag-Erling Smørgrav.Dq no
652557f75e5SDag-Erling Smørgravthen the client may authenticate against any service key stored in the
653557f75e5SDag-Erling Smørgravmachine's default store.
654557f75e5SDag-Erling SmørgravThis facility is provided to assist with operation on multi homed machines.
655557f75e5SDag-Erling SmørgravThe default is
656557f75e5SDag-Erling Smørgrav.Dq yes .
657bc5531deSDag-Erling Smørgrav.It Cm HostbasedAcceptedKeyTypes
658bc5531deSDag-Erling SmørgravSpecifies the key types that will be accepted for hostbased authentication
659bc5531deSDag-Erling Smørgravas a comma-separated pattern list.
660eccfee6eSDag-Erling SmørgravAlternately if the specified value begins with a
661eccfee6eSDag-Erling Smørgrav.Sq +
662eccfee6eSDag-Erling Smørgravcharacter, then the specified key types will be appended to the default set
663eccfee6eSDag-Erling Smørgravinstead of replacing them.
664eccfee6eSDag-Erling SmørgravThe default for this option is:
665eccfee6eSDag-Erling Smørgrav.Bd -literal -offset 3n
666eccfee6eSDag-Erling Smørgravecdsa-sha2-nistp256-cert-v01@openssh.com,
667eccfee6eSDag-Erling Smørgravecdsa-sha2-nistp384-cert-v01@openssh.com,
668eccfee6eSDag-Erling Smørgravecdsa-sha2-nistp521-cert-v01@openssh.com,
669eccfee6eSDag-Erling Smørgravssh-ed25519-cert-v01@openssh.com,
670eccfee6eSDag-Erling Smørgravssh-rsa-cert-v01@openssh.com,
6719ded3306SDag-Erling Smørgravecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,
6729ded3306SDag-Erling Smørgravssh-ed25519,ssh-rsa
673eccfee6eSDag-Erling Smørgrav.Ed
674eccfee6eSDag-Erling Smørgrav.Pp
675bc5531deSDag-Erling SmørgravThe
676bc5531deSDag-Erling Smørgrav.Fl Q
677bc5531deSDag-Erling Smørgravoption of
678bc5531deSDag-Erling Smørgrav.Xr ssh 1
679bc5531deSDag-Erling Smørgravmay be used to list supported key types.
680545d5ecaSDag-Erling Smørgrav.It Cm HostbasedAuthentication
681545d5ecaSDag-Erling SmørgravSpecifies whether rhosts or /etc/hosts.equiv authentication together
682545d5ecaSDag-Erling Smørgravwith successful public key client host authentication is allowed
683333ee039SDag-Erling Smørgrav(host-based authentication).
684545d5ecaSDag-Erling SmørgravThe default is
685545d5ecaSDag-Erling Smørgrav.Dq no .
686333ee039SDag-Erling Smørgrav.It Cm HostbasedUsesNameFromPacketOnly
687333ee039SDag-Erling SmørgravSpecifies whether or not the server will attempt to perform a reverse
688333ee039SDag-Erling Smørgravname lookup when matching the name in the
689333ee039SDag-Erling Smørgrav.Pa ~/.shosts ,
690333ee039SDag-Erling Smørgrav.Pa ~/.rhosts ,
691333ee039SDag-Erling Smørgravand
692333ee039SDag-Erling Smørgrav.Pa /etc/hosts.equiv
693333ee039SDag-Erling Smørgravfiles during
694333ee039SDag-Erling Smørgrav.Cm HostbasedAuthentication .
695333ee039SDag-Erling SmørgravA setting of
696333ee039SDag-Erling Smørgrav.Dq yes
697333ee039SDag-Erling Smørgravmeans that
698333ee039SDag-Erling Smørgrav.Xr sshd 8
699333ee039SDag-Erling Smørgravuses the name supplied by the client rather than
700333ee039SDag-Erling Smørgravattempting to resolve the name from the TCP connection itself.
701333ee039SDag-Erling SmørgravThe default is
702333ee039SDag-Erling Smørgrav.Dq no .
703b15c8340SDag-Erling Smørgrav.It Cm HostCertificate
704b15c8340SDag-Erling SmørgravSpecifies a file containing a public host certificate.
705b15c8340SDag-Erling SmørgravThe certificate's public key must match a private host key already specified
706b15c8340SDag-Erling Smørgravby
707b15c8340SDag-Erling Smørgrav.Cm HostKey .
708b15c8340SDag-Erling SmørgravThe default behaviour of
709b15c8340SDag-Erling Smørgrav.Xr sshd 8
710b15c8340SDag-Erling Smørgravis not to load any certificates.
711545d5ecaSDag-Erling Smørgrav.It Cm HostKey
712545d5ecaSDag-Erling SmørgravSpecifies a file containing a private host key
713545d5ecaSDag-Erling Smørgravused by SSH.
714545d5ecaSDag-Erling SmørgravThe default is
715545d5ecaSDag-Erling Smørgrav.Pa /etc/ssh/ssh_host_key
716545d5ecaSDag-Erling Smørgravfor protocol version 1, and
7174a421b63SDag-Erling Smørgrav.Pa /etc/ssh/ssh_host_dsa_key ,
718f7167e0eSDag-Erling Smørgrav.Pa /etc/ssh/ssh_host_ecdsa_key ,
719f7167e0eSDag-Erling Smørgrav.Pa /etc/ssh/ssh_host_ed25519_key
720d4af9e69SDag-Erling Smørgravand
7214a421b63SDag-Erling Smørgrav.Pa /etc/ssh/ssh_host_rsa_key
722545d5ecaSDag-Erling Smørgravfor protocol version 2.
723eccfee6eSDag-Erling Smørgrav.Pp
724545d5ecaSDag-Erling SmørgravNote that
725333ee039SDag-Erling Smørgrav.Xr sshd 8
726eccfee6eSDag-Erling Smørgravwill refuse to use a file if it is group/world-accessible
727eccfee6eSDag-Erling Smørgravand that the
728eccfee6eSDag-Erling Smørgrav.Cm HostKeyAlgorithms
729eccfee6eSDag-Erling Smørgravoption restricts which of the keys are actually used by
730eccfee6eSDag-Erling Smørgrav.Xr sshd 8 .
731eccfee6eSDag-Erling Smørgrav.Pp
732545d5ecaSDag-Erling SmørgravIt is possible to have multiple host key files.
733545d5ecaSDag-Erling Smørgrav.Dq rsa1
734545d5ecaSDag-Erling Smørgravkeys are used for version 1 and
7354a421b63SDag-Erling Smørgrav.Dq dsa ,
736f7167e0eSDag-Erling Smørgrav.Dq ecdsa ,
737f7167e0eSDag-Erling Smørgrav.Dq ed25519
738545d5ecaSDag-Erling Smørgravor
739545d5ecaSDag-Erling Smørgrav.Dq rsa
740545d5ecaSDag-Erling Smørgravare used for version 2 of the SSH protocol.
741e4a9863fSDag-Erling SmørgravIt is also possible to specify public host key files instead.
742e4a9863fSDag-Erling SmørgravIn this case operations on the private key will be delegated
743e4a9863fSDag-Erling Smørgravto an
744e4a9863fSDag-Erling Smørgrav.Xr ssh-agent 1 .
745e4a9863fSDag-Erling Smørgrav.It Cm HostKeyAgent
746e4a9863fSDag-Erling SmørgravIdentifies the UNIX-domain socket used to communicate
747e4a9863fSDag-Erling Smørgravwith an agent that has access to the private host keys.
748*076ad2f8SDag-Erling SmørgravIf the string
749e4a9863fSDag-Erling Smørgrav.Dq SSH_AUTH_SOCK
750e4a9863fSDag-Erling Smørgravis specified, the location of the socket will be read from the
751e4a9863fSDag-Erling Smørgrav.Ev SSH_AUTH_SOCK
752e4a9863fSDag-Erling Smørgravenvironment variable.
753eccfee6eSDag-Erling Smørgrav.It Cm HostKeyAlgorithms
754acc1a9efSDag-Erling SmørgravSpecifies the host key algorithms
755eccfee6eSDag-Erling Smørgravthat the server offers.
756eccfee6eSDag-Erling SmørgravThe default for this option is:
757eccfee6eSDag-Erling Smørgrav.Bd -literal -offset 3n
758eccfee6eSDag-Erling Smørgravecdsa-sha2-nistp256-cert-v01@openssh.com,
759eccfee6eSDag-Erling Smørgravecdsa-sha2-nistp384-cert-v01@openssh.com,
760eccfee6eSDag-Erling Smørgravecdsa-sha2-nistp521-cert-v01@openssh.com,
761eccfee6eSDag-Erling Smørgravssh-ed25519-cert-v01@openssh.com,
762eccfee6eSDag-Erling Smørgravssh-rsa-cert-v01@openssh.com,
7639ded3306SDag-Erling Smørgravecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,
7649ded3306SDag-Erling Smørgravssh-ed25519,ssh-rsa
765eccfee6eSDag-Erling Smørgrav.Ed
766eccfee6eSDag-Erling Smørgrav.Pp
767eccfee6eSDag-Erling SmørgravThe list of available key types may also be obtained using the
768eccfee6eSDag-Erling Smørgrav.Fl Q
769eccfee6eSDag-Erling Smørgravoption of
770eccfee6eSDag-Erling Smørgrav.Xr ssh 1
771eccfee6eSDag-Erling Smørgravwith an argument of
772eccfee6eSDag-Erling Smørgrav.Dq key .
773545d5ecaSDag-Erling Smørgrav.It Cm IgnoreRhosts
774545d5ecaSDag-Erling SmørgravSpecifies that
775545d5ecaSDag-Erling Smørgrav.Pa .rhosts
776545d5ecaSDag-Erling Smørgravand
777545d5ecaSDag-Erling Smørgrav.Pa .shosts
778545d5ecaSDag-Erling Smørgravfiles will not be used in
779545d5ecaSDag-Erling Smørgrav.Cm RhostsRSAAuthentication
780545d5ecaSDag-Erling Smørgravor
781545d5ecaSDag-Erling Smørgrav.Cm HostbasedAuthentication .
782545d5ecaSDag-Erling Smørgrav.Pp
783545d5ecaSDag-Erling Smørgrav.Pa /etc/hosts.equiv
784545d5ecaSDag-Erling Smørgravand
78535d4ccfbSDag-Erling Smørgrav.Pa /etc/ssh/shosts.equiv
786545d5ecaSDag-Erling Smørgravare still used.
787545d5ecaSDag-Erling SmørgravThe default is
788545d5ecaSDag-Erling Smørgrav.Dq yes .
789545d5ecaSDag-Erling Smørgrav.It Cm IgnoreUserKnownHosts
790545d5ecaSDag-Erling SmørgravSpecifies whether
791333ee039SDag-Erling Smørgrav.Xr sshd 8
792545d5ecaSDag-Erling Smørgravshould ignore the user's
793d4ecd108SDag-Erling Smørgrav.Pa ~/.ssh/known_hosts
794545d5ecaSDag-Erling Smørgravduring
795545d5ecaSDag-Erling Smørgrav.Cm RhostsRSAAuthentication
796545d5ecaSDag-Erling Smørgravor
797545d5ecaSDag-Erling Smørgrav.Cm HostbasedAuthentication .
798545d5ecaSDag-Erling SmørgravThe default is
799545d5ecaSDag-Erling Smørgrav.Dq no .
8004a421b63SDag-Erling Smørgrav.It Cm IPQoS
8014a421b63SDag-Erling SmørgravSpecifies the IPv4 type-of-service or DSCP class for the connection.
8024a421b63SDag-Erling SmørgravAccepted values are
8034a421b63SDag-Erling Smørgrav.Dq af11 ,
8044a421b63SDag-Erling Smørgrav.Dq af12 ,
8054a421b63SDag-Erling Smørgrav.Dq af13 ,
806462c32cbSDag-Erling Smørgrav.Dq af21 ,
8074a421b63SDag-Erling Smørgrav.Dq af22 ,
8084a421b63SDag-Erling Smørgrav.Dq af23 ,
8094a421b63SDag-Erling Smørgrav.Dq af31 ,
8104a421b63SDag-Erling Smørgrav.Dq af32 ,
8114a421b63SDag-Erling Smørgrav.Dq af33 ,
8124a421b63SDag-Erling Smørgrav.Dq af41 ,
8134a421b63SDag-Erling Smørgrav.Dq af42 ,
8144a421b63SDag-Erling Smørgrav.Dq af43 ,
8154a421b63SDag-Erling Smørgrav.Dq cs0 ,
8164a421b63SDag-Erling Smørgrav.Dq cs1 ,
8174a421b63SDag-Erling Smørgrav.Dq cs2 ,
8184a421b63SDag-Erling Smørgrav.Dq cs3 ,
8194a421b63SDag-Erling Smørgrav.Dq cs4 ,
8204a421b63SDag-Erling Smørgrav.Dq cs5 ,
8214a421b63SDag-Erling Smørgrav.Dq cs6 ,
8224a421b63SDag-Erling Smørgrav.Dq cs7 ,
8234a421b63SDag-Erling Smørgrav.Dq ef ,
8244a421b63SDag-Erling Smørgrav.Dq lowdelay ,
8254a421b63SDag-Erling Smørgrav.Dq throughput ,
8264a421b63SDag-Erling Smørgrav.Dq reliability ,
8274a421b63SDag-Erling Smørgravor a numeric value.
8284a421b63SDag-Erling SmørgravThis option may take one or two arguments, separated by whitespace.
8294a421b63SDag-Erling SmørgravIf one argument is specified, it is used as the packet class unconditionally.
8304a421b63SDag-Erling SmørgravIf two values are specified, the first is automatically selected for
8314a421b63SDag-Erling Smørgravinteractive sessions and the second for non-interactive sessions.
8324a421b63SDag-Erling SmørgravThe default is
8334a421b63SDag-Erling Smørgrav.Dq lowdelay
8344a421b63SDag-Erling Smørgravfor interactive sessions and
8354a421b63SDag-Erling Smørgrav.Dq throughput
8364a421b63SDag-Erling Smørgravfor non-interactive sessions.
837b83788ffSDag-Erling Smørgrav.It Cm KbdInteractiveAuthentication
838b83788ffSDag-Erling SmørgravSpecifies whether to allow keyboard-interactive authentication.
839b83788ffSDag-Erling SmørgravThe argument to this keyword must be
840b83788ffSDag-Erling Smørgrav.Dq yes
841b83788ffSDag-Erling Smørgravor
842b83788ffSDag-Erling Smørgrav.Dq no .
843b83788ffSDag-Erling SmørgravThe default is to use whatever value
844b83788ffSDag-Erling Smørgrav.Cm ChallengeResponseAuthentication
845b83788ffSDag-Erling Smørgravis set to
846b83788ffSDag-Erling Smørgrav(by default
847b83788ffSDag-Erling Smørgrav.Dq yes ) .
848545d5ecaSDag-Erling Smørgrav.It Cm KerberosAuthentication
849cf2b5f3bSDag-Erling SmørgravSpecifies whether the password provided by the user for
850545d5ecaSDag-Erling Smørgrav.Cm PasswordAuthentication
851cf2b5f3bSDag-Erling Smørgravwill be validated through the Kerberos KDC.
852545d5ecaSDag-Erling SmørgravTo use this option, the server needs a
853545d5ecaSDag-Erling SmørgravKerberos servtab which allows the verification of the KDC's identity.
854333ee039SDag-Erling SmørgravThe default is
855545d5ecaSDag-Erling Smørgrav.Dq no .
8565962c0e9SDag-Erling Smørgrav.It Cm KerberosGetAFSToken
857b74df5b2SDag-Erling SmørgravIf AFS is active and the user has a Kerberos 5 TGT, attempt to acquire
8585962c0e9SDag-Erling Smørgravan AFS token before accessing the user's home directory.
859333ee039SDag-Erling SmørgravThe default is
8605962c0e9SDag-Erling Smørgrav.Dq no .
861545d5ecaSDag-Erling Smørgrav.It Cm KerberosOrLocalPasswd
862333ee039SDag-Erling SmørgravIf password authentication through Kerberos fails then
863545d5ecaSDag-Erling Smørgravthe password will be validated via any additional local mechanism
864545d5ecaSDag-Erling Smørgravsuch as
865545d5ecaSDag-Erling Smørgrav.Pa /etc/passwd .
866333ee039SDag-Erling SmørgravThe default is
867545d5ecaSDag-Erling Smørgrav.Dq yes .
868545d5ecaSDag-Erling Smørgrav.It Cm KerberosTicketCleanup
869545d5ecaSDag-Erling SmørgravSpecifies whether to automatically destroy the user's ticket cache
870545d5ecaSDag-Erling Smørgravfile on logout.
871333ee039SDag-Erling SmørgravThe default is
872545d5ecaSDag-Erling Smørgrav.Dq yes .
8734a421b63SDag-Erling Smørgrav.It Cm KexAlgorithms
8744a421b63SDag-Erling SmørgravSpecifies the available KEX (Key Exchange) algorithms.
8754a421b63SDag-Erling SmørgravMultiple algorithms must be comma-separated.
876eccfee6eSDag-Erling SmørgravAlternately if the specified value begins with a
877eccfee6eSDag-Erling Smørgrav.Sq +
878eccfee6eSDag-Erling Smørgravcharacter, then the specified methods will be appended to the default set
879eccfee6eSDag-Erling Smørgravinstead of replacing them.
880a0ee8cc6SDag-Erling SmørgravThe supported algorithms are:
881a0ee8cc6SDag-Erling Smørgrav.Pp
882a0ee8cc6SDag-Erling Smørgrav.Bl -item -compact -offset indent
883a0ee8cc6SDag-Erling Smørgrav.It
884a0ee8cc6SDag-Erling Smørgravcurve25519-sha256@libssh.org
885a0ee8cc6SDag-Erling Smørgrav.It
886a0ee8cc6SDag-Erling Smørgravdiffie-hellman-group1-sha1
887a0ee8cc6SDag-Erling Smørgrav.It
888a0ee8cc6SDag-Erling Smørgravdiffie-hellman-group14-sha1
889a0ee8cc6SDag-Erling Smørgrav.It
890a0ee8cc6SDag-Erling Smørgravdiffie-hellman-group-exchange-sha1
891a0ee8cc6SDag-Erling Smørgrav.It
892a0ee8cc6SDag-Erling Smørgravdiffie-hellman-group-exchange-sha256
893a0ee8cc6SDag-Erling Smørgrav.It
894a0ee8cc6SDag-Erling Smørgravecdh-sha2-nistp256
895a0ee8cc6SDag-Erling Smørgrav.It
896a0ee8cc6SDag-Erling Smørgravecdh-sha2-nistp384
897a0ee8cc6SDag-Erling Smørgrav.It
898a0ee8cc6SDag-Erling Smørgravecdh-sha2-nistp521
899a0ee8cc6SDag-Erling Smørgrav.El
900a0ee8cc6SDag-Erling Smørgrav.Pp
901a0ee8cc6SDag-Erling SmørgravThe default is:
902f7167e0eSDag-Erling Smørgrav.Bd -literal -offset indent
903f7167e0eSDag-Erling Smørgravcurve25519-sha256@libssh.org,
904f7167e0eSDag-Erling Smørgravecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,
905f7167e0eSDag-Erling Smørgravdiffie-hellman-group-exchange-sha256,
906a0ee8cc6SDag-Erling Smørgravdiffie-hellman-group14-sha1
907f7167e0eSDag-Erling Smørgrav.Ed
908bc5531deSDag-Erling Smørgrav.Pp
909bc5531deSDag-Erling SmørgravThe list of available key exchange algorithms may also be obtained using the
910bc5531deSDag-Erling Smørgrav.Fl Q
911bc5531deSDag-Erling Smørgravoption of
912bc5531deSDag-Erling Smørgrav.Xr ssh 1
913bc5531deSDag-Erling Smørgravwith an argument of
914bc5531deSDag-Erling Smørgrav.Dq kex .
915545d5ecaSDag-Erling Smørgrav.It Cm KeyRegenerationInterval
916545d5ecaSDag-Erling SmørgravIn protocol version 1, the ephemeral server key is automatically regenerated
917545d5ecaSDag-Erling Smørgravafter this many seconds (if it has been used).
918545d5ecaSDag-Erling SmørgravThe purpose of regeneration is to prevent
919545d5ecaSDag-Erling Smørgravdecrypting captured sessions by later breaking into the machine and
920545d5ecaSDag-Erling Smørgravstealing the keys.
921545d5ecaSDag-Erling SmørgravThe key is never stored anywhere.
922545d5ecaSDag-Erling SmørgravIf the value is 0, the key is never regenerated.
923545d5ecaSDag-Erling SmørgravThe default is 3600 (seconds).
924545d5ecaSDag-Erling Smørgrav.It Cm ListenAddress
925545d5ecaSDag-Erling SmørgravSpecifies the local addresses
926333ee039SDag-Erling Smørgrav.Xr sshd 8
927545d5ecaSDag-Erling Smørgravshould listen on.
928545d5ecaSDag-Erling SmørgravThe following forms may be used:
929545d5ecaSDag-Erling Smørgrav.Pp
930545d5ecaSDag-Erling Smørgrav.Bl -item -offset indent -compact
931545d5ecaSDag-Erling Smørgrav.It
932545d5ecaSDag-Erling Smørgrav.Cm ListenAddress
933545d5ecaSDag-Erling Smørgrav.Sm off
934bc5531deSDag-Erling Smørgrav.Ar host | Ar IPv4_addr | Ar IPv6_addr
935545d5ecaSDag-Erling Smørgrav.Sm on
936545d5ecaSDag-Erling Smørgrav.It
937545d5ecaSDag-Erling Smørgrav.Cm ListenAddress
938545d5ecaSDag-Erling Smørgrav.Sm off
939bc5531deSDag-Erling Smørgrav.Ar host | Ar IPv4_addr : Ar port
940545d5ecaSDag-Erling Smørgrav.Sm on
941545d5ecaSDag-Erling Smørgrav.It
942545d5ecaSDag-Erling Smørgrav.Cm ListenAddress
943545d5ecaSDag-Erling Smørgrav.Sm off
944545d5ecaSDag-Erling Smørgrav.Oo
945bc5531deSDag-Erling Smørgrav.Ar host | Ar IPv6_addr Oc : Ar port
946545d5ecaSDag-Erling Smørgrav.Sm on
947545d5ecaSDag-Erling Smørgrav.El
948545d5ecaSDag-Erling Smørgrav.Pp
949545d5ecaSDag-Erling SmørgravIf
950545d5ecaSDag-Erling Smørgrav.Ar port
951545d5ecaSDag-Erling Smørgravis not specified,
952557f75e5SDag-Erling Smørgravsshd will listen on the address and all
953545d5ecaSDag-Erling Smørgrav.Cm Port
954cf2b5f3bSDag-Erling Smørgravoptions specified.
955cf2b5f3bSDag-Erling SmørgravThe default is to listen on all local addresses.
956e73e9afaSDag-Erling SmørgravMultiple
957545d5ecaSDag-Erling Smørgrav.Cm ListenAddress
958cf2b5f3bSDag-Erling Smørgravoptions are permitted.
959545d5ecaSDag-Erling Smørgrav.It Cm LoginGraceTime
960545d5ecaSDag-Erling SmørgravThe server disconnects after this time if the user has not
961545d5ecaSDag-Erling Smørgravsuccessfully logged in.
962545d5ecaSDag-Erling SmørgravIf the value is 0, there is no time limit.
963f388f5efSDag-Erling SmørgravThe default is 120 seconds.
964545d5ecaSDag-Erling Smørgrav.It Cm LogLevel
965545d5ecaSDag-Erling SmørgravGives the verbosity level that is used when logging messages from
966333ee039SDag-Erling Smørgrav.Xr sshd 8 .
967545d5ecaSDag-Erling SmørgravThe possible values are:
968333ee039SDag-Erling SmørgravQUIET, FATAL, ERROR, INFO, VERBOSE, DEBUG, DEBUG1, DEBUG2, and DEBUG3.
969e73e9afaSDag-Erling SmørgravThe default is INFO.
970e73e9afaSDag-Erling SmørgravDEBUG and DEBUG1 are equivalent.
971e73e9afaSDag-Erling SmørgravDEBUG2 and DEBUG3 each specify higher levels of debugging output.
972e73e9afaSDag-Erling SmørgravLogging with a DEBUG level violates the privacy of users and is not recommended.
973545d5ecaSDag-Erling Smørgrav.It Cm MACs
974545d5ecaSDag-Erling SmørgravSpecifies the available MAC (message authentication code) algorithms.
975acc1a9efSDag-Erling SmørgravThe MAC algorithm is used for data integrity protection.
976545d5ecaSDag-Erling SmørgravMultiple algorithms must be comma-separated.
977eccfee6eSDag-Erling SmørgravIf the specified value begins with a
978eccfee6eSDag-Erling Smørgrav.Sq +
979eccfee6eSDag-Erling Smørgravcharacter, then the specified algorithms will be appended to the default set
980eccfee6eSDag-Erling Smørgravinstead of replacing them.
981eccfee6eSDag-Erling Smørgrav.Pp
9826888a9beSDag-Erling SmørgravThe algorithms that contain
9836888a9beSDag-Erling Smørgrav.Dq -etm
9846888a9beSDag-Erling Smørgravcalculate the MAC after encryption (encrypt-then-mac).
9856888a9beSDag-Erling SmørgravThese are considered safer and their use recommended.
986a0ee8cc6SDag-Erling SmørgravThe supported MACs are:
987a0ee8cc6SDag-Erling Smørgrav.Pp
988a0ee8cc6SDag-Erling Smørgrav.Bl -item -compact -offset indent
989a0ee8cc6SDag-Erling Smørgrav.It
990a0ee8cc6SDag-Erling Smørgravhmac-md5
991a0ee8cc6SDag-Erling Smørgrav.It
992a0ee8cc6SDag-Erling Smørgravhmac-md5-96
993a0ee8cc6SDag-Erling Smørgrav.It
994a0ee8cc6SDag-Erling Smørgravhmac-ripemd160
995a0ee8cc6SDag-Erling Smørgrav.It
996a0ee8cc6SDag-Erling Smørgravhmac-sha1
997a0ee8cc6SDag-Erling Smørgrav.It
998a0ee8cc6SDag-Erling Smørgravhmac-sha1-96
999a0ee8cc6SDag-Erling Smørgrav.It
1000a0ee8cc6SDag-Erling Smørgravhmac-sha2-256
1001a0ee8cc6SDag-Erling Smørgrav.It
1002a0ee8cc6SDag-Erling Smørgravhmac-sha2-512
1003a0ee8cc6SDag-Erling Smørgrav.It
1004a0ee8cc6SDag-Erling Smørgravumac-64@openssh.com
1005a0ee8cc6SDag-Erling Smørgrav.It
1006a0ee8cc6SDag-Erling Smørgravumac-128@openssh.com
1007a0ee8cc6SDag-Erling Smørgrav.It
1008a0ee8cc6SDag-Erling Smørgravhmac-md5-etm@openssh.com
1009a0ee8cc6SDag-Erling Smørgrav.It
1010a0ee8cc6SDag-Erling Smørgravhmac-md5-96-etm@openssh.com
1011a0ee8cc6SDag-Erling Smørgrav.It
1012a0ee8cc6SDag-Erling Smørgravhmac-ripemd160-etm@openssh.com
1013a0ee8cc6SDag-Erling Smørgrav.It
1014a0ee8cc6SDag-Erling Smørgravhmac-sha1-etm@openssh.com
1015a0ee8cc6SDag-Erling Smørgrav.It
1016a0ee8cc6SDag-Erling Smørgravhmac-sha1-96-etm@openssh.com
1017a0ee8cc6SDag-Erling Smørgrav.It
1018a0ee8cc6SDag-Erling Smørgravhmac-sha2-256-etm@openssh.com
1019a0ee8cc6SDag-Erling Smørgrav.It
1020a0ee8cc6SDag-Erling Smørgravhmac-sha2-512-etm@openssh.com
1021a0ee8cc6SDag-Erling Smørgrav.It
1022a0ee8cc6SDag-Erling Smørgravumac-64-etm@openssh.com
1023a0ee8cc6SDag-Erling Smørgrav.It
1024a0ee8cc6SDag-Erling Smørgravumac-128-etm@openssh.com
1025a0ee8cc6SDag-Erling Smørgrav.El
1026a0ee8cc6SDag-Erling Smørgrav.Pp
1027333ee039SDag-Erling SmørgravThe default is:
1028d4af9e69SDag-Erling Smørgrav.Bd -literal -offset indent
10296888a9beSDag-Erling Smørgravumac-64-etm@openssh.com,umac-128-etm@openssh.com,
10306888a9beSDag-Erling Smørgravhmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,
1031acc1a9efSDag-Erling Smørgravhmac-sha1-etm@openssh.com,
1032a0ee8cc6SDag-Erling Smørgravumac-64@openssh.com,umac-128@openssh.com,
1033acc1a9efSDag-Erling Smørgravhmac-sha2-256,hmac-sha2-512,hmac-sha1
1034d4af9e69SDag-Erling Smørgrav.Ed
1035bc5531deSDag-Erling Smørgrav.Pp
1036bc5531deSDag-Erling SmørgravThe list of available MAC algorithms may also be obtained using the
1037bc5531deSDag-Erling Smørgrav.Fl Q
1038bc5531deSDag-Erling Smørgravoption of
1039bc5531deSDag-Erling Smørgrav.Xr ssh 1
1040bc5531deSDag-Erling Smørgravwith an argument of
1041bc5531deSDag-Erling Smørgrav.Dq mac .
1042333ee039SDag-Erling Smørgrav.It Cm Match
1043333ee039SDag-Erling SmørgravIntroduces a conditional block.
1044333ee039SDag-Erling SmørgravIf all of the criteria on the
1045333ee039SDag-Erling Smørgrav.Cm Match
1046333ee039SDag-Erling Smørgravline are satisfied, the keywords on the following lines override those
1047333ee039SDag-Erling Smørgravset in the global section of the config file, until either another
1048333ee039SDag-Erling Smørgrav.Cm Match
1049333ee039SDag-Erling Smørgravline or the end of the file.
1050b83788ffSDag-Erling SmørgravIf a keyword appears in multiple
1051b83788ffSDag-Erling Smørgrav.Cm Match
1052bc5531deSDag-Erling Smørgravblocks that are satisfied, only the first instance of the keyword is
1053b83788ffSDag-Erling Smørgravapplied.
1054d4af9e69SDag-Erling Smørgrav.Pp
1055333ee039SDag-Erling SmørgravThe arguments to
1056333ee039SDag-Erling Smørgrav.Cm Match
1057f7167e0eSDag-Erling Smørgravare one or more criteria-pattern pairs or the single token
1058f7167e0eSDag-Erling Smørgrav.Cm All
1059f7167e0eSDag-Erling Smørgravwhich matches all criteria.
1060333ee039SDag-Erling SmørgravThe available criteria are
1061333ee039SDag-Erling Smørgrav.Cm User ,
1062333ee039SDag-Erling Smørgrav.Cm Group ,
1063333ee039SDag-Erling Smørgrav.Cm Host ,
1064462c32cbSDag-Erling Smørgrav.Cm LocalAddress ,
1065462c32cbSDag-Erling Smørgrav.Cm LocalPort ,
1066333ee039SDag-Erling Smørgravand
1067333ee039SDag-Erling Smørgrav.Cm Address .
1068d4af9e69SDag-Erling SmørgravThe match patterns may consist of single entries or comma-separated
1069d4af9e69SDag-Erling Smørgravlists and may use the wildcard and negation operators described in the
1070e4a9863fSDag-Erling SmørgravPATTERNS section of
1071d4af9e69SDag-Erling Smørgrav.Xr ssh_config 5 .
1072d4af9e69SDag-Erling Smørgrav.Pp
1073d4af9e69SDag-Erling SmørgravThe patterns in an
1074d4af9e69SDag-Erling Smørgrav.Cm Address
1075d4af9e69SDag-Erling Smørgravcriteria may additionally contain addresses to match in CIDR
1076d4af9e69SDag-Erling Smørgravaddress/masklen format, e.g.\&
1077d4af9e69SDag-Erling Smørgrav.Dq 192.0.2.0/24
1078d4af9e69SDag-Erling Smørgravor
1079d4af9e69SDag-Erling Smørgrav.Dq 3ffe:ffff::/32 .
1080d4af9e69SDag-Erling SmørgravNote that the mask length provided must be consistent with the address -
1081d4af9e69SDag-Erling Smørgravit is an error to specify a mask length that is too long for the address
1082d4af9e69SDag-Erling Smørgravor one with bits set in this host portion of the address.
1083d4af9e69SDag-Erling SmørgravFor example,
1084d4af9e69SDag-Erling Smørgrav.Dq 192.0.2.0/33
1085d4af9e69SDag-Erling Smørgravand
1086d4af9e69SDag-Erling Smørgrav.Dq 192.0.2.0/8
1087d4af9e69SDag-Erling Smørgravrespectively.
1088d4af9e69SDag-Erling Smørgrav.Pp
1089333ee039SDag-Erling SmørgravOnly a subset of keywords may be used on the lines following a
1090333ee039SDag-Erling Smørgrav.Cm Match
1091333ee039SDag-Erling Smørgravkeyword.
1092333ee039SDag-Erling SmørgravAvailable keywords are
1093462c32cbSDag-Erling Smørgrav.Cm AcceptEnv ,
1094cce7d346SDag-Erling Smørgrav.Cm AllowAgentForwarding ,
1095462c32cbSDag-Erling Smørgrav.Cm AllowGroups ,
1096bc5531deSDag-Erling Smørgrav.Cm AllowStreamLocalForwarding ,
1097333ee039SDag-Erling Smørgrav.Cm AllowTcpForwarding ,
1098462c32cbSDag-Erling Smørgrav.Cm AllowUsers ,
10996888a9beSDag-Erling Smørgrav.Cm AuthenticationMethods ,
11006888a9beSDag-Erling Smørgrav.Cm AuthorizedKeysCommand ,
11016888a9beSDag-Erling Smørgrav.Cm AuthorizedKeysCommandUser ,
1102e2f6069cSDag-Erling Smørgrav.Cm AuthorizedKeysFile ,
1103acc1a9efSDag-Erling Smørgrav.Cm AuthorizedPrincipalsCommand ,
1104acc1a9efSDag-Erling Smørgrav.Cm AuthorizedPrincipalsCommandUser ,
1105e2f6069cSDag-Erling Smørgrav.Cm AuthorizedPrincipalsFile ,
1106d4af9e69SDag-Erling Smørgrav.Cm Banner ,
1107d4af9e69SDag-Erling Smørgrav.Cm ChrootDirectory ,
1108462c32cbSDag-Erling Smørgrav.Cm DenyGroups ,
1109462c32cbSDag-Erling Smørgrav.Cm DenyUsers ,
1110333ee039SDag-Erling Smørgrav.Cm ForceCommand ,
1111333ee039SDag-Erling Smørgrav.Cm GatewayPorts ,
1112d4af9e69SDag-Erling Smørgrav.Cm GSSAPIAuthentication ,
1113bc5531deSDag-Erling Smørgrav.Cm HostbasedAcceptedKeyTypes ,
1114d4af9e69SDag-Erling Smørgrav.Cm HostbasedAuthentication ,
1115e2f6069cSDag-Erling Smørgrav.Cm HostbasedUsesNameFromPacketOnly ,
1116bc5531deSDag-Erling Smørgrav.Cm IPQoS ,
1117d4af9e69SDag-Erling Smørgrav.Cm KbdInteractiveAuthentication ,
1118d4af9e69SDag-Erling Smørgrav.Cm KerberosAuthentication ,
1119d4af9e69SDag-Erling Smørgrav.Cm MaxAuthTries ,
1120d4af9e69SDag-Erling Smørgrav.Cm MaxSessions ,
1121d4af9e69SDag-Erling Smørgrav.Cm PasswordAuthentication ,
1122cce7d346SDag-Erling Smørgrav.Cm PermitEmptyPasswords ,
1123333ee039SDag-Erling Smørgrav.Cm PermitOpen ,
1124d4af9e69SDag-Erling Smørgrav.Cm PermitRootLogin ,
1125f7167e0eSDag-Erling Smørgrav.Cm PermitTTY ,
1126e2f6069cSDag-Erling Smørgrav.Cm PermitTunnel ,
1127a0ee8cc6SDag-Erling Smørgrav.Cm PermitUserRC ,
1128bc5531deSDag-Erling Smørgrav.Cm PubkeyAcceptedKeyTypes ,
1129b15c8340SDag-Erling Smørgrav.Cm PubkeyAuthentication ,
1130e4a9863fSDag-Erling Smørgrav.Cm RekeyLimit ,
1131bc5531deSDag-Erling Smørgrav.Cm RevokedKeys ,
1132d4af9e69SDag-Erling Smørgrav.Cm RhostsRSAAuthentication ,
1133d4af9e69SDag-Erling Smørgrav.Cm RSAAuthentication ,
1134bc5531deSDag-Erling Smørgrav.Cm StreamLocalBindMask ,
1135bc5531deSDag-Erling Smørgrav.Cm StreamLocalBindUnlink ,
1136bc5531deSDag-Erling Smørgrav.Cm TrustedUserCAKeys ,
1137333ee039SDag-Erling Smørgrav.Cm X11DisplayOffset ,
1138cce7d346SDag-Erling Smørgrav.Cm X11Forwarding
1139333ee039SDag-Erling Smørgravand
1140333ee039SDag-Erling Smørgrav.Cm X11UseLocalHost .
114121e764dfSDag-Erling Smørgrav.It Cm MaxAuthTries
114221e764dfSDag-Erling SmørgravSpecifies the maximum number of authentication attempts permitted per
114321e764dfSDag-Erling Smørgravconnection.
114421e764dfSDag-Erling SmørgravOnce the number of failures reaches half this value,
114521e764dfSDag-Erling Smørgravadditional failures are logged.
114621e764dfSDag-Erling SmørgravThe default is 6.
1147d4af9e69SDag-Erling Smørgrav.It Cm MaxSessions
1148acc1a9efSDag-Erling SmørgravSpecifies the maximum number of open shell, login or subsystem (e.g. sftp)
1149acc1a9efSDag-Erling Smørgravsessions permitted per network connection.
1150acc1a9efSDag-Erling SmørgravMultiple sessions may be established by clients that support connection
1151acc1a9efSDag-Erling Smørgravmultiplexing.
1152acc1a9efSDag-Erling SmørgravSetting
1153acc1a9efSDag-Erling Smørgrav.Cm MaxSessions
1154acc1a9efSDag-Erling Smørgravto 1 will effectively disable session multiplexing, whereas setting it to 0
1155acc1a9efSDag-Erling Smørgravwill prevent all shell, login and subsystem sessions while still permitting
1156acc1a9efSDag-Erling Smørgravforwarding.
1157d4af9e69SDag-Erling SmørgravThe default is 10.
1158545d5ecaSDag-Erling Smørgrav.It Cm MaxStartups
1159545d5ecaSDag-Erling SmørgravSpecifies the maximum number of concurrent unauthenticated connections to the
1160333ee039SDag-Erling SmørgravSSH daemon.
1161545d5ecaSDag-Erling SmørgravAdditional connections will be dropped until authentication succeeds or the
1162545d5ecaSDag-Erling Smørgrav.Cm LoginGraceTime
1163545d5ecaSDag-Erling Smørgravexpires for a connection.
11646888a9beSDag-Erling SmørgravThe default is 10:30:100.
1165545d5ecaSDag-Erling Smørgrav.Pp
1166545d5ecaSDag-Erling SmørgravAlternatively, random early drop can be enabled by specifying
1167545d5ecaSDag-Erling Smørgravthe three colon separated values
1168545d5ecaSDag-Erling Smørgrav.Dq start:rate:full
1169333ee039SDag-Erling Smørgrav(e.g. "10:30:60").
1170333ee039SDag-Erling Smørgrav.Xr sshd 8
1171545d5ecaSDag-Erling Smørgravwill refuse connection attempts with a probability of
1172545d5ecaSDag-Erling Smørgrav.Dq rate/100
1173545d5ecaSDag-Erling Smørgrav(30%)
1174545d5ecaSDag-Erling Smørgravif there are currently
1175545d5ecaSDag-Erling Smørgrav.Dq start
1176545d5ecaSDag-Erling Smørgrav(10)
1177545d5ecaSDag-Erling Smørgravunauthenticated connections.
1178545d5ecaSDag-Erling SmørgravThe probability increases linearly and all connection attempts
1179545d5ecaSDag-Erling Smørgravare refused if the number of unauthenticated connections reaches
1180545d5ecaSDag-Erling Smørgrav.Dq full
1181545d5ecaSDag-Erling Smørgrav(60).
1182545d5ecaSDag-Erling Smørgrav.It Cm PasswordAuthentication
1183545d5ecaSDag-Erling SmørgravSpecifies whether password authentication is allowed.
1184d4af9e69SDag-Erling SmørgravSee also
1185d4af9e69SDag-Erling Smørgrav.Cm UsePAM .
1186545d5ecaSDag-Erling SmørgravThe default is
1187d4af9e69SDag-Erling Smørgrav.Dq no .
1188545d5ecaSDag-Erling Smørgrav.It Cm PermitEmptyPasswords
1189545d5ecaSDag-Erling SmørgravWhen password authentication is allowed, it specifies whether the
1190545d5ecaSDag-Erling Smørgravserver allows login to accounts with empty password strings.
1191545d5ecaSDag-Erling SmørgravThe default is
1192545d5ecaSDag-Erling Smørgrav.Dq no .
1193333ee039SDag-Erling Smørgrav.It Cm PermitOpen
1194333ee039SDag-Erling SmørgravSpecifies the destinations to which TCP port forwarding is permitted.
1195333ee039SDag-Erling SmørgravThe forwarding specification must be one of the following forms:
1196333ee039SDag-Erling Smørgrav.Pp
1197333ee039SDag-Erling Smørgrav.Bl -item -offset indent -compact
1198333ee039SDag-Erling Smørgrav.It
1199333ee039SDag-Erling Smørgrav.Cm PermitOpen
1200333ee039SDag-Erling Smørgrav.Sm off
1201333ee039SDag-Erling Smørgrav.Ar host : port
1202333ee039SDag-Erling Smørgrav.Sm on
1203333ee039SDag-Erling Smørgrav.It
1204333ee039SDag-Erling Smørgrav.Cm PermitOpen
1205333ee039SDag-Erling Smørgrav.Sm off
1206333ee039SDag-Erling Smørgrav.Ar IPv4_addr : port
1207333ee039SDag-Erling Smørgrav.Sm on
1208333ee039SDag-Erling Smørgrav.It
1209333ee039SDag-Erling Smørgrav.Cm PermitOpen
1210333ee039SDag-Erling Smørgrav.Sm off
1211333ee039SDag-Erling Smørgrav.Ar \&[ IPv6_addr \&] : port
1212333ee039SDag-Erling Smørgrav.Sm on
1213333ee039SDag-Erling Smørgrav.El
1214333ee039SDag-Erling Smørgrav.Pp
1215333ee039SDag-Erling SmørgravMultiple forwards may be specified by separating them with whitespace.
1216333ee039SDag-Erling SmørgravAn argument of
1217333ee039SDag-Erling Smørgrav.Dq any
1218333ee039SDag-Erling Smørgravcan be used to remove all restrictions and permit any forwarding requests.
1219462c32cbSDag-Erling SmørgravAn argument of
1220462c32cbSDag-Erling Smørgrav.Dq none
1221462c32cbSDag-Erling Smørgravcan be used to prohibit all forwarding requests.
1222*076ad2f8SDag-Erling SmørgravThe wildcard
1223*076ad2f8SDag-Erling Smørgrav.Dq *
1224*076ad2f8SDag-Erling Smørgravcan be used for host or port to allow all hosts or ports, respectively.
1225333ee039SDag-Erling SmørgravBy default all port forwarding requests are permitted.
1226545d5ecaSDag-Erling Smørgrav.It Cm PermitRootLogin
1227545d5ecaSDag-Erling SmørgravSpecifies whether root can log in using
1228545d5ecaSDag-Erling Smørgrav.Xr ssh 1 .
1229545d5ecaSDag-Erling SmørgravThe argument must be
1230545d5ecaSDag-Erling Smørgrav.Dq yes ,
1231eccfee6eSDag-Erling Smørgrav.Dq prohibit-password ,
1232545d5ecaSDag-Erling Smørgrav.Dq without-password ,
1233333ee039SDag-Erling Smørgrav.Dq forced-commands-only ,
1234545d5ecaSDag-Erling Smørgravor
1235545d5ecaSDag-Erling Smørgrav.Dq no .
1236545d5ecaSDag-Erling SmørgravThe default is
1237b4245df0SDag-Erling Smørgrav.Dq no .
1238810a15b1SDag-Erling SmørgravNote that if
1239810a15b1SDag-Erling Smørgrav.Cm ChallengeResponseAuthentication
1240810a15b1SDag-Erling Smørgravis
1241810a15b1SDag-Erling Smørgrav.Dq yes ,
1242810a15b1SDag-Erling Smørgravthe root user may be allowed in with its password even if
1243810a15b1SDag-Erling Smørgrav.Cm PermitRootLogin is set to
1244810a15b1SDag-Erling Smørgrav.Dq without-password .
1245545d5ecaSDag-Erling Smørgrav.Pp
1246545d5ecaSDag-Erling SmørgravIf this option is set to
1247eccfee6eSDag-Erling Smørgrav.Dq prohibit-password
1248eccfee6eSDag-Erling Smørgravor
1249333ee039SDag-Erling Smørgrav.Dq without-password ,
1250eccfee6eSDag-Erling Smørgravpassword and keyboard-interactive authentication are disabled for root.
1251545d5ecaSDag-Erling Smørgrav.Pp
1252545d5ecaSDag-Erling SmørgravIf this option is set to
1253333ee039SDag-Erling Smørgrav.Dq forced-commands-only ,
1254545d5ecaSDag-Erling Smørgravroot login with public key authentication will be allowed,
1255545d5ecaSDag-Erling Smørgravbut only if the
1256545d5ecaSDag-Erling Smørgrav.Ar command
1257545d5ecaSDag-Erling Smørgravoption has been specified
1258545d5ecaSDag-Erling Smørgrav(which may be useful for taking remote backups even if root login is
1259cf2b5f3bSDag-Erling Smørgravnormally not allowed).
1260cf2b5f3bSDag-Erling SmørgravAll other authentication methods are disabled for root.
1261545d5ecaSDag-Erling Smørgrav.Pp
1262545d5ecaSDag-Erling SmørgravIf this option is set to
1263333ee039SDag-Erling Smørgrav.Dq no ,
1264545d5ecaSDag-Erling Smørgravroot is not allowed to log in.
1265b74df5b2SDag-Erling Smørgrav.It Cm PermitTunnel
1266b74df5b2SDag-Erling SmørgravSpecifies whether
1267b74df5b2SDag-Erling Smørgrav.Xr tun 4
1268b74df5b2SDag-Erling Smørgravdevice forwarding is allowed.
1269b74df5b2SDag-Erling SmørgravThe argument must be
1270b74df5b2SDag-Erling Smørgrav.Dq yes ,
1271333ee039SDag-Erling Smørgrav.Dq point-to-point
1272333ee039SDag-Erling Smørgrav(layer 3),
1273b74df5b2SDag-Erling Smørgrav.Dq ethernet
1274333ee039SDag-Erling Smørgrav(layer 2), or
1275b74df5b2SDag-Erling Smørgrav.Dq no .
1276333ee039SDag-Erling SmørgravSpecifying
1277333ee039SDag-Erling Smørgrav.Dq yes
1278333ee039SDag-Erling Smørgravpermits both
1279333ee039SDag-Erling Smørgrav.Dq point-to-point
1280333ee039SDag-Erling Smørgravand
1281333ee039SDag-Erling Smørgrav.Dq ethernet .
1282b74df5b2SDag-Erling SmørgravThe default is
1283b74df5b2SDag-Erling Smørgrav.Dq no .
1284bc5531deSDag-Erling Smørgrav.Pp
1285bc5531deSDag-Erling SmørgravIndependent of this setting, the permissions of the selected
1286bc5531deSDag-Erling Smørgrav.Xr tun 4
1287bc5531deSDag-Erling Smørgravdevice must allow access to the user.
1288f7167e0eSDag-Erling Smørgrav.It Cm PermitTTY
1289f7167e0eSDag-Erling SmørgravSpecifies whether
1290f7167e0eSDag-Erling Smørgrav.Xr pty 4
1291f7167e0eSDag-Erling Smørgravallocation is permitted.
1292f7167e0eSDag-Erling SmørgravThe default is
1293f7167e0eSDag-Erling Smørgrav.Dq yes .
1294f388f5efSDag-Erling Smørgrav.It Cm PermitUserEnvironment
1295f388f5efSDag-Erling SmørgravSpecifies whether
1296f388f5efSDag-Erling Smørgrav.Pa ~/.ssh/environment
1297f388f5efSDag-Erling Smørgravand
1298f388f5efSDag-Erling Smørgrav.Cm environment=
1299f388f5efSDag-Erling Smørgravoptions in
1300f388f5efSDag-Erling Smørgrav.Pa ~/.ssh/authorized_keys
1301f388f5efSDag-Erling Smørgravare processed by
1302333ee039SDag-Erling Smørgrav.Xr sshd 8 .
1303f388f5efSDag-Erling SmørgravThe default is
1304f388f5efSDag-Erling Smørgrav.Dq no .
1305f388f5efSDag-Erling SmørgravEnabling environment processing may enable users to bypass access
1306f388f5efSDag-Erling Smørgravrestrictions in some configurations using mechanisms such as
1307f388f5efSDag-Erling Smørgrav.Ev LD_PRELOAD .
1308a0ee8cc6SDag-Erling Smørgrav.It Cm PermitUserRC
1309a0ee8cc6SDag-Erling SmørgravSpecifies whether any
1310a0ee8cc6SDag-Erling Smørgrav.Pa ~/.ssh/rc
1311a0ee8cc6SDag-Erling Smørgravfile is executed.
1312a0ee8cc6SDag-Erling SmørgravThe default is
1313a0ee8cc6SDag-Erling Smørgrav.Dq yes .
1314545d5ecaSDag-Erling Smørgrav.It Cm PidFile
1315a82e551fSDag-Erling SmørgravSpecifies the file that contains the process ID of the
1316557f75e5SDag-Erling SmørgravSSH daemon, or
1317557f75e5SDag-Erling Smørgrav.Dq none
1318557f75e5SDag-Erling Smørgravto not write one.
1319545d5ecaSDag-Erling SmørgravThe default is
1320545d5ecaSDag-Erling Smørgrav.Pa /var/run/sshd.pid .
1321545d5ecaSDag-Erling Smørgrav.It Cm Port
1322545d5ecaSDag-Erling SmørgravSpecifies the port number that
1323333ee039SDag-Erling Smørgrav.Xr sshd 8
1324545d5ecaSDag-Erling Smørgravlistens on.
1325545d5ecaSDag-Erling SmørgravThe default is 22.
1326545d5ecaSDag-Erling SmørgravMultiple options of this type are permitted.
1327545d5ecaSDag-Erling SmørgravSee also
1328545d5ecaSDag-Erling Smørgrav.Cm ListenAddress .
1329545d5ecaSDag-Erling Smørgrav.It Cm PrintLastLog
1330545d5ecaSDag-Erling SmørgravSpecifies whether
1331333ee039SDag-Erling Smørgrav.Xr sshd 8
1332aa49c926SDag-Erling Smørgravshould print the date and time of the last user login when a user logs
1333aa49c926SDag-Erling Smørgravin interactively.
1334545d5ecaSDag-Erling SmørgravThe default is
1335545d5ecaSDag-Erling Smørgrav.Dq yes .
1336545d5ecaSDag-Erling Smørgrav.It Cm PrintMotd
1337545d5ecaSDag-Erling SmørgravSpecifies whether
1338333ee039SDag-Erling Smørgrav.Xr sshd 8
1339545d5ecaSDag-Erling Smørgravshould print
1340545d5ecaSDag-Erling Smørgrav.Pa /etc/motd
1341545d5ecaSDag-Erling Smørgravwhen a user logs in interactively.
1342545d5ecaSDag-Erling Smørgrav(On some systems it is also printed by the shell,
1343545d5ecaSDag-Erling Smørgrav.Pa /etc/profile ,
1344545d5ecaSDag-Erling Smørgravor equivalent.)
1345545d5ecaSDag-Erling SmørgravThe default is
1346545d5ecaSDag-Erling Smørgrav.Dq yes .
1347545d5ecaSDag-Erling Smørgrav.It Cm Protocol
1348545d5ecaSDag-Erling SmørgravSpecifies the protocol versions
1349333ee039SDag-Erling Smørgrav.Xr sshd 8
1350f388f5efSDag-Erling Smørgravsupports.
1351545d5ecaSDag-Erling SmørgravThe possible values are
1352333ee039SDag-Erling Smørgrav.Sq 1
1353545d5ecaSDag-Erling Smørgravand
1354333ee039SDag-Erling Smørgrav.Sq 2 .
1355545d5ecaSDag-Erling SmørgravMultiple versions must be comma-separated.
1356545d5ecaSDag-Erling SmørgravThe default is
1357b15c8340SDag-Erling Smørgrav.Sq 2 .
1358acc1a9efSDag-Erling SmørgravProtocol 1 suffers from a number of cryptographic weaknesses and should
1359acc1a9efSDag-Erling Smørgravnot be used.
1360acc1a9efSDag-Erling SmørgravIt is only offered to support legacy devices.
1361acc1a9efSDag-Erling Smørgrav.Pp
1362f388f5efSDag-Erling SmørgravNote that the order of the protocol list does not indicate preference,
1363f388f5efSDag-Erling Smørgravbecause the client selects among multiple protocol versions offered
1364f388f5efSDag-Erling Smørgravby the server.
1365f388f5efSDag-Erling SmørgravSpecifying
1366f388f5efSDag-Erling Smørgrav.Dq 2,1
1367f388f5efSDag-Erling Smørgravis identical to
1368f388f5efSDag-Erling Smørgrav.Dq 1,2 .
1369bc5531deSDag-Erling Smørgrav.It Cm PubkeyAcceptedKeyTypes
1370bc5531deSDag-Erling SmørgravSpecifies the key types that will be accepted for public key authentication
1371bc5531deSDag-Erling Smørgravas a comma-separated pattern list.
1372eccfee6eSDag-Erling SmørgravAlternately if the specified value begins with a
1373eccfee6eSDag-Erling Smørgrav.Sq +
1374eccfee6eSDag-Erling Smørgravcharacter, then the specified key types will be appended to the default set
1375eccfee6eSDag-Erling Smørgravinstead of replacing them.
1376eccfee6eSDag-Erling SmørgravThe default for this option is:
1377eccfee6eSDag-Erling Smørgrav.Bd -literal -offset 3n
1378eccfee6eSDag-Erling Smørgravecdsa-sha2-nistp256-cert-v01@openssh.com,
1379eccfee6eSDag-Erling Smørgravecdsa-sha2-nistp384-cert-v01@openssh.com,
1380eccfee6eSDag-Erling Smørgravecdsa-sha2-nistp521-cert-v01@openssh.com,
1381eccfee6eSDag-Erling Smørgravssh-ed25519-cert-v01@openssh.com,
1382eccfee6eSDag-Erling Smørgravssh-rsa-cert-v01@openssh.com,
13839ded3306SDag-Erling Smørgravecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,
13849ded3306SDag-Erling Smørgravssh-ed25519,ssh-rsa
1385eccfee6eSDag-Erling Smørgrav.Ed
1386eccfee6eSDag-Erling Smørgrav.Pp
1387bc5531deSDag-Erling SmørgravThe
1388bc5531deSDag-Erling Smørgrav.Fl Q
1389bc5531deSDag-Erling Smørgravoption of
1390bc5531deSDag-Erling Smørgrav.Xr ssh 1
1391bc5531deSDag-Erling Smørgravmay be used to list supported key types.
1392545d5ecaSDag-Erling Smørgrav.It Cm PubkeyAuthentication
1393545d5ecaSDag-Erling SmørgravSpecifies whether public key authentication is allowed.
1394545d5ecaSDag-Erling SmørgravThe default is
1395545d5ecaSDag-Erling Smørgrav.Dq yes .
1396e4a9863fSDag-Erling Smørgrav.It Cm RekeyLimit
1397e4a9863fSDag-Erling SmørgravSpecifies the maximum amount of data that may be transmitted before the
1398e4a9863fSDag-Erling Smørgravsession key is renegotiated, optionally followed a maximum amount of
1399e4a9863fSDag-Erling Smørgravtime that may pass before the session key is renegotiated.
1400e4a9863fSDag-Erling SmørgravThe first argument is specified in bytes and may have a suffix of
1401e4a9863fSDag-Erling Smørgrav.Sq K ,
1402e4a9863fSDag-Erling Smørgrav.Sq M ,
1403e4a9863fSDag-Erling Smørgravor
1404e4a9863fSDag-Erling Smørgrav.Sq G
1405e4a9863fSDag-Erling Smørgravto indicate Kilobytes, Megabytes, or Gigabytes, respectively.
1406e4a9863fSDag-Erling SmørgravThe default is between
1407e4a9863fSDag-Erling Smørgrav.Sq 1G
1408e4a9863fSDag-Erling Smørgravand
1409e4a9863fSDag-Erling Smørgrav.Sq 4G ,
1410e4a9863fSDag-Erling Smørgravdepending on the cipher.
1411e4a9863fSDag-Erling SmørgravThe optional second value is specified in seconds and may use any of the
1412e4a9863fSDag-Erling Smørgravunits documented in the
1413e4a9863fSDag-Erling Smørgrav.Sx TIME FORMATS
1414e4a9863fSDag-Erling Smørgravsection.
1415e4a9863fSDag-Erling SmørgravThe default value for
1416e4a9863fSDag-Erling Smørgrav.Cm RekeyLimit
1417e4a9863fSDag-Erling Smørgravis
1418e4a9863fSDag-Erling Smørgrav.Dq default none ,
1419e4a9863fSDag-Erling Smørgravwhich means that rekeying is performed after the cipher's default amount
1420e4a9863fSDag-Erling Smørgravof data has been sent or received and no time based rekeying is done.
1421b15c8340SDag-Erling Smørgrav.It Cm RevokedKeys
1422557f75e5SDag-Erling SmørgravSpecifies revoked public keys file, or
1423557f75e5SDag-Erling Smørgrav.Dq none
1424557f75e5SDag-Erling Smørgravto not use one.
1425b15c8340SDag-Erling SmørgravKeys listed in this file will be refused for public key authentication.
1426b15c8340SDag-Erling SmørgravNote that if this file is not readable, then public key authentication will
1427b15c8340SDag-Erling Smørgravbe refused for all users.
14286888a9beSDag-Erling SmørgravKeys may be specified as a text file, listing one public key per line, or as
14296888a9beSDag-Erling Smørgravan OpenSSH Key Revocation List (KRL) as generated by
14306888a9beSDag-Erling Smørgrav.Xr ssh-keygen 1 .
1431e4a9863fSDag-Erling SmørgravFor more information on KRLs, see the KEY REVOCATION LISTS section in
14326888a9beSDag-Erling Smørgrav.Xr ssh-keygen 1 .
1433545d5ecaSDag-Erling Smørgrav.It Cm RhostsRSAAuthentication
143435d4ccfbSDag-Erling SmørgravSpecifies whether rhosts or
143535d4ccfbSDag-Erling Smørgrav.Pa /etc/hosts.equiv
143635d4ccfbSDag-Erling Smørgravauthentication together
1437545d5ecaSDag-Erling Smørgravwith successful RSA host authentication is allowed.
1438545d5ecaSDag-Erling SmørgravThe default is
1439545d5ecaSDag-Erling Smørgrav.Dq no .
1440545d5ecaSDag-Erling SmørgravThis option applies to protocol version 1 only.
1441545d5ecaSDag-Erling Smørgrav.It Cm RSAAuthentication
1442545d5ecaSDag-Erling SmørgravSpecifies whether pure RSA authentication is allowed.
1443545d5ecaSDag-Erling SmørgravThe default is
1444545d5ecaSDag-Erling Smørgrav.Dq yes .
1445545d5ecaSDag-Erling SmørgravThis option applies to protocol version 1 only.
1446545d5ecaSDag-Erling Smørgrav.It Cm ServerKeyBits
1447545d5ecaSDag-Erling SmørgravDefines the number of bits in the ephemeral protocol version 1 server key.
1448eccfee6eSDag-Erling SmørgravThe default and minimum value is 1024.
1449a0ee8cc6SDag-Erling Smørgrav.It Cm StreamLocalBindMask
1450a0ee8cc6SDag-Erling SmørgravSets the octal file creation mode mask
1451a0ee8cc6SDag-Erling Smørgrav.Pq umask
1452a0ee8cc6SDag-Erling Smørgravused when creating a Unix-domain socket file for local or remote
1453a0ee8cc6SDag-Erling Smørgravport forwarding.
1454a0ee8cc6SDag-Erling SmørgravThis option is only used for port forwarding to a Unix-domain socket file.
1455a0ee8cc6SDag-Erling Smørgrav.Pp
1456a0ee8cc6SDag-Erling SmørgravThe default value is 0177, which creates a Unix-domain socket file that is
1457a0ee8cc6SDag-Erling Smørgravreadable and writable only by the owner.
1458a0ee8cc6SDag-Erling SmørgravNote that not all operating systems honor the file mode on Unix-domain
1459a0ee8cc6SDag-Erling Smørgravsocket files.
1460a0ee8cc6SDag-Erling Smørgrav.It Cm StreamLocalBindUnlink
1461a0ee8cc6SDag-Erling SmørgravSpecifies whether to remove an existing Unix-domain socket file for local
1462a0ee8cc6SDag-Erling Smørgravor remote port forwarding before creating a new one.
1463a0ee8cc6SDag-Erling SmørgravIf the socket file already exists and
1464a0ee8cc6SDag-Erling Smørgrav.Cm StreamLocalBindUnlink
1465a0ee8cc6SDag-Erling Smørgravis not enabled,
1466a0ee8cc6SDag-Erling Smørgrav.Nm sshd
1467a0ee8cc6SDag-Erling Smørgravwill be unable to forward the port to the Unix-domain socket file.
1468a0ee8cc6SDag-Erling SmørgravThis option is only used for port forwarding to a Unix-domain socket file.
1469a0ee8cc6SDag-Erling Smørgrav.Pp
1470a0ee8cc6SDag-Erling SmørgravThe argument must be
1471a0ee8cc6SDag-Erling Smørgrav.Dq yes
1472a0ee8cc6SDag-Erling Smørgravor
1473a0ee8cc6SDag-Erling Smørgrav.Dq no .
1474a0ee8cc6SDag-Erling SmørgravThe default is
1475a0ee8cc6SDag-Erling Smørgrav.Dq no .
1476545d5ecaSDag-Erling Smørgrav.It Cm StrictModes
1477545d5ecaSDag-Erling SmørgravSpecifies whether
1478333ee039SDag-Erling Smørgrav.Xr sshd 8
1479545d5ecaSDag-Erling Smørgravshould check file modes and ownership of the
1480545d5ecaSDag-Erling Smørgravuser's files and home directory before accepting login.
1481545d5ecaSDag-Erling SmørgravThis is normally desirable because novices sometimes accidentally leave their
1482545d5ecaSDag-Erling Smørgravdirectory or files world-writable.
1483545d5ecaSDag-Erling SmørgravThe default is
1484545d5ecaSDag-Erling Smørgrav.Dq yes .
1485b15c8340SDag-Erling SmørgravNote that this does not apply to
1486b15c8340SDag-Erling Smørgrav.Cm ChrootDirectory ,
1487b15c8340SDag-Erling Smørgravwhose permissions and ownership are checked unconditionally.
1488545d5ecaSDag-Erling Smørgrav.It Cm Subsystem
1489333ee039SDag-Erling SmørgravConfigures an external subsystem (e.g. file transfer daemon).
1490333ee039SDag-Erling SmørgravArguments should be a subsystem name and a command (with optional arguments)
1491333ee039SDag-Erling Smørgravto execute upon subsystem request.
1492d4af9e69SDag-Erling Smørgrav.Pp
1493545d5ecaSDag-Erling SmørgravThe command
1494545d5ecaSDag-Erling Smørgrav.Xr sftp-server 8
1495545d5ecaSDag-Erling Smørgravimplements the
1496545d5ecaSDag-Erling Smørgrav.Dq sftp
1497545d5ecaSDag-Erling Smørgravfile transfer subsystem.
1498d4af9e69SDag-Erling Smørgrav.Pp
1499d4af9e69SDag-Erling SmørgravAlternately the name
1500d4af9e69SDag-Erling Smørgrav.Dq internal-sftp
1501d4af9e69SDag-Erling Smørgravimplements an in-process
1502d4af9e69SDag-Erling Smørgrav.Dq sftp
1503d4af9e69SDag-Erling Smørgravserver.
1504d4af9e69SDag-Erling SmørgravThis may simplify configurations using
1505d4af9e69SDag-Erling Smørgrav.Cm ChrootDirectory
1506d4af9e69SDag-Erling Smørgravto force a different filesystem root on clients.
1507d4af9e69SDag-Erling Smørgrav.Pp
1508545d5ecaSDag-Erling SmørgravBy default no subsystems are defined.
1509545d5ecaSDag-Erling Smørgrav.It Cm SyslogFacility
1510545d5ecaSDag-Erling SmørgravGives the facility code that is used when logging messages from
1511333ee039SDag-Erling Smørgrav.Xr sshd 8 .
1512545d5ecaSDag-Erling SmørgravThe possible values are: DAEMON, USER, AUTH, LOCAL0, LOCAL1, LOCAL2,
1513545d5ecaSDag-Erling SmørgravLOCAL3, LOCAL4, LOCAL5, LOCAL6, LOCAL7.
1514545d5ecaSDag-Erling SmørgravThe default is AUTH.
15151ec0d754SDag-Erling Smørgrav.It Cm TCPKeepAlive
15161ec0d754SDag-Erling SmørgravSpecifies whether the system should send TCP keepalive messages to the
15171ec0d754SDag-Erling Smørgravother side.
15181ec0d754SDag-Erling SmørgravIf they are sent, death of the connection or crash of one
15191ec0d754SDag-Erling Smørgravof the machines will be properly noticed.
15201ec0d754SDag-Erling SmørgravHowever, this means that
15211ec0d754SDag-Erling Smørgravconnections will die if the route is down temporarily, and some people
15221ec0d754SDag-Erling Smørgravfind it annoying.
15231ec0d754SDag-Erling SmørgravOn the other hand, if TCP keepalives are not sent,
15241ec0d754SDag-Erling Smørgravsessions may hang indefinitely on the server, leaving
15251ec0d754SDag-Erling Smørgrav.Dq ghost
15261ec0d754SDag-Erling Smørgravusers and consuming server resources.
15271ec0d754SDag-Erling Smørgrav.Pp
15281ec0d754SDag-Erling SmørgravThe default is
15291ec0d754SDag-Erling Smørgrav.Dq yes
15301ec0d754SDag-Erling Smørgrav(to send TCP keepalive messages), and the server will notice
15311ec0d754SDag-Erling Smørgravif the network goes down or the client host crashes.
15321ec0d754SDag-Erling SmørgravThis avoids infinitely hanging sessions.
15331ec0d754SDag-Erling Smørgrav.Pp
15341ec0d754SDag-Erling SmørgravTo disable TCP keepalive messages, the value should be set to
15351ec0d754SDag-Erling Smørgrav.Dq no .
1536b15c8340SDag-Erling Smørgrav.It Cm TrustedUserCAKeys
1537b15c8340SDag-Erling SmørgravSpecifies a file containing public keys of certificate authorities that are
1538557f75e5SDag-Erling Smørgravtrusted to sign user certificates for authentication, or
1539557f75e5SDag-Erling Smørgrav.Dq none
1540557f75e5SDag-Erling Smørgravto not use one.
1541b15c8340SDag-Erling SmørgravKeys are listed one per line; empty lines and comments starting with
1542b15c8340SDag-Erling Smørgrav.Ql #
1543b15c8340SDag-Erling Smørgravare allowed.
1544b15c8340SDag-Erling SmørgravIf a certificate is presented for authentication and has its signing CA key
1545b15c8340SDag-Erling Smørgravlisted in this file, then it may be used for authentication for any user
1546b15c8340SDag-Erling Smørgravlisted in the certificate's principals list.
1547b15c8340SDag-Erling SmørgravNote that certificates that lack a list of principals will not be permitted
1548b15c8340SDag-Erling Smørgravfor authentication using
1549b15c8340SDag-Erling Smørgrav.Cm TrustedUserCAKeys .
1550e4a9863fSDag-Erling SmørgravFor more details on certificates, see the CERTIFICATES section in
1551b15c8340SDag-Erling Smørgrav.Xr ssh-keygen 1 .
1552b2af61ecSKurt Lidl.It Cm UseBlacklist
1553b2af61ecSKurt LidlSpecifies whether
1554b2af61ecSKurt Lidl.Xr sshd 8
1555b2af61ecSKurt Lidlattempts to send authentication success and failure messages
1556b2af61ecSKurt Lidlto the
1557b2af61ecSKurt Lidl.Xr blacklistd 8
1558b2af61ecSKurt Lidldaemon.
1559b2af61ecSKurt LidlThe default is
1560b2af61ecSKurt Lidl.Dq no .
1561cf2b5f3bSDag-Erling Smørgrav.It Cm UseDNS
1562cf2b5f3bSDag-Erling SmørgravSpecifies whether
1563333ee039SDag-Erling Smørgrav.Xr sshd 8
1564eccfee6eSDag-Erling Smørgravshould look up the remote host name, and to check that
1565cf2b5f3bSDag-Erling Smørgravthe resolved host name for the remote IP address maps back to the
1566cf2b5f3bSDag-Erling Smørgravvery same IP address.
1567eccfee6eSDag-Erling Smørgrav.Pp
1568eccfee6eSDag-Erling SmørgravIf this option is set to
1569c4cd1fa4SDag-Erling Smørgrav.Dq no ,
1570c4cd1fa4SDag-Erling Smørgravthen only addresses and not host names may be used in
1571*076ad2f8SDag-Erling Smørgrav.Pa ~/.ssh/authorized_keys
1572eccfee6eSDag-Erling Smørgrav.Cm from
1573eccfee6eSDag-Erling Smørgravand
1574fc1ba28aSDag-Erling Smørgrav.Nm
1575eccfee6eSDag-Erling Smørgrav.Cm Match
1576eccfee6eSDag-Erling Smørgrav.Cm Host
1577eccfee6eSDag-Erling Smørgravdirectives.
1578c4cd1fa4SDag-Erling SmørgravThe default is
1579c4cd1fa4SDag-Erling Smørgrav.Dq yes .
1580545d5ecaSDag-Erling Smørgrav.It Cm UseLogin
1581545d5ecaSDag-Erling SmørgravSpecifies whether
1582545d5ecaSDag-Erling Smørgrav.Xr login 1
1583545d5ecaSDag-Erling Smørgravis used for interactive login sessions.
1584545d5ecaSDag-Erling SmørgravThe default is
1585545d5ecaSDag-Erling Smørgrav.Dq no .
1586545d5ecaSDag-Erling SmørgravNote that
1587545d5ecaSDag-Erling Smørgrav.Xr login 1
1588545d5ecaSDag-Erling Smørgravis never used for remote command execution.
1589545d5ecaSDag-Erling SmørgravNote also, that if this is enabled,
1590545d5ecaSDag-Erling Smørgrav.Cm X11Forwarding
1591545d5ecaSDag-Erling Smørgravwill be disabled because
1592545d5ecaSDag-Erling Smørgrav.Xr login 1
1593545d5ecaSDag-Erling Smørgravdoes not know how to handle
1594545d5ecaSDag-Erling Smørgrav.Xr xauth 1
1595e73e9afaSDag-Erling Smørgravcookies.
1596e73e9afaSDag-Erling SmørgravIf
1597545d5ecaSDag-Erling Smørgrav.Cm UsePrivilegeSeparation
1598545d5ecaSDag-Erling Smørgravis specified, it will be disabled after authentication.
1599cf2b5f3bSDag-Erling Smørgrav.It Cm UsePAM
160021e764dfSDag-Erling SmørgravEnables the Pluggable Authentication Module interface.
160121e764dfSDag-Erling SmørgravIf set to
160221e764dfSDag-Erling Smørgrav.Dq yes
160321e764dfSDag-Erling Smørgravthis will enable PAM authentication using
160421e764dfSDag-Erling Smørgrav.Cm ChallengeResponseAuthentication
1605333ee039SDag-Erling Smørgravand
1606333ee039SDag-Erling Smørgrav.Cm PasswordAuthentication
1607333ee039SDag-Erling Smørgravin addition to PAM account and session module processing for all
1608333ee039SDag-Erling Smørgravauthentication types.
160921e764dfSDag-Erling Smørgrav.Pp
161021e764dfSDag-Erling SmørgravBecause PAM challenge-response authentication usually serves an equivalent
161121e764dfSDag-Erling Smørgravrole to password authentication, you should disable either
161221e764dfSDag-Erling Smørgrav.Cm PasswordAuthentication
161321e764dfSDag-Erling Smørgravor
161421e764dfSDag-Erling Smørgrav.Cm ChallengeResponseAuthentication.
161521e764dfSDag-Erling Smørgrav.Pp
161621e764dfSDag-Erling SmørgravIf
161721e764dfSDag-Erling Smørgrav.Cm UsePAM
161821e764dfSDag-Erling Smørgravis enabled, you will not be able to run
161921e764dfSDag-Erling Smørgrav.Xr sshd 8
162021e764dfSDag-Erling Smørgravas a non-root user.
162121e764dfSDag-Erling SmørgravThe default is
1622d2b1b4f3SDag-Erling Smørgrav.Dq yes .
1623545d5ecaSDag-Erling Smørgrav.It Cm UsePrivilegeSeparation
1624545d5ecaSDag-Erling SmørgravSpecifies whether
1625333ee039SDag-Erling Smørgrav.Xr sshd 8
1626545d5ecaSDag-Erling Smørgravseparates privileges by creating an unprivileged child process
1627e73e9afaSDag-Erling Smørgravto deal with incoming network traffic.
1628e73e9afaSDag-Erling SmørgravAfter successful authentication, another process will be created that has
1629e73e9afaSDag-Erling Smørgravthe privilege of the authenticated user.
1630e73e9afaSDag-Erling SmørgravThe goal of privilege separation is to prevent privilege
1631545d5ecaSDag-Erling Smørgravescalation by containing any corruption within the unprivileged processes.
1632acc1a9efSDag-Erling SmørgravThe argument must be
1633acc1a9efSDag-Erling Smørgrav.Dq yes ,
1634acc1a9efSDag-Erling Smørgrav.Dq no ,
1635acc1a9efSDag-Erling Smørgravor
16362b1970f3SDag-Erling Smørgrav.Dq sandbox .
1637e146993eSDag-Erling SmørgravIf
1638e146993eSDag-Erling Smørgrav.Cm UsePrivilegeSeparation
1639e146993eSDag-Erling Smørgravis set to
1640e146993eSDag-Erling Smørgrav.Dq sandbox
1641e146993eSDag-Erling Smørgravthen the pre-authentication unprivileged process is subject to additional
1642e146993eSDag-Erling Smørgravrestrictions.
1643acc1a9efSDag-Erling SmørgravThe default is
1644acc1a9efSDag-Erling Smørgrav.Dq sandbox .
164535d4ccfbSDag-Erling Smørgrav.It Cm VersionAddendum
1646462c32cbSDag-Erling SmørgravOptionally specifies additional text to append to the SSH protocol banner
1647462c32cbSDag-Erling Smørgravsent by the server upon connection.
1648ee8aeb14SDag-Erling SmørgravThe default is
16499ea45e75SXin LI.Dq FreeBSD-20161230 .
16506e571081SBryan DreweryThe value
16516e571081SBryan Drewery.Dq none
16526e571081SBryan Drewerymay be used to disable this.
1653545d5ecaSDag-Erling Smørgrav.It Cm X11DisplayOffset
1654545d5ecaSDag-Erling SmørgravSpecifies the first display number available for
1655333ee039SDag-Erling Smørgrav.Xr sshd 8 Ns 's
1656545d5ecaSDag-Erling SmørgravX11 forwarding.
1657333ee039SDag-Erling SmørgravThis prevents sshd from interfering with real X11 servers.
1658545d5ecaSDag-Erling SmørgravThe default is 10.
1659545d5ecaSDag-Erling Smørgrav.It Cm X11Forwarding
1660545d5ecaSDag-Erling SmørgravSpecifies whether X11 forwarding is permitted.
1661f388f5efSDag-Erling SmørgravThe argument must be
1662f388f5efSDag-Erling Smørgrav.Dq yes
1663f388f5efSDag-Erling Smørgravor
1664f388f5efSDag-Erling Smørgrav.Dq no .
1665545d5ecaSDag-Erling SmørgravThe default is
1666ee8aeb14SDag-Erling Smørgrav.Dq yes .
1667f388f5efSDag-Erling Smørgrav.Pp
1668f388f5efSDag-Erling SmørgravWhen X11 forwarding is enabled, there may be additional exposure to
1669f388f5efSDag-Erling Smørgravthe server and to client displays if the
1670333ee039SDag-Erling Smørgrav.Xr sshd 8
1671f388f5efSDag-Erling Smørgravproxy display is configured to listen on the wildcard address (see
1672f388f5efSDag-Erling Smørgrav.Cm X11UseLocalhost
1673333ee039SDag-Erling Smørgravbelow), though this is not the default.
1674f388f5efSDag-Erling SmørgravAdditionally, the authentication spoofing and authentication data
1675f388f5efSDag-Erling Smørgravverification and substitution occur on the client side.
1676f388f5efSDag-Erling SmørgravThe security risk of using X11 forwarding is that the client's X11
1677333ee039SDag-Erling Smørgravdisplay server may be exposed to attack when the SSH client requests
1678f388f5efSDag-Erling Smørgravforwarding (see the warnings for
1679f388f5efSDag-Erling Smørgrav.Cm ForwardX11
1680f388f5efSDag-Erling Smørgravin
1681f388f5efSDag-Erling Smørgrav.Xr ssh_config 5 ) .
1682f388f5efSDag-Erling SmørgravA system administrator may have a stance in which they want to
1683f388f5efSDag-Erling Smørgravprotect clients that may expose themselves to attack by unwittingly
1684f388f5efSDag-Erling Smørgravrequesting X11 forwarding, which can warrant a
1685f388f5efSDag-Erling Smørgrav.Dq no
1686f388f5efSDag-Erling Smørgravsetting.
1687f388f5efSDag-Erling Smørgrav.Pp
1688f388f5efSDag-Erling SmørgravNote that disabling X11 forwarding does not prevent users from
1689f388f5efSDag-Erling Smørgravforwarding X11 traffic, as users can always install their own forwarders.
1690545d5ecaSDag-Erling SmørgravX11 forwarding is automatically disabled if
1691545d5ecaSDag-Erling Smørgrav.Cm UseLogin
1692545d5ecaSDag-Erling Smørgravis enabled.
1693545d5ecaSDag-Erling Smørgrav.It Cm X11UseLocalhost
1694545d5ecaSDag-Erling SmørgravSpecifies whether
1695333ee039SDag-Erling Smørgrav.Xr sshd 8
1696545d5ecaSDag-Erling Smørgravshould bind the X11 forwarding server to the loopback address or to
1697e73e9afaSDag-Erling Smørgravthe wildcard address.
1698e73e9afaSDag-Erling SmørgravBy default,
1699333ee039SDag-Erling Smørgravsshd binds the forwarding server to the loopback address and sets the
1700545d5ecaSDag-Erling Smørgravhostname part of the
1701545d5ecaSDag-Erling Smørgrav.Ev DISPLAY
1702545d5ecaSDag-Erling Smørgravenvironment variable to
1703545d5ecaSDag-Erling Smørgrav.Dq localhost .
1704f388f5efSDag-Erling SmørgravThis prevents remote hosts from connecting to the proxy display.
1705545d5ecaSDag-Erling SmørgravHowever, some older X11 clients may not function with this
1706545d5ecaSDag-Erling Smørgravconfiguration.
1707545d5ecaSDag-Erling Smørgrav.Cm X11UseLocalhost
1708545d5ecaSDag-Erling Smørgravmay be set to
1709545d5ecaSDag-Erling Smørgrav.Dq no
1710545d5ecaSDag-Erling Smørgravto specify that the forwarding server should be bound to the wildcard
1711545d5ecaSDag-Erling Smørgravaddress.
1712545d5ecaSDag-Erling SmørgravThe argument must be
1713545d5ecaSDag-Erling Smørgrav.Dq yes
1714545d5ecaSDag-Erling Smørgravor
1715545d5ecaSDag-Erling Smørgrav.Dq no .
1716545d5ecaSDag-Erling SmørgravThe default is
1717545d5ecaSDag-Erling Smørgrav.Dq yes .
1718545d5ecaSDag-Erling Smørgrav.It Cm XAuthLocation
1719f388f5efSDag-Erling SmørgravSpecifies the full pathname of the
1720545d5ecaSDag-Erling Smørgrav.Xr xauth 1
1721557f75e5SDag-Erling Smørgravprogram, or
1722557f75e5SDag-Erling Smørgrav.Dq none
1723557f75e5SDag-Erling Smørgravto not use one.
1724545d5ecaSDag-Erling SmørgravThe default is
1725ffea3f5aSDag-Erling Smørgrav.Pa /usr/local/bin/xauth .
1726545d5ecaSDag-Erling Smørgrav.El
1727333ee039SDag-Erling Smørgrav.Sh TIME FORMATS
1728333ee039SDag-Erling Smørgrav.Xr sshd 8
1729545d5ecaSDag-Erling Smørgravcommand-line arguments and configuration file options that specify time
1730545d5ecaSDag-Erling Smørgravmay be expressed using a sequence of the form:
1731545d5ecaSDag-Erling Smørgrav.Sm off
1732f388f5efSDag-Erling Smørgrav.Ar time Op Ar qualifier ,
1733545d5ecaSDag-Erling Smørgrav.Sm on
1734545d5ecaSDag-Erling Smørgravwhere
1735545d5ecaSDag-Erling Smørgrav.Ar time
1736545d5ecaSDag-Erling Smørgravis a positive integer value and
1737545d5ecaSDag-Erling Smørgrav.Ar qualifier
1738545d5ecaSDag-Erling Smørgravis one of the following:
1739545d5ecaSDag-Erling Smørgrav.Pp
1740545d5ecaSDag-Erling Smørgrav.Bl -tag -width Ds -compact -offset indent
1741333ee039SDag-Erling Smørgrav.It Aq Cm none
1742545d5ecaSDag-Erling Smørgravseconds
1743545d5ecaSDag-Erling Smørgrav.It Cm s | Cm S
1744545d5ecaSDag-Erling Smørgravseconds
1745545d5ecaSDag-Erling Smørgrav.It Cm m | Cm M
1746545d5ecaSDag-Erling Smørgravminutes
1747545d5ecaSDag-Erling Smørgrav.It Cm h | Cm H
1748545d5ecaSDag-Erling Smørgravhours
1749545d5ecaSDag-Erling Smørgrav.It Cm d | Cm D
1750545d5ecaSDag-Erling Smørgravdays
1751545d5ecaSDag-Erling Smørgrav.It Cm w | Cm W
1752545d5ecaSDag-Erling Smørgravweeks
1753545d5ecaSDag-Erling Smørgrav.El
1754545d5ecaSDag-Erling Smørgrav.Pp
1755545d5ecaSDag-Erling SmørgravEach member of the sequence is added together to calculate
1756545d5ecaSDag-Erling Smørgravthe total time value.
1757545d5ecaSDag-Erling Smørgrav.Pp
1758545d5ecaSDag-Erling SmørgravTime format examples:
1759545d5ecaSDag-Erling Smørgrav.Pp
1760545d5ecaSDag-Erling Smørgrav.Bl -tag -width Ds -compact -offset indent
1761545d5ecaSDag-Erling Smørgrav.It 600
1762545d5ecaSDag-Erling Smørgrav600 seconds (10 minutes)
1763545d5ecaSDag-Erling Smørgrav.It 10m
1764545d5ecaSDag-Erling Smørgrav10 minutes
1765545d5ecaSDag-Erling Smørgrav.It 1h30m
1766545d5ecaSDag-Erling Smørgrav1 hour 30 minutes (90 minutes)
1767545d5ecaSDag-Erling Smørgrav.El
1768545d5ecaSDag-Erling Smørgrav.Sh FILES
1769545d5ecaSDag-Erling Smørgrav.Bl -tag -width Ds
1770545d5ecaSDag-Erling Smørgrav.It Pa /etc/ssh/sshd_config
1771545d5ecaSDag-Erling SmørgravContains configuration data for
1772333ee039SDag-Erling Smørgrav.Xr sshd 8 .
1773545d5ecaSDag-Erling SmørgravThis file should be writable by root only, but it is recommended
1774545d5ecaSDag-Erling Smørgrav(though not necessary) that it be world-readable.
1775545d5ecaSDag-Erling Smørgrav.El
1776cf2b5f3bSDag-Erling Smørgrav.Sh SEE ALSO
1777cf2b5f3bSDag-Erling Smørgrav.Xr sshd 8
1778545d5ecaSDag-Erling Smørgrav.Sh AUTHORS
1779545d5ecaSDag-Erling SmørgravOpenSSH is a derivative of the original and free
1780545d5ecaSDag-Erling Smørgravssh 1.2.12 release by Tatu Ylonen.
1781545d5ecaSDag-Erling SmørgravAaron Campbell, Bob Beck, Markus Friedl, Niels Provos,
1782545d5ecaSDag-Erling SmørgravTheo de Raadt and Dug Song
1783545d5ecaSDag-Erling Smørgravremoved many bugs, re-added newer features and
1784545d5ecaSDag-Erling Smørgravcreated OpenSSH.
1785545d5ecaSDag-Erling SmørgravMarkus Friedl contributed the support for SSH
1786545d5ecaSDag-Erling Smørgravprotocol versions 1.5 and 2.0.
1787545d5ecaSDag-Erling SmørgravNiels Provos and Markus Friedl contributed support
1788545d5ecaSDag-Erling Smørgravfor privilege separation.
1789