blob: b294efc2dc0ee4720080c244784c8b444a5cf33f [file] [log] [blame]
Ben Lindstrom9f049032002-06-21 00:59:05 +00001.\"
2.\" Author: Tatu Ylonen <ylo@cs.hut.fi>
3.\" Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
4.\" All rights reserved
5.\"
6.\" As far as I am concerned, the code I have written for this software
7.\" can be used freely for any purpose. Any derived versions of this
8.\" software must be clearly marked as such, and if the derived work is
9.\" incompatible with the protocol description in the RFC file, it must be
10.\" called by a name other than "ssh" or "Secure Shell".
11.\"
12.\" Copyright (c) 1999,2000 Markus Friedl. All rights reserved.
13.\" Copyright (c) 1999 Aaron Campbell. All rights reserved.
14.\" Copyright (c) 1999 Theo de Raadt. All rights reserved.
15.\"
16.\" Redistribution and use in source and binary forms, with or without
17.\" modification, are permitted provided that the following conditions
18.\" are met:
19.\" 1. Redistributions of source code must retain the above copyright
20.\" notice, this list of conditions and the following disclaimer.
21.\" 2. Redistributions in binary form must reproduce the above copyright
22.\" notice, this list of conditions and the following disclaimer in the
23.\" documentation and/or other materials provided with the distribution.
24.\"
25.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
26.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
27.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
28.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
29.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
30.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
31.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
32.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
33.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
34.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
35.\"
jmc@openbsd.org4e04f462020-04-17 06:12:41 +000036.\" $OpenBSD: sshd_config.5,v 1.311 2020/04/17 06:12:41 jmc Exp $
djm@openbsd.org321c7142020-04-17 03:23:13 +000037.Dd $Mdocdate: April 17 2020 $
Ben Lindstrom9f049032002-06-21 00:59:05 +000038.Dt SSHD_CONFIG 5
39.Os
40.Sh NAME
41.Nm sshd_config
jmc@openbsd.org483cc722019-11-30 07:07:59 +000042.Nd OpenSSH daemon configuration file
Ben Lindstrom9f049032002-06-21 00:59:05 +000043.Sh DESCRIPTION
Damien Millerf4f22b52006-03-15 11:57:25 +110044.Xr sshd 8
Ben Lindstrom9f049032002-06-21 00:59:05 +000045reads configuration data from
46.Pa /etc/ssh/sshd_config
47(or the file specified with
48.Fl f
49on the command line).
50The file contains keyword-argument pairs, one per line.
benno@openbsd.orgcfa46822017-10-09 20:12:51 +000051For each keyword, the first obtained value will be used.
Ben Lindstrom9f049032002-06-21 00:59:05 +000052Lines starting with
53.Ql #
54and empty lines are interpreted as comments.
Damien Miller306d1182006-03-15 12:05:59 +110055Arguments may optionally be enclosed in double quotes
56.Pq \&"
57in order to represent arguments containing spaces.
Ben Lindstrom9f049032002-06-21 00:59:05 +000058.Pp
59The possible
60keywords and their meanings are as follows (note that
61keywords are case-insensitive and arguments are case-sensitive):
62.Bl -tag -width Ds
Darren Tucker46bc0752004-05-02 22:11:30 +100063.It Cm AcceptEnv
64Specifies what environment variables sent by the client will be copied into
65the session's
66.Xr environ 7 .
67See
68.Cm SendEnv
djm@openbsd.org7082bb52018-06-09 03:01:12 +000069and
70.Cm SetEnv
Darren Tucker46bc0752004-05-02 22:11:30 +100071in
72.Xr ssh_config 5
73for how to configure the client.
jmc@openbsd.orga685ae82016-02-17 07:38:19 +000074The
dtucker@openbsd.org85b96ef2015-04-28 10:17:58 +000075.Ev TERM
djm@openbsd.org1678d422018-06-09 03:18:11 +000076environment variable is always accepted whenever the client
djm@openbsd.org732d61f2015-06-05 03:44:14 +000077requests a pseudo-terminal as it is required by the protocol.
Darren Tucker46bc0752004-05-02 22:11:30 +100078Variables are specified by name, which may contain the wildcard characters
Damien Miller208f1ed2006-03-15 11:56:03 +110079.Ql *
Darren Tucker46bc0752004-05-02 22:11:30 +100080and
81.Ql \&? .
Darren Tucker1e0c9bf2004-05-02 22:12:48 +100082Multiple environment variables may be separated by whitespace or spread
Darren Tucker46bc0752004-05-02 22:11:30 +100083across multiple
84.Cm AcceptEnv
85directives.
Darren Tucker1e0c9bf2004-05-02 22:12:48 +100086Be warned that some environment variables could be used to bypass restricted
Darren Tucker46bc0752004-05-02 22:11:30 +100087user environments.
88For this reason, care should be taken in the use of this directive.
89The default is not to accept any environment variables.
Darren Tucker0f383232005-01-20 10:57:56 +110090.It Cm AddressFamily
91Specifies which address family should be used by
Damien Millerf4f22b52006-03-15 11:57:25 +110092.Xr sshd 8 .
Darren Tucker0f383232005-01-20 10:57:56 +110093Valid arguments are
jmc@openbsd.orgaae4dbd2016-10-07 14:41:52 +000094.Cm any
95(the default),
96.Cm inet
Damien Miller5b0d63f2006-03-15 11:56:56 +110097(use IPv4 only), or
jmc@openbsd.orgaae4dbd2016-10-07 14:41:52 +000098.Cm inet6
Darren Tucker0f383232005-01-20 10:57:56 +110099(use IPv6 only).
Damien Millere9890192008-05-19 14:59:02 +1000100.It Cm AllowAgentForwarding
101Specifies whether
102.Xr ssh-agent 1
103forwarding is permitted.
104The default is
jmc@openbsd.orgaae4dbd2016-10-07 14:41:52 +0000105.Cm yes .
Damien Millere9890192008-05-19 14:59:02 +1000106Note that disabling agent forwarding does not improve security
107unless users are also denied shell access, as they can always install
108their own forwarders.
Ben Lindstrom9f049032002-06-21 00:59:05 +0000109.It Cm AllowGroups
110This keyword can be followed by a list of group name patterns, separated
111by spaces.
112If specified, login is allowed only for users whose primary
113group or supplementary group list matches one of the patterns.
Ben Lindstrom9f049032002-06-21 00:59:05 +0000114Only group names are valid; a numerical group ID is not recognized.
115By default, login is allowed for all groups.
djm@openbsd.orgbf986a92020-01-25 22:36:22 +0000116The allow/deny groups directives are processed in the following order:
Damien Millerac73e512006-03-15 11:58:49 +1100117.Cm DenyGroups ,
Damien Millerac73e512006-03-15 11:58:49 +1100118.Cm AllowGroups .
Damien Miller0c2079d2006-03-15 11:54:21 +1100119.Pp
Damien Millerfecfd112013-07-18 16:11:50 +1000120See PATTERNS in
Damien Miller0c2079d2006-03-15 11:54:21 +1100121.Xr ssh_config 5
122for more information on patterns.
Damien Miller7acefbb2014-07-18 14:11:24 +1000123.It Cm AllowStreamLocalForwarding
124Specifies whether StreamLocal (Unix-domain socket) forwarding is permitted.
125The available options are
jmc@openbsd.orgaae4dbd2016-10-07 14:41:52 +0000126.Cm yes
127(the default)
Damien Miller7acefbb2014-07-18 14:11:24 +1000128or
jmc@openbsd.orgaae4dbd2016-10-07 14:41:52 +0000129.Cm all
Damien Miller7acefbb2014-07-18 14:11:24 +1000130to allow StreamLocal forwarding,
jmc@openbsd.orgaae4dbd2016-10-07 14:41:52 +0000131.Cm no
Damien Miller7acefbb2014-07-18 14:11:24 +1000132to prevent all StreamLocal forwarding,
jmc@openbsd.orgaae4dbd2016-10-07 14:41:52 +0000133.Cm local
Damien Miller7acefbb2014-07-18 14:11:24 +1000134to allow local (from the perspective of
135.Xr ssh 1 )
136forwarding only or
jmc@openbsd.orgaae4dbd2016-10-07 14:41:52 +0000137.Cm remote
Damien Miller7acefbb2014-07-18 14:11:24 +1000138to allow remote forwarding only.
Damien Miller7acefbb2014-07-18 14:11:24 +1000139Note that disabling StreamLocal forwarding does not improve security unless
140users are also denied shell access, as they can always install their
141own forwarders.
jmc@openbsd.orgf219fc82016-09-07 18:39:24 +0000142.It Cm AllowTcpForwarding
143Specifies whether TCP forwarding is permitted.
144The available options are
jmc@openbsd.orgaae4dbd2016-10-07 14:41:52 +0000145.Cm yes
146(the default)
jmc@openbsd.orgf219fc82016-09-07 18:39:24 +0000147or
jmc@openbsd.orgaae4dbd2016-10-07 14:41:52 +0000148.Cm all
jmc@openbsd.orgf219fc82016-09-07 18:39:24 +0000149to allow TCP forwarding,
jmc@openbsd.orgaae4dbd2016-10-07 14:41:52 +0000150.Cm no
jmc@openbsd.orgf219fc82016-09-07 18:39:24 +0000151to prevent all TCP forwarding,
jmc@openbsd.orgaae4dbd2016-10-07 14:41:52 +0000152.Cm local
jmc@openbsd.orgf219fc82016-09-07 18:39:24 +0000153to allow local (from the perspective of
154.Xr ssh 1 )
155forwarding only or
jmc@openbsd.orgaae4dbd2016-10-07 14:41:52 +0000156.Cm remote
jmc@openbsd.orgf219fc82016-09-07 18:39:24 +0000157to allow remote forwarding only.
jmc@openbsd.orgf219fc82016-09-07 18:39:24 +0000158Note that disabling TCP forwarding does not improve security unless
159users are also denied shell access, as they can always install their
160own forwarders.
Ben Lindstrom9f049032002-06-21 00:59:05 +0000161.It Cm AllowUsers
162This keyword can be followed by a list of user name patterns, separated
163by spaces.
Damien Miller5a93add2003-01-24 11:34:52 +1100164If specified, login is allowed only for user names that
Ben Lindstrom9f049032002-06-21 00:59:05 +0000165match one of the patterns.
Ben Lindstrom9f049032002-06-21 00:59:05 +0000166Only user names are valid; a numerical user ID is not recognized.
167By default, login is allowed for all users.
168If the pattern takes the form USER@HOST then USER and HOST
169are separately checked, restricting logins to particular
170users from particular hosts.
jmc@openbsd.orgee1e0a12016-04-27 13:53:48 +0000171HOST criteria may additionally contain addresses to match in CIDR
172address/masklen format.
djm@openbsd.orgbf986a92020-01-25 22:36:22 +0000173The allow/deny users directives are processed in the following order:
Damien Millerac73e512006-03-15 11:58:49 +1100174.Cm DenyUsers ,
djm@openbsd.orgbf986a92020-01-25 22:36:22 +0000175.Cm AllowUsers .
Damien Miller0c2079d2006-03-15 11:54:21 +1100176.Pp
Damien Millerfecfd112013-07-18 16:11:50 +1000177See PATTERNS in
Damien Miller0c2079d2006-03-15 11:54:21 +1100178.Xr ssh_config 5
179for more information on patterns.
Damien Millera6e3f012012-11-04 23:21:40 +1100180.It Cm AuthenticationMethods
181Specifies the authentication methods that must be successfully completed
182for a user to be granted access.
djm@openbsd.org472269f2018-07-20 05:01:10 +0000183This option must be followed by one or more lists of comma-separated
djm@openbsd.orgb64faeb2016-06-17 05:03:40 +0000184authentication method names, or by the single string
jmc@openbsd.orgaae4dbd2016-10-07 14:41:52 +0000185.Cm any
djm@openbsd.orgb64faeb2016-06-17 05:03:40 +0000186to indicate the default behaviour of accepting any single authentication
jmc@openbsd.orgad23a752016-06-17 06:33:30 +0000187method.
jmc@openbsd.orgaae4dbd2016-10-07 14:41:52 +0000188If the default is overridden, then successful authentication requires
djm@openbsd.orgb64faeb2016-06-17 05:03:40 +0000189completion of every method in at least one of these lists.
Damien Millera6e3f012012-11-04 23:21:40 +1100190.Pp
jmc@openbsd.orgaae4dbd2016-10-07 14:41:52 +0000191For example,
192.Qq publickey,password publickey,keyboard-interactive
Damien Millera6e3f012012-11-04 23:21:40 +1100193would require the user to complete public key authentication, followed by
194either password or keyboard interactive authentication.
195Only methods that are next in one or more lists are offered at each stage,
jmc@openbsd.orgaae4dbd2016-10-07 14:41:52 +0000196so for this example it would not be possible to attempt password or
Damien Millera6e3f012012-11-04 23:21:40 +1100197keyboard-interactive authentication before public key.
198.Pp
Damien Miller91a55f22013-04-23 15:18:10 +1000199For keyboard interactive authentication it is also possible to
200restrict authentication to a specific device by appending a
201colon followed by the device identifier
Damien Miller87f08be2018-07-20 13:18:28 +1000202.Cm bsdauth
Damien Miller91a55f22013-04-23 15:18:10 +1000203or
Damien Miller87f08be2018-07-20 13:18:28 +1000204.Cm pam .
Damien Miller91a55f22013-04-23 15:18:10 +1000205depending on the server configuration.
206For example,
jmc@openbsd.orgaae4dbd2016-10-07 14:41:52 +0000207.Qq keyboard-interactive:bsdauth
Damien Miller91a55f22013-04-23 15:18:10 +1000208would restrict keyboard interactive authentication to the
jmc@openbsd.orgaae4dbd2016-10-07 14:41:52 +0000209.Cm bsdauth
Damien Miller91a55f22013-04-23 15:18:10 +1000210device.
211.Pp
jmc@openbsd.orgaae4dbd2016-10-07 14:41:52 +0000212If the publickey method is listed more than once,
djm@openbsd.orgf69b69b2014-12-22 07:51:30 +0000213.Xr sshd 8
214verifies that keys that have been used successfully are not reused for
215subsequent authentications.
jmc@openbsd.orgaae4dbd2016-10-07 14:41:52 +0000216For example,
217.Qq publickey,publickey
218requires successful authentication using two different public keys.
djm@openbsd.orgf69b69b2014-12-22 07:51:30 +0000219.Pp
Damien Millera6e3f012012-11-04 23:21:40 +1100220Note that each authentication method listed should also be explicitly enabled
221in the configuration.
djm@openbsd.org8042bad2017-09-01 05:50:48 +0000222.Pp
223The available authentication methods are:
224.Qq gssapi-with-mic ,
225.Qq hostbased ,
226.Qq keyboard-interactive ,
227.Qq none
228(used for access to password-less accounts when
jmc@openbsd.orgf41bcd72018-05-15 05:40:11 +0000229.Cm PermitEmptyPasswords
djm@openbsd.org8042bad2017-09-01 05:50:48 +0000230is enabled),
231.Qq password
232and
233.Qq publickey .
Damien Miller09d3e122012-10-31 08:58:58 +1100234.It Cm AuthorizedKeysCommand
Damien Millerf33580e2012-11-04 22:22:52 +1100235Specifies a program to be used to look up the user's public keys.
djm@openbsd.org24232a32015-05-21 06:38:35 +0000236The program must be owned by root, not writable by group or others and
237specified by an absolute path.
djm@openbsd.org24232a32015-05-21 06:38:35 +0000238Arguments to
239.Cm AuthorizedKeysCommand
jmc@openbsd.orgde6a1752016-09-22 19:19:01 +0000240accept the tokens described in the
241.Sx TOKENS
242section.
243If no arguments are specified then the username of the target user is used.
djm@openbsd.org24232a32015-05-21 06:38:35 +0000244.Pp
245The program should produce on standard output zero or
jmc@openbsd.orgde6a1752016-09-22 19:19:01 +0000246more lines of authorized_keys output (see
247.Sx AUTHORIZED_KEYS
248in
Damien Millerf33580e2012-11-04 22:22:52 +1100249.Xr sshd 8 ) .
jmc@openbsd.orgde6a1752016-09-22 19:19:01 +0000250.Cm AuthorizedKeysCommand
djm@openbsd.org44ae0092020-04-17 04:27:03 +0000251is tried after the usual
Damien Miller09d3e122012-10-31 08:58:58 +1100252.Cm AuthorizedKeysFile
djm@openbsd.org44ae0092020-04-17 04:27:03 +0000253files and will not be executed if a matching key is found there.
jmc@openbsd.orgaae4dbd2016-10-07 14:41:52 +0000254By default, no
255.Cm AuthorizedKeysCommand
256is run.
Damien Miller09d3e122012-10-31 08:58:58 +1100257.It Cm AuthorizedKeysCommandUser
jmc@openbsd.orgaae4dbd2016-10-07 14:41:52 +0000258Specifies the user under whose account the
259.Cm AuthorizedKeysCommand
260is run.
Damien Miller09d3e122012-10-31 08:58:58 +1100261It is recommended to use a dedicated user that has no other role on the host
262than running authorized keys commands.
djm@openbsd.orgf1c4d8e2014-12-22 08:04:23 +0000263If
djm@openbsd.orgd663bea2014-12-11 05:25:06 +0000264.Cm AuthorizedKeysCommand
djm@openbsd.orgf1c4d8e2014-12-22 08:04:23 +0000265is specified but
266.Cm AuthorizedKeysCommandUser
267is not, then
268.Xr sshd 8
269will refuse to start.
Ben Lindstrom9f049032002-06-21 00:59:05 +0000270.It Cm AuthorizedKeysFile
jmc@openbsd.orgde6a1752016-09-22 19:19:01 +0000271Specifies the file that contains the public keys used for user authentication.
schwarze@openbsd.orgdb7606d2019-05-14 12:47:17 +0000272The format is described in the AUTHORIZED_KEYS FILE FORMAT section of
Damien Miller6018a362010-07-02 13:35:19 +1000273.Xr sshd 8 .
jmc@openbsd.orgde6a1752016-09-22 19:19:01 +0000274Arguments to
Ben Lindstrom9f049032002-06-21 00:59:05 +0000275.Cm AuthorizedKeysFile
jmc@openbsd.orgde6a1752016-09-22 19:19:01 +0000276accept the tokens described in the
277.Sx TOKENS
278section.
Ben Lindstrom9f049032002-06-21 00:59:05 +0000279After expansion,
280.Cm AuthorizedKeysFile
281is taken to be an absolute path or one relative to the user's home
282directory.
Damien Millerb9132fc2011-05-29 21:41:40 +1000283Multiple files may be listed, separated by whitespace.
djm@openbsd.org2bca8a42015-09-11 03:13:36 +0000284Alternately this option may be set to
jmc@openbsd.orgaae4dbd2016-10-07 14:41:52 +0000285.Cm none
djm@openbsd.org2bca8a42015-09-11 03:13:36 +0000286to skip checking for user keys in files.
Damien Millerb9132fc2011-05-29 21:41:40 +1000287The default is
jmc@openbsd.orgaae4dbd2016-10-07 14:41:52 +0000288.Qq .ssh/authorized_keys .ssh/authorized_keys2 .
djm@openbsd.orgbcc50d82015-05-21 06:43:30 +0000289.It Cm AuthorizedPrincipalsCommand
290Specifies a program to be used to generate the list of allowed
291certificate principals as per
292.Cm AuthorizedPrincipalsFile .
293The program must be owned by root, not writable by group or others and
294specified by an absolute path.
djm@openbsd.orgbcc50d82015-05-21 06:43:30 +0000295Arguments to
296.Cm AuthorizedPrincipalsCommand
jmc@openbsd.orgde6a1752016-09-22 19:19:01 +0000297accept the tokens described in the
298.Sx TOKENS
299section.
300If no arguments are specified then the username of the target user is used.
djm@openbsd.orgbcc50d82015-05-21 06:43:30 +0000301.Pp
302The program should produce on standard output zero or
303more lines of
304.Cm AuthorizedPrincipalsFile
305output.
306If either
307.Cm AuthorizedPrincipalsCommand
308or
309.Cm AuthorizedPrincipalsFile
310is specified, then certificates offered by the client for authentication
311must contain a principal that is listed.
jmc@openbsd.orgde6a1752016-09-22 19:19:01 +0000312By default, no
313.Cm AuthorizedPrincipalsCommand
314is run.
djm@openbsd.orgbcc50d82015-05-21 06:43:30 +0000315.It Cm AuthorizedPrincipalsCommandUser
jmc@openbsd.orgde6a1752016-09-22 19:19:01 +0000316Specifies the user under whose account the
317.Cm AuthorizedPrincipalsCommand
318is run.
djm@openbsd.orgbcc50d82015-05-21 06:43:30 +0000319It is recommended to use a dedicated user that has no other role on the host
320than running authorized principals commands.
321If
322.Cm AuthorizedPrincipalsCommand
323is specified but
324.Cm AuthorizedPrincipalsCommandUser
325is not, then
326.Xr sshd 8
327will refuse to start.
Damien Miller30da3442010-05-10 11:58:03 +1000328.It Cm AuthorizedPrincipalsFile
329Specifies a file that lists principal names that are accepted for
330certificate authentication.
331When using certificates signed by a key listed in
332.Cm TrustedUserCAKeys ,
333this file lists names, one of which must appear in the certificate for it
334to be accepted for authentication.
jmc@openbsd.orgde6a1752016-09-22 19:19:01 +0000335Names are listed one per line preceded by key options (as described in
336.Sx AUTHORIZED_KEYS FILE FORMAT
337in
Damien Millerd59dab82010-07-02 13:37:17 +1000338.Xr sshd 8 ) .
Damien Miller6018a362010-07-02 13:35:19 +1000339Empty lines and comments starting with
Damien Miller30da3442010-05-10 11:58:03 +1000340.Ql #
341are ignored.
342.Pp
jmc@openbsd.orgde6a1752016-09-22 19:19:01 +0000343Arguments to
Damien Miller30da3442010-05-10 11:58:03 +1000344.Cm AuthorizedPrincipalsFile
jmc@openbsd.orgde6a1752016-09-22 19:19:01 +0000345accept the tokens described in the
346.Sx TOKENS
347section.
Damien Miller30da3442010-05-10 11:58:03 +1000348After expansion,
349.Cm AuthorizedPrincipalsFile
jmc@openbsd.orgde6a1752016-09-22 19:19:01 +0000350is taken to be an absolute path or one relative to the user's home directory.
Damien Miller8fef9eb2012-04-22 11:25:10 +1000351The default is
jmc@openbsd.orgaae4dbd2016-10-07 14:41:52 +0000352.Cm none ,
Damien Miller8fef9eb2012-04-22 11:25:10 +1000353i.e. not to use a principals file \(en in this case, the username
Damien Miller30da3442010-05-10 11:58:03 +1000354of the user must appear in a certificate's principals list for it to be
355accepted.
jmc@openbsd.orgde6a1752016-09-22 19:19:01 +0000356.Pp
Damien Miller30da3442010-05-10 11:58:03 +1000357Note that
358.Cm AuthorizedPrincipalsFile
359is only used when authentication proceeds using a CA listed in
360.Cm TrustedUserCAKeys
361and is not consulted for certification authorities trusted via
362.Pa ~/.ssh/authorized_keys ,
363though the
364.Cm principals=
365key option offers a similar facility (see
366.Xr sshd 8
367for details).
Ben Lindstrom9f049032002-06-21 00:59:05 +0000368.It Cm Banner
Ben Lindstrom9f049032002-06-21 00:59:05 +0000369The contents of the specified file are sent to the remote user before
370authentication is allowed.
Damien Miller4890e532007-09-17 11:57:38 +1000371If the argument is
jmc@openbsd.orgaae4dbd2016-10-07 14:41:52 +0000372.Cm none
Damien Miller4890e532007-09-17 11:57:38 +1000373then no banner is displayed.
Ben Lindstrom9f049032002-06-21 00:59:05 +0000374By default, no banner is displayed.
djm@openbsd.org86e57372018-09-20 03:28:06 +0000375.It Cm CASignatureAlgorithms
376Specifies which algorithms are allowed for signing of certificates
377by certificate authorities (CAs).
378The default is:
379.Bd -literal -offset indent
dtucker@openbsd.org0e2fe182019-07-23 23:06:57 +0000380ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,
djm@openbsd.org86e57372018-09-20 03:28:06 +0000381ssh-ed25519,rsa-sha2-512,rsa-sha2-256,ssh-rsa
382.Ed
383.Pp
384Certificates signed using other algorithms will not be accepted for
385public key or host-based authentication.
Ben Lindstrom9f049032002-06-21 00:59:05 +0000386.It Cm ChallengeResponseAuthentication
Damien Miller9c7bf8d2009-08-28 10:27:08 +1000387Specifies whether challenge-response authentication is allowed (e.g. via
Damien Millere8c9f262014-10-03 09:24:56 +1000388PAM or through authentication styles supported in
Damien Miller9c7bf8d2009-08-28 10:27:08 +1000389.Xr login.conf 5 )
Ben Lindstrom9f049032002-06-21 00:59:05 +0000390The default is
jmc@openbsd.orgaae4dbd2016-10-07 14:41:52 +0000391.Cm yes .
Damien Millerd8cb1f12008-02-10 22:40:12 +1100392.It Cm ChrootDirectory
Darren Tuckerb8c884a2010-01-08 18:53:43 +1100393Specifies the pathname of a directory to
Damien Millerd8cb1f12008-02-10 22:40:12 +1100394.Xr chroot 2
395to after authentication.
deraadt@openbsd.orgdcff5812015-01-22 20:24:41 +0000396At session startup
397.Xr sshd 8
398checks that all components of the pathname are root-owned directories
399which are not writable by any other user or group.
Darren Tucker51dbe502009-06-21 17:56:51 +1000400After the chroot,
401.Xr sshd 8
402changes the working directory to the user's home directory.
jmc@openbsd.orgde6a1752016-09-22 19:19:01 +0000403Arguments to
404.Cm ChrootDirectory
405accept the tokens described in the
406.Sx TOKENS
407section.
Damien Millerd8cb1f12008-02-10 22:40:12 +1100408.Pp
409The
410.Cm ChrootDirectory
411must contain the necessary files and directories to support the
Darren Tuckeraf501cf2009-06-21 17:53:04 +1000412user's session.
Damien Millerd8cb1f12008-02-10 22:40:12 +1100413For an interactive session this requires at least a shell, typically
414.Xr sh 1 ,
415and basic
416.Pa /dev
417nodes such as
418.Xr null 4 ,
419.Xr zero 4 ,
420.Xr stdin 4 ,
421.Xr stdout 4 ,
422.Xr stderr 4 ,
jmc@openbsd.org08c0eeb2014-11-22 19:21:03 +0000423and
Damien Millerd8cb1f12008-02-10 22:40:12 +1100424.Xr tty 4
425devices.
jmc@openbsd.orgaae4dbd2016-10-07 14:41:52 +0000426For file transfer sessions using SFTP
427no additional configuration of the environment is necessary if the in-process
428sftp-server is used,
Damien Miller426117b2014-07-30 12:33:20 +1000429though sessions which use logging may require
Darren Tucker00fcd712009-06-21 17:56:00 +1000430.Pa /dev/log
Damien Miller426117b2014-07-30 12:33:20 +1000431inside the chroot directory on some operating systems (see
Darren Tucker00fcd712009-06-21 17:56:00 +1000432.Xr sftp-server 8
433for details).
Damien Millerd8cb1f12008-02-10 22:40:12 +1100434.Pp
jmc@openbsd.orga5a3e332015-01-22 21:00:42 +0000435For safety, it is very important that the directory hierarchy be
deraadt@openbsd.orgdcff5812015-01-22 20:24:41 +0000436prevented from modification by other processes on the system (especially
437those outside the jail).
438Misconfiguration can lead to unsafe environments which
439.Xr sshd 8
440cannot detect.
441.Pp
djm@openbsd.org9fd04682015-11-13 04:38:06 +0000442The default is
jmc@openbsd.orgaae4dbd2016-10-07 14:41:52 +0000443.Cm none ,
djm@openbsd.org9fd04682015-11-13 04:38:06 +0000444indicating not to
Damien Millerd8cb1f12008-02-10 22:40:12 +1100445.Xr chroot 2 .
Ben Lindstrom9f049032002-06-21 00:59:05 +0000446.It Cm Ciphers
jmc@openbsd.orga685ae82016-02-17 07:38:19 +0000447Specifies the ciphers allowed.
Ben Lindstrom9f049032002-06-21 00:59:05 +0000448Multiple ciphers must be comma-separated.
naddy@openbsd.org4f9d75f2019-09-04 20:31:15 +0000449If the specified list begins with a
djm@openbsd.orgf9eca242015-07-30 00:01:34 +0000450.Sq +
451character, then the specified ciphers will be appended to the default set
452instead of replacing them.
naddy@openbsd.org4f9d75f2019-09-04 20:31:15 +0000453If the specified list begins with a
djm@openbsd.org68bc8cf2017-02-03 23:01:19 +0000454.Sq -
455character, then the specified ciphers (including wildcards) will be removed
456from the default set instead of replacing them.
naddy@openbsd.org91a21352019-09-06 14:45:34 +0000457If the specified list begins with a
458.Sq ^
459character, then the specified ciphers will be placed at the head of the
460default set.
djm@openbsd.orgf9eca242015-07-30 00:01:34 +0000461.Pp
Damien Miller0fde8ac2013-11-21 14:12:23 +1100462The supported ciphers are:
463.Pp
Damien Millerc1621c82014-04-20 13:22:46 +1000464.Bl -item -compact -offset indent
465.It
4663des-cbc
467.It
468aes128-cbc
469.It
470aes192-cbc
471.It
472aes256-cbc
473.It
474aes128-ctr
475.It
476aes192-ctr
477.It
478aes256-ctr
479.It
480aes128-gcm@openssh.com
481.It
482aes256-gcm@openssh.com
483.It
Damien Millerc1621c82014-04-20 13:22:46 +1000484chacha20-poly1305@openssh.com
485.El
Damien Miller0fde8ac2013-11-21 14:12:23 +1100486.Pp
Damien Miller5b0d63f2006-03-15 11:56:56 +1100487The default is:
Damien Millerc1621c82014-04-20 13:22:46 +1000488.Bd -literal -offset indent
jmc@openbsd.org1f8d3d62015-08-14 15:32:41 +0000489chacha20-poly1305@openssh.com,
Damien Millerc1621c82014-04-20 13:22:46 +1000490aes128-ctr,aes192-ctr,aes256-ctr,
jmc@openbsd.org1f8d3d62015-08-14 15:32:41 +0000491aes128-gcm@openssh.com,aes256-gcm@openssh.com
Ben Lindstrom9f049032002-06-21 00:59:05 +0000492.Ed
Damien Miller0fde8ac2013-11-21 14:12:23 +1100493.Pp
jmc@openbsd.orgaae4dbd2016-10-07 14:41:52 +0000494The list of available ciphers may also be obtained using
495.Qq ssh -Q cipher .
Ben Lindstrom9f049032002-06-21 00:59:05 +0000496.It Cm ClientAliveCountMax
jmc@openbsd.orgaae4dbd2016-10-07 14:41:52 +0000497Sets the number of client alive messages which may be sent without
Damien Miller5b0d63f2006-03-15 11:56:56 +1100498.Xr sshd 8
Damien Millerfbf486b2003-05-23 18:44:23 +1000499receiving any messages back from the client.
500If this threshold is reached while client alive messages are being sent,
Damien Miller5b0d63f2006-03-15 11:56:56 +1100501sshd will disconnect the client, terminating the session.
Damien Millerfbf486b2003-05-23 18:44:23 +1000502It is important to note that the use of client alive messages is very
503different from
jmc@openbsd.orgaae4dbd2016-10-07 14:41:52 +0000504.Cm TCPKeepAlive .
Damien Millerfbf486b2003-05-23 18:44:23 +1000505The client alive messages are sent through the encrypted channel
506and therefore will not be spoofable.
507The TCP keepalive option enabled by
Damien Miller12c150e2003-12-17 16:31:10 +1100508.Cm TCPKeepAlive
Damien Millerfbf486b2003-05-23 18:44:23 +1000509is spoofable.
510The client alive mechanism is valuable when the client or
dtucker@openbsd.org8fdbc722019-08-09 04:24:03 +0000511server depend on knowing when a connection has become unresponsive.
Ben Lindstrom9f049032002-06-21 00:59:05 +0000512.Pp
Damien Millerfbf486b2003-05-23 18:44:23 +1000513The default value is 3.
514If
Ben Lindstrom9f049032002-06-21 00:59:05 +0000515.Cm ClientAliveInterval
jmc@openbsd.orgaae4dbd2016-10-07 14:41:52 +0000516is set to 15, and
Ben Lindstrom9f049032002-06-21 00:59:05 +0000517.Cm ClientAliveCountMax
Damien Miller5b0d63f2006-03-15 11:56:56 +1100518is left at the default, unresponsive SSH clients
Ben Lindstrom9f049032002-06-21 00:59:05 +0000519will be disconnected after approximately 45 seconds.
djm@openbsd.org69334992020-01-25 22:41:01 +0000520Setting a zero
521.Cm ClientAliveCountMax
522disables connection termination.
Damien Miller1594ad52005-05-26 12:12:19 +1000523.It Cm ClientAliveInterval
524Sets a timeout interval in seconds after which if no data has been received
525from the client,
Damien Miller5b0d63f2006-03-15 11:56:56 +1100526.Xr sshd 8
Damien Miller1594ad52005-05-26 12:12:19 +1000527will send a message through the encrypted
528channel to request a response from the client.
529The default
530is 0, indicating that these messages will not be sent to the client.
Ben Lindstrom9f049032002-06-21 00:59:05 +0000531.It Cm Compression
djm@openbsd.org4577ade2016-09-28 20:32:42 +0000532Specifies whether compression is enabled after
Damien Miller9786e6e2005-07-26 21:54:56 +1000533the user has authenticated successfully.
Ben Lindstrom9f049032002-06-21 00:59:05 +0000534The argument must be
jmc@openbsd.orgaae4dbd2016-10-07 14:41:52 +0000535.Cm yes ,
536.Cm delayed
djm@openbsd.org4577ade2016-09-28 20:32:42 +0000537(a legacy synonym for
jmc@openbsd.orgaae4dbd2016-10-07 14:41:52 +0000538.Cm yes )
Ben Lindstrom9f049032002-06-21 00:59:05 +0000539or
jmc@openbsd.orgaae4dbd2016-10-07 14:41:52 +0000540.Cm no .
Ben Lindstrom9f049032002-06-21 00:59:05 +0000541The default is
jmc@openbsd.orgaae4dbd2016-10-07 14:41:52 +0000542.Cm yes .
Ben Lindstrom9f049032002-06-21 00:59:05 +0000543.It Cm DenyGroups
544This keyword can be followed by a list of group name patterns, separated
545by spaces.
546Login is disallowed for users whose primary group or supplementary
547group list matches one of the patterns.
Ben Lindstrom9f049032002-06-21 00:59:05 +0000548Only group names are valid; a numerical group ID is not recognized.
549By default, login is allowed for all groups.
djm@openbsd.orgbf986a92020-01-25 22:36:22 +0000550The allow/deny groups directives are processed in the following order:
Damien Millerac73e512006-03-15 11:58:49 +1100551.Cm DenyGroups ,
Damien Millerac73e512006-03-15 11:58:49 +1100552.Cm AllowGroups .
Damien Miller0c2079d2006-03-15 11:54:21 +1100553.Pp
Damien Millerfecfd112013-07-18 16:11:50 +1000554See PATTERNS in
Damien Miller0c2079d2006-03-15 11:54:21 +1100555.Xr ssh_config 5
556for more information on patterns.
Ben Lindstrom9f049032002-06-21 00:59:05 +0000557.It Cm DenyUsers
558This keyword can be followed by a list of user name patterns, separated
559by spaces.
560Login is disallowed for user names that match one of the patterns.
Ben Lindstrom9f049032002-06-21 00:59:05 +0000561Only user names are valid; a numerical user ID is not recognized.
562By default, login is allowed for all users.
563If the pattern takes the form USER@HOST then USER and HOST
564are separately checked, restricting logins to particular
565users from particular hosts.
jmc@openbsd.orgee1e0a12016-04-27 13:53:48 +0000566HOST criteria may additionally contain addresses to match in CIDR
567address/masklen format.
djm@openbsd.orgbf986a92020-01-25 22:36:22 +0000568The allow/deny users directives are processed in the following order:
Damien Millerac73e512006-03-15 11:58:49 +1100569.Cm DenyUsers ,
djm@openbsd.orgbf986a92020-01-25 22:36:22 +0000570.Cm AllowUsers .
Damien Miller0c2079d2006-03-15 11:54:21 +1100571.Pp
Damien Millerfecfd112013-07-18 16:11:50 +1000572See PATTERNS in
Damien Miller0c2079d2006-03-15 11:54:21 +1100573.Xr ssh_config 5
574for more information on patterns.
djm@openbsd.org7844f352016-11-30 03:00:05 +0000575.It Cm DisableForwarding
576Disables all forwarding features, including X11,
577.Xr ssh-agent 1 ,
578TCP and StreamLocal.
579This option overrides all other forwarding-related options and may
580simplify restricted configurations.
djm@openbsd.org8f574952017-06-24 06:34:38 +0000581.It Cm ExposeAuthInfo
jmc@openbsd.org5fa14072017-09-27 06:45:53 +0000582Writes a temporary file containing a list of authentication methods and
djm@openbsd.org8f574952017-06-24 06:34:38 +0000583public credentials (e.g. keys) used to authenticate the user.
jmc@openbsd.org40962192017-06-24 06:57:04 +0000584The location of the file is exposed to the user session through the
djm@openbsd.orgf17ee612017-06-24 07:08:57 +0000585.Ev SSH_USER_AUTH
jmc@openbsd.org40962192017-06-24 06:57:04 +0000586environment variable.
jmc@openbsd.org5fa14072017-09-27 06:45:53 +0000587The default is
588.Cm no .
djm@openbsd.org56d1c832014-12-21 22:27:55 +0000589.It Cm FingerprintHash
590Specifies the hash algorithm used when logging key fingerprints.
591Valid options are:
jmc@openbsd.orgaae4dbd2016-10-07 14:41:52 +0000592.Cm md5
djm@openbsd.org56d1c832014-12-21 22:27:55 +0000593and
jmc@openbsd.orgaae4dbd2016-10-07 14:41:52 +0000594.Cm sha256 .
djm@openbsd.org56d1c832014-12-21 22:27:55 +0000595The default is
jmc@openbsd.orgaae4dbd2016-10-07 14:41:52 +0000596.Cm sha256 .
Damien Millere2754432006-07-24 14:06:47 +1000597.It Cm ForceCommand
598Forces the execution of the command specified by
599.Cm ForceCommand ,
Damien Millera1b48cc2008-03-27 11:02:02 +1100600ignoring any command supplied by the client and
601.Pa ~/.ssh/rc
602if present.
Damien Millere2754432006-07-24 14:06:47 +1000603The command is invoked by using the user's login shell with the -c option.
604This applies to shell, command, or subsystem execution.
605It is most useful inside a
606.Cm Match
607block.
608The command originally supplied by the client is available in the
609.Ev SSH_ORIGINAL_COMMAND
610environment variable.
Damien Millercdb6e652008-02-10 22:47:24 +1100611Specifying a command of
jmc@openbsd.orgaae4dbd2016-10-07 14:41:52 +0000612.Cm internal-sftp
613will force the use of an in-process SFTP server that requires no support
Damien Millercdb6e652008-02-10 22:47:24 +1100614files when used with
615.Cm ChrootDirectory .
djm@openbsd.org9fd04682015-11-13 04:38:06 +0000616The default is
jmc@openbsd.orgaae4dbd2016-10-07 14:41:52 +0000617.Cm none .
Ben Lindstrom9f049032002-06-21 00:59:05 +0000618.It Cm GatewayPorts
619Specifies whether remote hosts are allowed to connect to ports
620forwarded for the client.
621By default,
Damien Miller5b0d63f2006-03-15 11:56:56 +1100622.Xr sshd 8
Damien Miller495dca32003-04-01 21:42:14 +1000623binds remote port forwardings to the loopback address.
624This prevents other remote hosts from connecting to forwarded ports.
Ben Lindstrom9f049032002-06-21 00:59:05 +0000625.Cm GatewayPorts
Damien Miller5b0d63f2006-03-15 11:56:56 +1100626can be used to specify that sshd
Damien Millerf91ee4c2005-03-01 21:24:33 +1100627should allow remote port forwardings to bind to non-loopback addresses, thus
628allowing other hosts to connect.
629The argument may be
jmc@openbsd.orgaae4dbd2016-10-07 14:41:52 +0000630.Cm no
Damien Millerf91ee4c2005-03-01 21:24:33 +1100631to force remote port forwardings to be available to the local host only,
jmc@openbsd.orgaae4dbd2016-10-07 14:41:52 +0000632.Cm yes
Damien Millerf91ee4c2005-03-01 21:24:33 +1100633to force remote port forwardings to bind to the wildcard address, or
jmc@openbsd.orgaae4dbd2016-10-07 14:41:52 +0000634.Cm clientspecified
Damien Millerf91ee4c2005-03-01 21:24:33 +1100635to allow the client to select the address to which the forwarding is bound.
Ben Lindstrom9f049032002-06-21 00:59:05 +0000636The default is
jmc@openbsd.orgaae4dbd2016-10-07 14:41:52 +0000637.Cm no .
Darren Tucker0efd1552003-08-26 11:49:55 +1000638.It Cm GSSAPIAuthentication
Damien Miller9b7b03b2003-09-02 22:57:05 +1000639Specifies whether user authentication based on GSSAPI is allowed.
Damien Millera8e06ce2003-11-21 23:48:55 +1100640The default is
jmc@openbsd.orgaae4dbd2016-10-07 14:41:52 +0000641.Cm no .
Darren Tucker0efd1552003-08-26 11:49:55 +1000642.It Cm GSSAPICleanupCredentials
643Specifies whether to automatically destroy the user's credentials cache
644on logout.
645The default is
jmc@openbsd.orgaae4dbd2016-10-07 14:41:52 +0000646.Cm yes .
djm@openbsd.orgd7c31da2015-05-22 03:50:02 +0000647.It Cm GSSAPIStrictAcceptorCheck
648Determines whether to be strict about the identity of the GSSAPI acceptor
649a client authenticates against.
650If set to
jmc@openbsd.orgaae4dbd2016-10-07 14:41:52 +0000651.Cm yes
652then the client must authenticate against the host
djm@openbsd.orgd7c31da2015-05-22 03:50:02 +0000653service on the current hostname.
654If set to
jmc@openbsd.orgaae4dbd2016-10-07 14:41:52 +0000655.Cm no
djm@openbsd.orgd7c31da2015-05-22 03:50:02 +0000656then the client may authenticate against any service key stored in the
657machine's default store.
658This facility is provided to assist with operation on multi homed machines.
659The default is
jmc@openbsd.orgaae4dbd2016-10-07 14:41:52 +0000660.Cm yes .
djm@openbsd.org1f729f02015-01-13 07:39:19 +0000661.It Cm HostbasedAcceptedKeyTypes
662Specifies the key types that will be accepted for hostbased authentication
djm@openbsd.org312d2f22018-07-04 13:49:31 +0000663as a list of comma-separated patterns.
naddy@openbsd.org4f9d75f2019-09-04 20:31:15 +0000664Alternately if the specified list begins with a
djm@openbsd.orgf9eca242015-07-30 00:01:34 +0000665.Sq +
666character, then the specified key types will be appended to the default set
667instead of replacing them.
naddy@openbsd.org4f9d75f2019-09-04 20:31:15 +0000668If the specified list begins with a
djm@openbsd.org68bc8cf2017-02-03 23:01:19 +0000669.Sq -
670character, then the specified key types (including wildcards) will be removed
671from the default set instead of replacing them.
naddy@openbsd.org91a21352019-09-06 14:45:34 +0000672If the specified list begins with a
673.Sq ^
674character, then the specified key types will be placed at the head of the
675default set.
markus@openbsd.org3a1638d2015-07-10 06:21:53 +0000676The default for this option is:
677.Bd -literal -offset 3n
678ecdsa-sha2-nistp256-cert-v01@openssh.com,
679ecdsa-sha2-nistp384-cert-v01@openssh.com,
680ecdsa-sha2-nistp521-cert-v01@openssh.com,
naddy@openbsd.orgae024b22019-12-19 15:09:30 +0000681sk-ecdsa-sha2-nistp256-cert-v01@openssh.com,
markus@openbsd.org3a1638d2015-07-10 06:21:53 +0000682ssh-ed25519-cert-v01@openssh.com,
naddy@openbsd.orgae024b22019-12-19 15:09:30 +0000683sk-ssh-ed25519-cert-v01@openssh.com,
naddy@openbsd.orgaa4c6402019-11-07 08:38:38 +0000684rsa-sha2-512-cert-v01@openssh.com,
685rsa-sha2-256-cert-v01@openssh.com,
markus@openbsd.org3a1638d2015-07-10 06:21:53 +0000686ssh-rsa-cert-v01@openssh.com,
687ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,
naddy@openbsd.orgae024b22019-12-19 15:09:30 +0000688sk-ecdsa-sha2-nistp256@openssh.com,
689ssh-ed25519,sk-ssh-ed25519@openssh.com,
690rsa-sha2-512,rsa-sha2-256,ssh-rsa
markus@openbsd.org3a1638d2015-07-10 06:21:53 +0000691.Ed
692.Pp
jmc@openbsd.orgaae4dbd2016-10-07 14:41:52 +0000693The list of available key types may also be obtained using
dtucker@openbsd.orgd4d9e1d2020-02-07 03:54:44 +0000694.Qq ssh -Q HostbasedAcceptedKeyTypes .
Ben Lindstrom9f049032002-06-21 00:59:05 +0000695.It Cm HostbasedAuthentication
696Specifies whether rhosts or /etc/hosts.equiv authentication together
697with successful public key client host authentication is allowed
Damien Miller1faa7132006-03-15 11:55:31 +1100698(host-based authentication).
Ben Lindstrom9f049032002-06-21 00:59:05 +0000699The default is
jmc@openbsd.orgaae4dbd2016-10-07 14:41:52 +0000700.Cm no .
Damien Millerb594f382006-08-30 11:06:34 +1000701.It Cm HostbasedUsesNameFromPacketOnly
702Specifies whether or not the server will attempt to perform a reverse
703name lookup when matching the name in the
704.Pa ~/.shosts ,
705.Pa ~/.rhosts ,
706and
707.Pa /etc/hosts.equiv
708files during
709.Cm HostbasedAuthentication .
710A setting of
jmc@openbsd.orgaae4dbd2016-10-07 14:41:52 +0000711.Cm yes
Damien Millerb594f382006-08-30 11:06:34 +1000712means that
713.Xr sshd 8
714uses the name supplied by the client rather than
715attempting to resolve the name from the TCP connection itself.
716The default is
jmc@openbsd.orgaae4dbd2016-10-07 14:41:52 +0000717.Cm no .
Damien Miller0a80ca12010-02-27 07:55:05 +1100718.It Cm HostCertificate
719Specifies a file containing a public host certificate.
720The certificate's public key must match a private host key already specified
721by
722.Cm HostKey .
723The default behaviour of
724.Xr sshd 8
725is not to load any certificates.
Ben Lindstrom9f049032002-06-21 00:59:05 +0000726.It Cm HostKey
727Specifies a file containing a private host key
728used by SSH.
naddy@openbsd.orgffe65492016-08-15 12:32:04 +0000729The defaults are
Damien Miller8ba0ead2013-12-18 17:46:27 +1100730.Pa /etc/ssh/ssh_host_ecdsa_key ,
731.Pa /etc/ssh/ssh_host_ed25519_key
Ben Lindstrom9f049032002-06-21 00:59:05 +0000732and
naddy@openbsd.orgffe65492016-08-15 12:32:04 +0000733.Pa /etc/ssh/ssh_host_rsa_key .
markus@openbsd.org3a1638d2015-07-10 06:21:53 +0000734.Pp
Ben Lindstrom9f049032002-06-21 00:59:05 +0000735Note that
Damien Miller5b0d63f2006-03-15 11:56:56 +1100736.Xr sshd 8
markus@openbsd.org3a1638d2015-07-10 06:21:53 +0000737will refuse to use a file if it is group/world-accessible
738and that the
739.Cm HostKeyAlgorithms
740option restricts which of the keys are actually used by
741.Xr sshd 8 .
742.Pp
Ben Lindstrom9f049032002-06-21 00:59:05 +0000743It is possible to have multiple host key files.
Damien Miller85b45e02013-07-20 13:21:52 +1000744It is also possible to specify public host key files instead.
745In this case operations on the private key will be delegated
746to an
747.Xr ssh-agent 1 .
748.It Cm HostKeyAgent
749Identifies the UNIX-domain socket used to communicate
750with an agent that has access to the private host keys.
markus@openbsd.org1a75d142016-05-04 14:29:58 +0000751If the string
jmc@openbsd.orgaae4dbd2016-10-07 14:41:52 +0000752.Qq SSH_AUTH_SOCK
Damien Miller85b45e02013-07-20 13:21:52 +1000753is specified, the location of the socket will be read from the
754.Ev SSH_AUTH_SOCK
755environment variable.
markus@openbsd.org3a1638d2015-07-10 06:21:53 +0000756.It Cm HostKeyAlgorithms
jmc@openbsd.orga685ae82016-02-17 07:38:19 +0000757Specifies the host key algorithms
markus@openbsd.org3a1638d2015-07-10 06:21:53 +0000758that the server offers.
759The default for this option is:
760.Bd -literal -offset 3n
761ecdsa-sha2-nistp256-cert-v01@openssh.com,
762ecdsa-sha2-nistp384-cert-v01@openssh.com,
763ecdsa-sha2-nistp521-cert-v01@openssh.com,
naddy@openbsd.orgae024b22019-12-19 15:09:30 +0000764sk-ecdsa-sha2-nistp256-cert-v01@openssh.com,
markus@openbsd.org3a1638d2015-07-10 06:21:53 +0000765ssh-ed25519-cert-v01@openssh.com,
naddy@openbsd.orgae024b22019-12-19 15:09:30 +0000766sk-ssh-ed25519-cert-v01@openssh.com,
naddy@openbsd.orgaa4c6402019-11-07 08:38:38 +0000767rsa-sha2-512-cert-v01@openssh.com,
768rsa-sha2-256-cert-v01@openssh.com,
markus@openbsd.org3a1638d2015-07-10 06:21:53 +0000769ssh-rsa-cert-v01@openssh.com,
770ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,
naddy@openbsd.orgae024b22019-12-19 15:09:30 +0000771sk-ecdsa-sha2-nistp256@openssh.com,
772ssh-ed25519,sk-ssh-ed25519@openssh.com,
773rsa-sha2-512,rsa-sha2-256,ssh-rsa
markus@openbsd.org3a1638d2015-07-10 06:21:53 +0000774.Ed
775.Pp
jmc@openbsd.orgaae4dbd2016-10-07 14:41:52 +0000776The list of available key types may also be obtained using
dtucker@openbsd.orgd4d9e1d2020-02-07 03:54:44 +0000777.Qq ssh -Q HostKeyAlgorithms .
Ben Lindstrom9f049032002-06-21 00:59:05 +0000778.It Cm IgnoreRhosts
djm@openbsd.orgc90f72d2020-04-17 03:30:05 +0000779Specifies whether to ignore per-user
Ben Lindstrom9f049032002-06-21 00:59:05 +0000780.Pa .rhosts
781and
782.Pa .shosts
djm@openbsd.orgc90f72d2020-04-17 03:30:05 +0000783files during
Ben Lindstrom9f049032002-06-21 00:59:05 +0000784.Cm HostbasedAuthentication .
djm@openbsd.orgc90f72d2020-04-17 03:30:05 +0000785The system-wide
Ben Lindstrom9f049032002-06-21 00:59:05 +0000786.Pa /etc/hosts.equiv
787and
788.Pa /etc/shosts.equiv
djm@openbsd.orgc90f72d2020-04-17 03:30:05 +0000789are still used regardless of this setting.
790.Pp
791Accepted values are
792.Cm yes
793(the default) to ignore all per-user files,
794.Cm shosts-only
795to allow the use of
796.Pa .shosts
797but to ignore
798.Pa .rhosts
799or
800.Cm no
801to allow both
802.Pa .shosts
803and
jmc@openbsd.org4e04f462020-04-17 06:12:41 +0000804.Pa rhosts .
Ben Lindstrom9f049032002-06-21 00:59:05 +0000805.It Cm IgnoreUserKnownHosts
806Specifies whether
Damien Miller5b0d63f2006-03-15 11:56:56 +1100807.Xr sshd 8
Ben Lindstrom9f049032002-06-21 00:59:05 +0000808should ignore the user's
Damien Miller167ea5d2005-05-26 12:04:02 +1000809.Pa ~/.ssh/known_hosts
Ben Lindstrom9f049032002-06-21 00:59:05 +0000810during
djm@openbsd.org62562ce2018-02-10 06:54:38 +0000811.Cm HostbasedAuthentication
812and use only the system-wide known hosts file
813.Pa /etc/ssh/known_hosts .
Ben Lindstrom9f049032002-06-21 00:59:05 +0000814The default is
djm@openbsd.orgc2bd7f72020-01-31 22:42:45 +0000815.Dq no .
816.It Cm Include
817Include the specified configuration file(s).
jmc@openbsd.org6fb3dd02020-02-01 06:53:12 +0000818Multiple pathnames may be specified and each pathname may contain
djm@openbsd.orgc2bd7f72020-01-31 22:42:45 +0000819.Xr glob 7
820wildcards.
821Files without absolute paths are assumed to be in
822.Pa /etc/ssh .
jmc@openbsd.org6fb3dd02020-02-01 06:53:12 +0000823An
djm@openbsd.orgc2bd7f72020-01-31 22:42:45 +0000824.Cm Include
825directive may appear inside a
826.Cm Match
827block
828to perform conditional inclusion.
Damien Miller0dac6fb2010-11-20 15:19:38 +1100829.It Cm IPQoS
830Specifies the IPv4 type-of-service or DSCP class for the connection.
831Accepted values are
jmc@openbsd.orgaae4dbd2016-10-07 14:41:52 +0000832.Cm af11 ,
833.Cm af12 ,
834.Cm af13 ,
835.Cm af21 ,
836.Cm af22 ,
837.Cm af23 ,
838.Cm af31 ,
839.Cm af32 ,
840.Cm af33 ,
841.Cm af41 ,
842.Cm af42 ,
843.Cm af43 ,
844.Cm cs0 ,
845.Cm cs1 ,
846.Cm cs2 ,
847.Cm cs3 ,
848.Cm cs4 ,
849.Cm cs5 ,
850.Cm cs6 ,
851.Cm cs7 ,
852.Cm ef ,
djm@openbsd.org4594c762020-01-28 01:49:36 +0000853.Cm le ,
jmc@openbsd.orgaae4dbd2016-10-07 14:41:52 +0000854.Cm lowdelay ,
855.Cm throughput ,
856.Cm reliability ,
djm@openbsd.org51676ec2017-07-23 23:37:02 +0000857a numeric value, or
858.Cm none
859to use the operating system default.
Damien Miller928362d2010-12-26 14:26:45 +1100860This option may take one or two arguments, separated by whitespace.
Damien Miller0dac6fb2010-11-20 15:19:38 +1100861If one argument is specified, it is used as the packet class unconditionally.
862If two values are specified, the first is automatically selected for
863interactive sessions and the second for non-interactive sessions.
864The default is
job@openbsd.org5ee84482018-04-04 15:12:17 +0000865.Cm af21
jmc@openbsd.org3e36f282018-04-08 07:36:02 +0000866(Low-Latency Data)
Damien Miller0dac6fb2010-11-20 15:19:38 +1100867for interactive sessions and
job@openbsd.org5ee84482018-04-04 15:12:17 +0000868.Cm cs1
jmc@openbsd.org3e36f282018-04-08 07:36:02 +0000869(Lower Effort)
Damien Miller0dac6fb2010-11-20 15:19:38 +1100870for non-interactive sessions.
Damien Millere1e480a2014-02-04 11:13:17 +1100871.It Cm KbdInteractiveAuthentication
872Specifies whether to allow keyboard-interactive authentication.
873The argument to this keyword must be
jmc@openbsd.orgaae4dbd2016-10-07 14:41:52 +0000874.Cm yes
Damien Millere1e480a2014-02-04 11:13:17 +1100875or
jmc@openbsd.orgaae4dbd2016-10-07 14:41:52 +0000876.Cm no .
Damien Millere1e480a2014-02-04 11:13:17 +1100877The default is to use whatever value
878.Cm ChallengeResponseAuthentication
879is set to
880(by default
jmc@openbsd.orgaae4dbd2016-10-07 14:41:52 +0000881.Cm yes ) .
Ben Lindstrom9f049032002-06-21 00:59:05 +0000882.It Cm KerberosAuthentication
Damien Miller1a0c0b92003-09-02 22:51:17 +1000883Specifies whether the password provided by the user for
Ben Lindstrom9f049032002-06-21 00:59:05 +0000884.Cm PasswordAuthentication
Damien Miller1a0c0b92003-09-02 22:51:17 +1000885will be validated through the Kerberos KDC.
Ben Lindstrom9f049032002-06-21 00:59:05 +0000886To use this option, the server needs a
887Kerberos servtab which allows the verification of the KDC's identity.
Damien Miller5b0d63f2006-03-15 11:56:56 +1100888The default is
jmc@openbsd.orgaae4dbd2016-10-07 14:41:52 +0000889.Cm no .
Damien Miller8448e662004-03-08 23:13:15 +1100890.It Cm KerberosGetAFSToken
Darren Tuckere2dd2d52005-10-03 18:19:06 +1000891If AFS is active and the user has a Kerberos 5 TGT, attempt to acquire
Damien Miller8448e662004-03-08 23:13:15 +1100892an AFS token before accessing the user's home directory.
Damien Miller5b0d63f2006-03-15 11:56:56 +1100893The default is
jmc@openbsd.orgaae4dbd2016-10-07 14:41:52 +0000894.Cm no .
Ben Lindstrom9f049032002-06-21 00:59:05 +0000895.It Cm KerberosOrLocalPasswd
Damien Miller5b0d63f2006-03-15 11:56:56 +1100896If password authentication through Kerberos fails then
Ben Lindstrom9f049032002-06-21 00:59:05 +0000897the password will be validated via any additional local mechanism
898such as
899.Pa /etc/passwd .
Damien Miller5b0d63f2006-03-15 11:56:56 +1100900The default is
jmc@openbsd.orgaae4dbd2016-10-07 14:41:52 +0000901.Cm yes .
Ben Lindstrom9f049032002-06-21 00:59:05 +0000902.It Cm KerberosTicketCleanup
903Specifies whether to automatically destroy the user's ticket cache
904file on logout.
Damien Miller5b0d63f2006-03-15 11:56:56 +1100905The default is
jmc@openbsd.orgaae4dbd2016-10-07 14:41:52 +0000906.Cm yes .
Damien Millerd5f62bf2010-09-24 22:11:14 +1000907.It Cm KexAlgorithms
908Specifies the available KEX (Key Exchange) algorithms.
909Multiple algorithms must be comma-separated.
naddy@openbsd.org4f9d75f2019-09-04 20:31:15 +0000910Alternately if the specified list begins with a
djm@openbsd.orgf9eca242015-07-30 00:01:34 +0000911.Sq +
912character, then the specified methods will be appended to the default set
913instead of replacing them.
naddy@openbsd.org4f9d75f2019-09-04 20:31:15 +0000914If the specified list begins with a
djm@openbsd.org68bc8cf2017-02-03 23:01:19 +0000915.Sq -
916character, then the specified methods (including wildcards) will be removed
917from the default set instead of replacing them.
naddy@openbsd.org91a21352019-09-06 14:45:34 +0000918If the specified list begins with a
919.Sq ^
920character, then the specified methods will be placed at the head of the
921default set.
Damien Millerc1621c82014-04-20 13:22:46 +1000922The supported algorithms are:
923.Pp
924.Bl -item -compact -offset indent
925.It
djm@openbsd.org16277fc2016-09-22 17:55:13 +0000926curve25519-sha256
927.It
Damien Millerc1621c82014-04-20 13:22:46 +1000928curve25519-sha256@libssh.org
929.It
930diffie-hellman-group1-sha1
931.It
932diffie-hellman-group14-sha1
933.It
djm@openbsd.org680321f2018-02-16 02:40:45 +0000934diffie-hellman-group14-sha256
935.It
936diffie-hellman-group16-sha512
937.It
938diffie-hellman-group18-sha512
939.It
Damien Millerc1621c82014-04-20 13:22:46 +1000940diffie-hellman-group-exchange-sha1
941.It
942diffie-hellman-group-exchange-sha256
943.It
944ecdh-sha2-nistp256
945.It
946ecdh-sha2-nistp384
947.It
948ecdh-sha2-nistp521
dtucker@openbsd.org56bced42020-01-21 06:09:56 +0000949.It
950sntrup4591761x25519-sha512@tinyssh.org
Damien Millerc1621c82014-04-20 13:22:46 +1000951.El
952.Pp
953The default is:
Damien Miller6575c3a2013-12-18 17:47:02 +1100954.Bd -literal -offset indent
djm@openbsd.org16277fc2016-09-22 17:55:13 +0000955curve25519-sha256,curve25519-sha256@libssh.org,
Damien Miller6575c3a2013-12-18 17:47:02 +1100956ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,
957diffie-hellman-group-exchange-sha256,
djm@openbsd.org680321f2018-02-16 02:40:45 +0000958diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,
tedu@openbsd.org0b813432020-01-25 07:09:14 +0000959diffie-hellman-group14-sha256
Damien Miller6575c3a2013-12-18 17:47:02 +1100960.Ed
djm@openbsd.org8f6784f2014-12-22 09:05:17 +0000961.Pp
jmc@openbsd.orgaae4dbd2016-10-07 14:41:52 +0000962The list of available key exchange algorithms may also be obtained using
dtucker@openbsd.orgd4d9e1d2020-02-07 03:54:44 +0000963.Qq ssh -Q KexAlgorithms .
Ben Lindstrom9f049032002-06-21 00:59:05 +0000964.It Cm ListenAddress
965Specifies the local addresses
Damien Miller5b0d63f2006-03-15 11:56:56 +1100966.Xr sshd 8
Ben Lindstrom9f049032002-06-21 00:59:05 +0000967should listen on.
968The following forms may be used:
969.Pp
970.Bl -item -offset indent -compact
971.It
972.Cm ListenAddress
973.Sm off
jmc@openbsd.org@openbsd.org7530e772017-10-25 06:18:06 +0000974.Ar hostname | address
Ben Lindstrom9f049032002-06-21 00:59:05 +0000975.Sm on
jmc@openbsd.org@openbsd.org68d3bbb2017-10-26 06:44:01 +0000976.Op Cm rdomain Ar domain
Ben Lindstrom9f049032002-06-21 00:59:05 +0000977.It
978.Cm ListenAddress
979.Sm off
jmc@openbsd.org@openbsd.org7530e772017-10-25 06:18:06 +0000980.Ar hostname : port
Ben Lindstrom9f049032002-06-21 00:59:05 +0000981.Sm on
jmc@openbsd.org@openbsd.org68d3bbb2017-10-26 06:44:01 +0000982.Op Cm rdomain Ar domain
djm@openbsd.orgacf559e2017-10-25 00:15:35 +0000983.It
984.Cm ListenAddress
985.Sm off
jmc@openbsd.org@openbsd.org7530e772017-10-25 06:18:06 +0000986.Ar IPv4_address : port
djm@openbsd.orgacf559e2017-10-25 00:15:35 +0000987.Sm on
jmc@openbsd.org@openbsd.org68d3bbb2017-10-26 06:44:01 +0000988.Op Cm rdomain Ar domain
Ben Lindstrom9f049032002-06-21 00:59:05 +0000989.It
990.Cm ListenAddress
991.Sm off
jmc@openbsd.org@openbsd.org7530e772017-10-25 06:18:06 +0000992.Oo Ar hostname | address Oc : Ar port
Ben Lindstrom9f049032002-06-21 00:59:05 +0000993.Sm on
jmc@openbsd.org@openbsd.org68d3bbb2017-10-26 06:44:01 +0000994.Op Cm rdomain Ar domain
Ben Lindstrom9f049032002-06-21 00:59:05 +0000995.El
996.Pp
djm@openbsd.orgacf559e2017-10-25 00:15:35 +0000997The optional
998.Cm rdomain
999qualifier requests
1000.Xr sshd 8
1001listen in an explicit routing domain.
Ben Lindstrom9f049032002-06-21 00:59:05 +00001002If
1003.Ar port
1004is not specified,
dtucker@openbsd.org531a57a2015-04-29 03:48:56 +00001005sshd will listen on the address and all
Ben Lindstrom9f049032002-06-21 00:59:05 +00001006.Cm Port
Damien Millerfbf486b2003-05-23 18:44:23 +10001007options specified.
djm@openbsd.orgacf559e2017-10-25 00:15:35 +00001008The default is to listen on all local addresses on the current default
1009routing domain.
Damien Miller495dca32003-04-01 21:42:14 +10001010Multiple
Ben Lindstrom9f049032002-06-21 00:59:05 +00001011.Cm ListenAddress
Damien Millerfbf486b2003-05-23 18:44:23 +10001012options are permitted.
djm@openbsd.orgacf559e2017-10-25 00:15:35 +00001013For more information on routing domains, see
jmc@openbsd.org@openbsd.org7530e772017-10-25 06:18:06 +00001014.Xr rdomain 4 .
Ben Lindstrom9f049032002-06-21 00:59:05 +00001015.It Cm LoginGraceTime
1016The server disconnects after this time if the user has not
1017successfully logged in.
1018If the value is 0, there is no time limit.
Damien Millerc1348632002-09-05 14:35:14 +10001019The default is 120 seconds.
Ben Lindstrom9f049032002-06-21 00:59:05 +00001020.It Cm LogLevel
1021Gives the verbosity level that is used when logging messages from
Damien Millerf4f22b52006-03-15 11:57:25 +11001022.Xr sshd 8 .
Ben Lindstrom9f049032002-06-21 00:59:05 +00001023The possible values are:
Damien Miller5b0d63f2006-03-15 11:56:56 +11001024QUIET, FATAL, ERROR, INFO, VERBOSE, DEBUG, DEBUG1, DEBUG2, and DEBUG3.
Damien Miller495dca32003-04-01 21:42:14 +10001025The default is INFO.
1026DEBUG and DEBUG1 are equivalent.
1027DEBUG2 and DEBUG3 each specify higher levels of debugging output.
1028Logging with a DEBUG level violates the privacy of users and is not recommended.
Ben Lindstrom9f049032002-06-21 00:59:05 +00001029.It Cm MACs
1030Specifies the available MAC (message authentication code) algorithms.
jmc@openbsd.orga685ae82016-02-17 07:38:19 +00001031The MAC algorithm is used for data integrity protection.
Ben Lindstrom9f049032002-06-21 00:59:05 +00001032Multiple algorithms must be comma-separated.
naddy@openbsd.org4f9d75f2019-09-04 20:31:15 +00001033If the specified list begins with a
djm@openbsd.orgf9eca242015-07-30 00:01:34 +00001034.Sq +
1035character, then the specified algorithms will be appended to the default set
1036instead of replacing them.
naddy@openbsd.org4f9d75f2019-09-04 20:31:15 +00001037If the specified list begins with a
djm@openbsd.org68bc8cf2017-02-03 23:01:19 +00001038.Sq -
1039character, then the specified algorithms (including wildcards) will be removed
1040from the default set instead of replacing them.
naddy@openbsd.org91a21352019-09-06 14:45:34 +00001041If the specified list begins with a
1042.Sq ^
1043character, then the specified algorithms will be placed at the head of the
1044default set.
djm@openbsd.orgf9eca242015-07-30 00:01:34 +00001045.Pp
Damien Milleraf43a7a2012-12-12 10:46:31 +11001046The algorithms that contain
jmc@openbsd.orgaae4dbd2016-10-07 14:41:52 +00001047.Qq -etm
Damien Milleraf43a7a2012-12-12 10:46:31 +11001048calculate the MAC after encryption (encrypt-then-mac).
1049These are considered safer and their use recommended.
Damien Millerc1621c82014-04-20 13:22:46 +10001050The supported MACs are:
1051.Pp
1052.Bl -item -compact -offset indent
1053.It
1054hmac-md5
1055.It
1056hmac-md5-96
1057.It
Damien Millerc1621c82014-04-20 13:22:46 +10001058hmac-sha1
1059.It
1060hmac-sha1-96
1061.It
1062hmac-sha2-256
1063.It
1064hmac-sha2-512
1065.It
1066umac-64@openssh.com
1067.It
1068umac-128@openssh.com
1069.It
1070hmac-md5-etm@openssh.com
1071.It
1072hmac-md5-96-etm@openssh.com
1073.It
Damien Millerc1621c82014-04-20 13:22:46 +10001074hmac-sha1-etm@openssh.com
1075.It
1076hmac-sha1-96-etm@openssh.com
1077.It
1078hmac-sha2-256-etm@openssh.com
1079.It
1080hmac-sha2-512-etm@openssh.com
1081.It
1082umac-64-etm@openssh.com
1083.It
1084umac-128-etm@openssh.com
1085.El
1086.Pp
Damien Miller5b0d63f2006-03-15 11:56:56 +11001087The default is:
Damien Miller22b7b492007-06-11 14:07:12 +10001088.Bd -literal -offset indent
Damien Milleraf43a7a2012-12-12 10:46:31 +11001089umac-64-etm@openssh.com,umac-128-etm@openssh.com,
1090hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,
djm@openbsd.orge4c918a2016-02-11 02:56:32 +00001091hmac-sha1-etm@openssh.com,
Damien Millerc1621c82014-04-20 13:22:46 +10001092umac-64@openssh.com,umac-128@openssh.com,
djm@openbsd.orge4c918a2016-02-11 02:56:32 +00001093hmac-sha2-256,hmac-sha2-512,hmac-sha1
Damien Miller22b7b492007-06-11 14:07:12 +10001094.Ed
djm@openbsd.org8f6784f2014-12-22 09:05:17 +00001095.Pp
jmc@openbsd.orgaae4dbd2016-10-07 14:41:52 +00001096The list of available MAC algorithms may also be obtained using
1097.Qq ssh -Q mac .
Darren Tucker45150472006-07-12 22:34:17 +10001098.It Cm Match
Damien Millerd04f3572006-07-24 13:46:50 +10001099Introduces a conditional block.
Damien Miller8c234032006-07-24 14:05:08 +10001100If all of the criteria on the
Darren Tucker45150472006-07-12 22:34:17 +10001101.Cm Match
Damien Miller8c234032006-07-24 14:05:08 +10001102line are satisfied, the keywords on the following lines override those
1103set in the global section of the config file, until either another
Darren Tucker45150472006-07-12 22:34:17 +10001104.Cm Match
Damien Miller8c234032006-07-24 14:05:08 +10001105line or the end of the file.
Damien Millerfc5d6752014-02-28 10:01:28 +11001106If a keyword appears in multiple
1107.Cm Match
sobrado@openbsd.org180bcb42014-08-30 16:32:25 +00001108blocks that are satisfied, only the first instance of the keyword is
Damien Millerfc5d6752014-02-28 10:01:28 +11001109applied.
Darren Tucker7a3935d2008-06-10 22:59:10 +10001110.Pp
Damien Millerd04f3572006-07-24 13:46:50 +10001111The arguments to
Darren Tucker45150472006-07-12 22:34:17 +10001112.Cm Match
Damien Millercf31f382013-10-24 21:02:56 +11001113are one or more criteria-pattern pairs or the single token
1114.Cm All
1115which matches all criteria.
Darren Tucker45150472006-07-12 22:34:17 +10001116The available criteria are
1117.Cm User ,
Damien Miller565ca3f2006-08-19 00:23:15 +10001118.Cm Group ,
Darren Tucker45150472006-07-12 22:34:17 +10001119.Cm Host ,
Darren Tuckerfbcf8272012-05-19 19:37:01 +10001120.Cm LocalAddress ,
1121.Cm LocalPort ,
djm@openbsd.org68af80e2017-10-25 00:19:47 +00001122.Cm RDomain ,
Darren Tucker45150472006-07-12 22:34:17 +10001123and
djm@openbsd.org68af80e2017-10-25 00:19:47 +00001124.Cm Address
1125(with
1126.Cm RDomain
1127representing the
1128.Xr rdomain 4
jmc@openbsd.org62949c52019-03-22 20:58:34 +00001129on which the connection was received).
djm@openbsd.org68af80e2017-10-25 00:19:47 +00001130.Pp
Darren Tucker7a3935d2008-06-10 22:59:10 +10001131The match patterns may consist of single entries or comma-separated
1132lists and may use the wildcard and negation operators described in the
jmc@openbsd.orgaae4dbd2016-10-07 14:41:52 +00001133.Sx PATTERNS
1134section of
Darren Tuckerb06cc4a2008-06-10 22:59:53 +10001135.Xr ssh_config 5 .
Darren Tucker7a3935d2008-06-10 22:59:10 +10001136.Pp
1137The patterns in an
1138.Cm Address
1139criteria may additionally contain addresses to match in CIDR
jmc@openbsd.orgaae4dbd2016-10-07 14:41:52 +00001140address/masklen format,
1141such as 192.0.2.0/24 or 2001:db8::/32.
Darren Tucker7a3935d2008-06-10 22:59:10 +10001142Note that the mask length provided must be consistent with the address -
1143it is an error to specify a mask length that is too long for the address
Darren Tucker6a2a4002008-06-10 23:03:04 +10001144or one with bits set in this host portion of the address.
jmc@openbsd.orgaae4dbd2016-10-07 14:41:52 +00001145For example, 192.0.2.0/33 and 192.0.2.0/8, respectively.
Darren Tucker7a3935d2008-06-10 22:59:10 +10001146.Pp
Darren Tucker45150472006-07-12 22:34:17 +10001147Only a subset of keywords may be used on the lines following a
1148.Cm Match
1149keyword.
1150Available keywords are
Damien Millerf8268502012-06-20 21:54:15 +10001151.Cm AcceptEnv ,
Damien Miller17819012009-01-28 16:20:17 +11001152.Cm AllowAgentForwarding ,
Damien Millerf8268502012-06-20 21:54:15 +10001153.Cm AllowGroups ,
djm@openbsd.org18a208d2015-02-20 22:40:32 +00001154.Cm AllowStreamLocalForwarding ,
Damien Miller9b439df2006-07-24 14:04:00 +10001155.Cm AllowTcpForwarding ,
Damien Millerc24da772012-06-20 21:53:58 +10001156.Cm AllowUsers ,
Damien Millera6e3f012012-11-04 23:21:40 +11001157.Cm AuthenticationMethods ,
Damien Miller09d3e122012-10-31 08:58:58 +11001158.Cm AuthorizedKeysCommand ,
1159.Cm AuthorizedKeysCommandUser ,
Damien Millerf33580e2012-11-04 22:22:52 +11001160.Cm AuthorizedKeysFile ,
djm@openbsd.orgb6b91082015-11-13 02:57:46 +00001161.Cm AuthorizedPrincipalsCommand ,
1162.Cm AuthorizedPrincipalsCommandUser ,
Damien Millerab6de352010-06-26 09:38:45 +10001163.Cm AuthorizedPrincipalsFile ,
Darren Tucker1629c072007-02-19 22:25:37 +11001164.Cm Banner ,
Damien Miller797e3d12008-05-19 14:27:42 +10001165.Cm ChrootDirectory ,
markus@openbsd.orgf0ddede2016-11-23 23:14:15 +00001166.Cm ClientAliveCountMax ,
1167.Cm ClientAliveInterval ,
Damien Millerc24da772012-06-20 21:53:58 +10001168.Cm DenyGroups ,
1169.Cm DenyUsers ,
Damien Millere2754432006-07-24 14:06:47 +10001170.Cm ForceCommand ,
djm@openbsd.org18a208d2015-02-20 22:40:32 +00001171.Cm GatewayPorts ,
djm@openbsd.orgbd49da22015-02-20 23:46:01 +00001172.Cm GSSAPIAuthentication ,
djm@openbsd.org1f729f02015-01-13 07:39:19 +00001173.Cm HostbasedAcceptedKeyTypes ,
Damien Miller25434de2008-05-19 14:29:08 +10001174.Cm HostbasedAuthentication ,
Damien Millerab6de352010-06-26 09:38:45 +10001175.Cm HostbasedUsesNameFromPacketOnly ,
djm@openbsd.org321c7142020-04-17 03:23:13 +00001176.Cm IgnoreRhosts ,
naddy@openbsd.orga6ac5d32020-02-06 22:34:58 +00001177.Cm Include ,
djm@openbsd.org18a208d2015-02-20 22:40:32 +00001178.Cm IPQoS ,
Darren Tucker1d75f222007-03-01 21:31:28 +11001179.Cm KbdInteractiveAuthentication ,
Damien Miller5737e362007-03-06 21:21:18 +11001180.Cm KerberosAuthentication ,
djm@openbsd.org54cd41a2017-05-17 01:24:17 +00001181.Cm LogLevel ,
Damien Miller307c1d12008-06-16 07:56:20 +10001182.Cm MaxAuthTries ,
Damien Millerc62a5af2008-06-16 07:55:46 +10001183.Cm MaxSessions ,
Darren Tucker1629c072007-02-19 22:25:37 +11001184.Cm PasswordAuthentication ,
Damien Miller51bde602008-11-03 19:23:10 +11001185.Cm PermitEmptyPasswords ,
djm@openbsd.org04df4322018-06-06 18:24:00 +00001186.Cm PermitListen ,
Damien Millerd1de9952006-07-24 14:05:48 +10001187.Cm PermitOpen ,
Darren Tucker15f94272008-01-01 20:36:56 +11001188.Cm PermitRootLogin ,
Damien Miller5ff30c62013-10-30 22:21:50 +11001189.Cm PermitTTY ,
Damien Millerab6de352010-06-26 09:38:45 +10001190.Cm PermitTunnel ,
Damien Miller72e6b5c2014-07-04 09:00:04 +10001191.Cm PermitUserRC ,
djm@openbsd.org1f729f02015-01-13 07:39:19 +00001192.Cm PubkeyAcceptedKeyTypes ,
Darren Tucker1477ea12009-10-07 08:36:05 +11001193.Cm PubkeyAuthentication ,
djm@openbsd.org18a208d2015-02-20 22:40:32 +00001194.Cm RekeyLimit ,
1195.Cm RevokedKeys ,
djm@openbsd.org35eb33f2017-10-25 00:17:08 +00001196.Cm RDomain ,
djm@openbsd.org28013752018-06-09 03:03:10 +00001197.Cm SetEnv ,
djm@openbsd.org18a208d2015-02-20 22:40:32 +00001198.Cm StreamLocalBindMask ,
1199.Cm StreamLocalBindUnlink ,
1200.Cm TrustedUserCAKeys ,
Damien Millerd1de9952006-07-24 14:05:48 +10001201.Cm X11DisplayOffset ,
Damien Miller19913842009-02-23 10:53:58 +11001202.Cm X11Forwarding
Darren Tucker45150472006-07-12 22:34:17 +10001203and
jmc@openbsd.org76af9c52019-06-12 05:53:21 +00001204.Cm X11UseLocalhost .
Darren Tucker89413db2004-05-24 10:36:23 +10001205.It Cm MaxAuthTries
1206Specifies the maximum number of authentication attempts permitted per
Damien Miller26213e52004-06-30 22:39:34 +10001207connection.
1208Once the number of failures reaches half this value,
1209additional failures are logged.
1210The default is 6.
Damien Miller7207f642008-05-19 15:34:50 +10001211.It Cm MaxSessions
djm@openbsd.orgcac3b662016-02-05 02:37:56 +00001212Specifies the maximum number of open shell, login or subsystem (e.g. sftp)
1213sessions permitted per network connection.
1214Multiple sessions may be established by clients that support connection
1215multiplexing.
1216Setting
1217.Cm MaxSessions
1218to 1 will effectively disable session multiplexing, whereas setting it to 0
1219will prevent all shell, login and subsystem sessions while still permitting
1220forwarding.
Damien Miller7207f642008-05-19 15:34:50 +10001221The default is 10.
Ben Lindstrom9f049032002-06-21 00:59:05 +00001222.It Cm MaxStartups
1223Specifies the maximum number of concurrent unauthenticated connections to the
Damien Miller5b0d63f2006-03-15 11:56:56 +11001224SSH daemon.
Ben Lindstrom9f049032002-06-21 00:59:05 +00001225Additional connections will be dropped until authentication succeeds or the
1226.Cm LoginGraceTime
1227expires for a connection.
Damien Miller1f583df2013-02-12 11:02:08 +11001228The default is 10:30:100.
Ben Lindstrom9f049032002-06-21 00:59:05 +00001229.Pp
1230Alternatively, random early drop can be enabled by specifying
1231the three colon separated values
jmc@openbsd.orgaae4dbd2016-10-07 14:41:52 +00001232start:rate:full (e.g. "10:30:60").
Damien Millerf4f22b52006-03-15 11:57:25 +11001233.Xr sshd 8
jmc@openbsd.orgaae4dbd2016-10-07 14:41:52 +00001234will refuse connection attempts with a probability of rate/100 (30%)
1235if there are currently start (10) unauthenticated connections.
Ben Lindstrom9f049032002-06-21 00:59:05 +00001236The probability increases linearly and all connection attempts
jmc@openbsd.orgaae4dbd2016-10-07 14:41:52 +00001237are refused if the number of unauthenticated connections reaches full (60).
Ben Lindstrom9f049032002-06-21 00:59:05 +00001238.It Cm PasswordAuthentication
1239Specifies whether password authentication is allowed.
1240The default is
jmc@openbsd.orgaae4dbd2016-10-07 14:41:52 +00001241.Cm yes .
Ben Lindstrom9f049032002-06-21 00:59:05 +00001242.It Cm PermitEmptyPasswords
1243When password authentication is allowed, it specifies whether the
1244server allows login to accounts with empty password strings.
1245The default is
jmc@openbsd.orgaae4dbd2016-10-07 14:41:52 +00001246.Cm no .
djm@openbsd.org04df4322018-06-06 18:24:00 +00001247.It Cm PermitListen
1248Specifies the addresses/ports on which a remote TCP port forwarding may listen.
1249The listen specification must be one of the following forms:
1250.Pp
1251.Bl -item -offset indent -compact
1252.It
1253.Cm PermitListen
1254.Sm off
djm@openbsd.org87ddd672018-06-19 02:59:41 +00001255.Ar port
1256.Sm on
1257.It
1258.Cm PermitListen
1259.Sm off
djm@openbsd.org04df4322018-06-06 18:24:00 +00001260.Ar host : port
1261.Sm on
djm@openbsd.org04df4322018-06-06 18:24:00 +00001262.El
1263.Pp
1264Multiple permissions may be specified by separating them with whitespace.
1265An argument of
1266.Cm any
1267can be used to remove all restrictions and permit any listen requests.
1268An argument of
1269.Cm none
1270can be used to prohibit all listen requests.
1271The host name may contain wildcards as described in the PATTERNS section in
1272.Xr ssh_config 5 .
1273The wildcard
1274.Sq *
1275can also be used in place of a port number to allow all ports.
1276By default all port forwarding listen requests are permitted.
jmc@openbsd.org6ff6fda2018-06-07 11:26:14 +00001277Note that the
djm@openbsd.org04df4322018-06-06 18:24:00 +00001278.Cm GatewayPorts
1279option may further restrict which addresses may be listened on.
djm@openbsd.org87ddd672018-06-19 02:59:41 +00001280Note also that
1281.Xr ssh 1
1282will request a listen host of
1283.Dq localhost
dtucker@openbsd.org177d6c82019-01-23 20:48:52 +00001284if no listen host was specifically requested, and this name is
jmc@openbsd.orgf535ff92018-06-19 05:36:57 +00001285treated differently to explicit localhost addresses of
djm@openbsd.org87ddd672018-06-19 02:59:41 +00001286.Dq 127.0.0.1
1287and
1288.Dq ::1 .
Damien Miller9b439df2006-07-24 14:04:00 +10001289.It Cm PermitOpen
1290Specifies the destinations to which TCP port forwarding is permitted.
1291The forwarding specification must be one of the following forms:
1292.Pp
1293.Bl -item -offset indent -compact
1294.It
1295.Cm PermitOpen
1296.Sm off
1297.Ar host : port
1298.Sm on
1299.It
1300.Cm PermitOpen
1301.Sm off
1302.Ar IPv4_addr : port
1303.Sm on
1304.It
1305.Cm PermitOpen
1306.Sm off
1307.Ar \&[ IPv6_addr \&] : port
1308.Sm on
1309.El
1310.Pp
Damien Millera765cf42006-07-24 14:08:13 +10001311Multiple forwards may be specified by separating them with whitespace.
Damien Miller9b439df2006-07-24 14:04:00 +10001312An argument of
jmc@openbsd.orgaae4dbd2016-10-07 14:41:52 +00001313.Cm any
Damien Miller9b439df2006-07-24 14:04:00 +10001314can be used to remove all restrictions and permit any forwarding requests.
Darren Tuckerba9ea322012-05-19 19:37:33 +10001315An argument of
jmc@openbsd.orgaae4dbd2016-10-07 14:41:52 +00001316.Cm none
Darren Tuckerba9ea322012-05-19 19:37:33 +10001317can be used to prohibit all forwarding requests.
jmc@openbsd.org32d921c2016-07-19 12:59:16 +00001318The wildcard
jmc@openbsd.orgaae4dbd2016-10-07 14:41:52 +00001319.Sq *
djm@openbsd.org734f2f82020-01-25 06:03:10 +00001320can be used for host or port to allow all hosts or ports respectively.
1321Otherwise, no pattern matching or address lookups are performed on supplied
1322names.
Damien Miller65bc2c42006-07-24 14:04:16 +10001323By default all port forwarding requests are permitted.
Ben Lindstrom9f049032002-06-21 00:59:05 +00001324.It Cm PermitRootLogin
Darren Tuckerb3509012005-01-20 11:01:46 +11001325Specifies whether root can log in using
Ben Lindstrom9f049032002-06-21 00:59:05 +00001326.Xr ssh 1 .
1327The argument must be
jmc@openbsd.orgaae4dbd2016-10-07 14:41:52 +00001328.Cm yes ,
1329.Cm prohibit-password ,
jmc@openbsd.orgaae4dbd2016-10-07 14:41:52 +00001330.Cm forced-commands-only ,
Ben Lindstrom9f049032002-06-21 00:59:05 +00001331or
jmc@openbsd.orgaae4dbd2016-10-07 14:41:52 +00001332.Cm no .
Ben Lindstrom9f049032002-06-21 00:59:05 +00001333The default is
jmc@openbsd.orgaae4dbd2016-10-07 14:41:52 +00001334.Cm prohibit-password .
Ben Lindstrom9f049032002-06-21 00:59:05 +00001335.Pp
1336If this option is set to
jmc@openbsd.orgaae4dbd2016-10-07 14:41:52 +00001337.Cm prohibit-password
jmc@openbsd.org071325f2017-10-13 16:50:45 +00001338(or its deprecated alias,
1339.Cm without-password ) ,
deraadt@openbsd.org1dc8d932015-08-06 14:53:21 +00001340password and keyboard-interactive authentication are disabled for root.
Ben Lindstrom9f049032002-06-21 00:59:05 +00001341.Pp
1342If this option is set to
jmc@openbsd.orgaae4dbd2016-10-07 14:41:52 +00001343.Cm forced-commands-only ,
Ben Lindstrom9f049032002-06-21 00:59:05 +00001344root login with public key authentication will be allowed,
1345but only if the
1346.Ar command
1347option has been specified
1348(which may be useful for taking remote backups even if root login is
Damien Millerfbf486b2003-05-23 18:44:23 +10001349normally not allowed).
1350All other authentication methods are disabled for root.
Ben Lindstrom9f049032002-06-21 00:59:05 +00001351.Pp
1352If this option is set to
jmc@openbsd.orgaae4dbd2016-10-07 14:41:52 +00001353.Cm no ,
Darren Tuckerb3509012005-01-20 11:01:46 +11001354root is not allowed to log in.
jmc@openbsd.orgf219fc82016-09-07 18:39:24 +00001355.It Cm PermitTTY
1356Specifies whether
1357.Xr pty 4
1358allocation is permitted.
1359The default is
jmc@openbsd.orgaae4dbd2016-10-07 14:41:52 +00001360.Cm yes .
Damien Millerd27b9472005-12-13 19:29:02 +11001361.It Cm PermitTunnel
1362Specifies whether
1363.Xr tun 4
1364device forwarding is allowed.
Damien Miller7b58e802005-12-13 19:33:19 +11001365The argument must be
jmc@openbsd.orgaae4dbd2016-10-07 14:41:52 +00001366.Cm yes ,
1367.Cm point-to-point
Damien Miller991dba42006-07-10 20:16:27 +10001368(layer 3),
jmc@openbsd.orgaae4dbd2016-10-07 14:41:52 +00001369.Cm ethernet
Damien Miller991dba42006-07-10 20:16:27 +10001370(layer 2), or
jmc@openbsd.orgaae4dbd2016-10-07 14:41:52 +00001371.Cm no .
Damien Miller991dba42006-07-10 20:16:27 +10001372Specifying
jmc@openbsd.orgaae4dbd2016-10-07 14:41:52 +00001373.Cm yes
Damien Miller991dba42006-07-10 20:16:27 +10001374permits both
jmc@openbsd.orgaae4dbd2016-10-07 14:41:52 +00001375.Cm point-to-point
Damien Miller991dba42006-07-10 20:16:27 +10001376and
jmc@openbsd.orgaae4dbd2016-10-07 14:41:52 +00001377.Cm ethernet .
Damien Millerd27b9472005-12-13 19:29:02 +11001378The default is
jmc@openbsd.orgaae4dbd2016-10-07 14:41:52 +00001379.Cm no .
djm@openbsd.org48dffd52014-09-09 09:45:36 +00001380.Pp
1381Independent of this setting, the permissions of the selected
1382.Xr tun 4
1383device must allow access to the user.
Ben Lindstrom5d860f02002-08-01 01:28:38 +00001384.It Cm PermitUserEnvironment
1385Specifies whether
1386.Pa ~/.ssh/environment
Ben Lindstrombd9bf382002-08-20 18:54:20 +00001387and
Ben Lindstrom5d860f02002-08-01 01:28:38 +00001388.Cm environment=
1389options in
1390.Pa ~/.ssh/authorized_keys
Ben Lindstrombd9bf382002-08-20 18:54:20 +00001391are processed by
Damien Miller5b0d63f2006-03-15 11:56:56 +11001392.Xr sshd 8 .
djm@openbsd.org95344c22018-07-03 10:59:35 +00001393Valid options are
1394.Cm yes ,
1395.Cm no
1396or a pattern-list specifying which environment variable names to accept
1397(for example
1398.Qq LANG,LC_* ) .
Ben Lindstrom5d860f02002-08-01 01:28:38 +00001399The default is
jmc@openbsd.orgaae4dbd2016-10-07 14:41:52 +00001400.Cm no .
Ben Lindstrombd9bf382002-08-20 18:54:20 +00001401Enabling environment processing may enable users to bypass access
1402restrictions in some configurations using mechanisms such as
1403.Ev LD_PRELOAD .
Damien Miller72e6b5c2014-07-04 09:00:04 +10001404.It Cm PermitUserRC
1405Specifies whether any
1406.Pa ~/.ssh/rc
1407file is executed.
1408The default is
jmc@openbsd.orgaae4dbd2016-10-07 14:41:52 +00001409.Cm yes .
Ben Lindstrom9f049032002-06-21 00:59:05 +00001410.It Cm PidFile
Ben Lindstrom959de992002-06-23 00:35:25 +00001411Specifies the file that contains the process ID of the
dtucker@openbsd.org6cc7cfa2015-04-16 23:25:50 +00001412SSH daemon, or
jmc@openbsd.orgaae4dbd2016-10-07 14:41:52 +00001413.Cm none
dtucker@openbsd.org6cc7cfa2015-04-16 23:25:50 +00001414to not write one.
Ben Lindstrom9f049032002-06-21 00:59:05 +00001415The default is
1416.Pa /var/run/sshd.pid .
1417.It Cm Port
1418Specifies the port number that
Damien Miller5b0d63f2006-03-15 11:56:56 +11001419.Xr sshd 8
Ben Lindstrom9f049032002-06-21 00:59:05 +00001420listens on.
1421The default is 22.
1422Multiple options of this type are permitted.
1423See also
1424.Cm ListenAddress .
1425.It Cm PrintLastLog
1426Specifies whether
Damien Miller5b0d63f2006-03-15 11:56:56 +11001427.Xr sshd 8
Darren Tucker7cc5c232004-11-05 20:06:59 +11001428should print the date and time of the last user login when a user logs
1429in interactively.
Ben Lindstrom9f049032002-06-21 00:59:05 +00001430The default is
jmc@openbsd.orgaae4dbd2016-10-07 14:41:52 +00001431.Cm yes .
Ben Lindstrom9f049032002-06-21 00:59:05 +00001432.It Cm PrintMotd
1433Specifies whether
Damien Miller5b0d63f2006-03-15 11:56:56 +11001434.Xr sshd 8
Ben Lindstrom9f049032002-06-21 00:59:05 +00001435should print
1436.Pa /etc/motd
1437when a user logs in interactively.
1438(On some systems it is also printed by the shell,
1439.Pa /etc/profile ,
1440or equivalent.)
1441The default is
jmc@openbsd.orgaae4dbd2016-10-07 14:41:52 +00001442.Cm yes .
djm@openbsd.org1f729f02015-01-13 07:39:19 +00001443.It Cm PubkeyAcceptedKeyTypes
1444Specifies the key types that will be accepted for public key authentication
djm@openbsd.org312d2f22018-07-04 13:49:31 +00001445as a list of comma-separated patterns.
naddy@openbsd.org4f9d75f2019-09-04 20:31:15 +00001446Alternately if the specified list begins with a
djm@openbsd.orgf9eca242015-07-30 00:01:34 +00001447.Sq +
1448character, then the specified key types will be appended to the default set
1449instead of replacing them.
naddy@openbsd.org4f9d75f2019-09-04 20:31:15 +00001450If the specified list begins with a
djm@openbsd.org68bc8cf2017-02-03 23:01:19 +00001451.Sq -
1452character, then the specified key types (including wildcards) will be removed
1453from the default set instead of replacing them.
naddy@openbsd.org91a21352019-09-06 14:45:34 +00001454If the specified list begins with a
1455.Sq ^
1456character, then the specified key types will be placed at the head of the
1457default set.
markus@openbsd.org3a1638d2015-07-10 06:21:53 +00001458The default for this option is:
1459.Bd -literal -offset 3n
1460ecdsa-sha2-nistp256-cert-v01@openssh.com,
1461ecdsa-sha2-nistp384-cert-v01@openssh.com,
1462ecdsa-sha2-nistp521-cert-v01@openssh.com,
naddy@openbsd.orgae024b22019-12-19 15:09:30 +00001463sk-ecdsa-sha2-nistp256-cert-v01@openssh.com,
markus@openbsd.org3a1638d2015-07-10 06:21:53 +00001464ssh-ed25519-cert-v01@openssh.com,
naddy@openbsd.orgae024b22019-12-19 15:09:30 +00001465sk-ssh-ed25519-cert-v01@openssh.com,
naddy@openbsd.orgaa4c6402019-11-07 08:38:38 +00001466rsa-sha2-512-cert-v01@openssh.com,
1467rsa-sha2-256-cert-v01@openssh.com,
markus@openbsd.org3a1638d2015-07-10 06:21:53 +00001468ssh-rsa-cert-v01@openssh.com,
1469ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,
naddy@openbsd.orgae024b22019-12-19 15:09:30 +00001470sk-ecdsa-sha2-nistp256@openssh.com,
1471ssh-ed25519,sk-ssh-ed25519@openssh.com,
1472rsa-sha2-512,rsa-sha2-256,ssh-rsa
markus@openbsd.org3a1638d2015-07-10 06:21:53 +00001473.Ed
1474.Pp
jmc@openbsd.orgaae4dbd2016-10-07 14:41:52 +00001475The list of available key types may also be obtained using
dtucker@openbsd.orgd4d9e1d2020-02-07 03:54:44 +00001476.Qq ssh -Q PubkeyAcceptedKeyTypes .
djm@openbsd.org0fddf292019-11-25 00:52:46 +00001477.It Cm PubkeyAuthOptions
1478Sets one or more public key authentication options.
1479Two option keywords are currently supported:
jmc@openbsd.org8635afa2019-11-26 22:42:26 +00001480.Cm none
1481(the default; indicating no additional options are enabled)
djm@openbsd.org0fddf292019-11-25 00:52:46 +00001482and
1483.Cm touch-required .
1484.Pp
1485The
1486.Cm touch-required
naddy@openbsd.org141df482019-12-21 20:22:34 +00001487option causes public key authentication using a FIDO authenticator algorithm
jmc@openbsd.org8635afa2019-11-26 22:42:26 +00001488(i.e.\&
djm@openbsd.org0fddf292019-11-25 00:52:46 +00001489.Cm ecdsa-sk
1490or
1491.Cm ed25519-sk )
1492to always require the signature to attest that a physically present user
naddy@openbsd.org141df482019-12-21 20:22:34 +00001493explicitly confirmed the authentication (usually by touching the authenticator).
djm@openbsd.org0fddf292019-11-25 00:52:46 +00001494By default,
1495.Xr sshd 8
naddy@openbsd.org141df482019-12-21 20:22:34 +00001496requires user presence unless overridden with an authorized_keys option.
djm@openbsd.org0fddf292019-11-25 00:52:46 +00001497The
1498.Cm touch-required
1499flag disables this override.
naddy@openbsd.org141df482019-12-21 20:22:34 +00001500This option has no effect for other, non-authenticator public key types.
Ben Lindstrom9f049032002-06-21 00:59:05 +00001501.It Cm PubkeyAuthentication
1502Specifies whether public key authentication is allowed.
1503The default is
jmc@openbsd.orgaae4dbd2016-10-07 14:41:52 +00001504.Cm yes .
Darren Tucker5f96f3b2013-05-16 20:29:28 +10001505.It Cm RekeyLimit
1506Specifies the maximum amount of data that may be transmitted before the
1507session key is renegotiated, optionally followed a maximum amount of
1508time that may pass before the session key is renegotiated.
1509The first argument is specified in bytes and may have a suffix of
1510.Sq K ,
1511.Sq M ,
1512or
1513.Sq G
1514to indicate Kilobytes, Megabytes, or Gigabytes, respectively.
1515The default is between
1516.Sq 1G
1517and
1518.Sq 4G ,
1519depending on the cipher.
1520The optional second value is specified in seconds and may use any of the
1521units documented in the
1522.Sx TIME FORMATS
Darren Tucker64d22942013-05-16 20:31:29 +10001523section.
Darren Tucker5f96f3b2013-05-16 20:29:28 +10001524The default value for
1525.Cm RekeyLimit
1526is
jmc@openbsd.orgaae4dbd2016-10-07 14:41:52 +00001527.Cm default none ,
Darren Tucker5f96f3b2013-05-16 20:29:28 +10001528which means that rekeying is performed after the cipher's default amount
1529of data has been sent or received and no time based rekeying is done.
Damien Miller1aed65e2010-03-04 21:53:35 +11001530.It Cm RevokedKeys
dtucker@openbsd.org6cc7cfa2015-04-16 23:25:50 +00001531Specifies revoked public keys file, or
jmc@openbsd.orgaae4dbd2016-10-07 14:41:52 +00001532.Cm none
dtucker@openbsd.org6cc7cfa2015-04-16 23:25:50 +00001533to not use one.
Damien Miller1aed65e2010-03-04 21:53:35 +11001534Keys listed in this file will be refused for public key authentication.
1535Note that if this file is not readable, then public key authentication will
1536be refused for all users.
Damien Millerf3747bf2013-01-18 11:44:04 +11001537Keys may be specified as a text file, listing one public key per line, or as
1538an OpenSSH Key Revocation List (KRL) as generated by
Damien Miller72abeb72013-01-20 22:33:44 +11001539.Xr ssh-keygen 1 .
Damien Millerfecfd112013-07-18 16:11:50 +10001540For more information on KRLs, see the KEY REVOCATION LISTS section in
Damien Millerf3747bf2013-01-18 11:44:04 +11001541.Xr ssh-keygen 1 .
djm@openbsd.org35eb33f2017-10-25 00:17:08 +00001542.It Cm RDomain
1543Specifies an explicit routing domain that is applied after authentication
1544has completed.
jmc@openbsd.org@openbsd.org7530e772017-10-25 06:18:06 +00001545The user session, as well and any forwarded or listening IP sockets,
1546will be bound to this
djm@openbsd.org35eb33f2017-10-25 00:17:08 +00001547.Xr rdomain 4 .
1548If the routing domain is set to
1549.Cm \&%D ,
jmc@openbsd.org@openbsd.org7530e772017-10-25 06:18:06 +00001550then the domain in which the incoming connection was received will be applied.
naddy@openbsd.orgae024b22019-12-19 15:09:30 +00001551.It Cm SecurityKeyProvider
naddy@openbsd.org141df482019-12-21 20:22:34 +00001552Specifies a path to a library that will be used when loading
1553FIDO authenticator-hosted keys, overriding the default of using
1554the built-in USB HID support.
djm@openbsd.org28013752018-06-09 03:03:10 +00001555.It Cm SetEnv
1556Specifies one or more environment variables to set in child sessions started
1557by
1558.Xr sshd 8
1559as
1560.Dq NAME=VALUE .
1561The environment value may be quoted (e.g. if it contains whitespace
1562characters).
1563Environment variables set by
1564.Cm SetEnv
1565override the default environment and any variables specified by the user
1566via
1567.Cm AcceptEnv
1568or
1569.Cm PermitUserEnvironment .
Damien Miller7acefbb2014-07-18 14:11:24 +10001570.It Cm StreamLocalBindMask
1571Sets the octal file creation mode mask
1572.Pq umask
1573used when creating a Unix-domain socket file for local or remote
1574port forwarding.
1575This option is only used for port forwarding to a Unix-domain socket file.
1576.Pp
1577The default value is 0177, which creates a Unix-domain socket file that is
1578readable and writable only by the owner.
1579Note that not all operating systems honor the file mode on Unix-domain
1580socket files.
1581.It Cm StreamLocalBindUnlink
1582Specifies whether to remove an existing Unix-domain socket file for local
1583or remote port forwarding before creating a new one.
1584If the socket file already exists and
1585.Cm StreamLocalBindUnlink
1586is not enabled,
1587.Nm sshd
1588will be unable to forward the port to the Unix-domain socket file.
1589This option is only used for port forwarding to a Unix-domain socket file.
1590.Pp
1591The argument must be
jmc@openbsd.orgaae4dbd2016-10-07 14:41:52 +00001592.Cm yes
Damien Miller7acefbb2014-07-18 14:11:24 +10001593or
jmc@openbsd.orgaae4dbd2016-10-07 14:41:52 +00001594.Cm no .
Damien Miller7acefbb2014-07-18 14:11:24 +10001595The default is
jmc@openbsd.orgaae4dbd2016-10-07 14:41:52 +00001596.Cm no .
Ben Lindstrom9f049032002-06-21 00:59:05 +00001597.It Cm StrictModes
1598Specifies whether
Damien Miller5b0d63f2006-03-15 11:56:56 +11001599.Xr sshd 8
Ben Lindstrom9f049032002-06-21 00:59:05 +00001600should check file modes and ownership of the
1601user's files and home directory before accepting login.
1602This is normally desirable because novices sometimes accidentally leave their
1603directory or files world-writable.
1604The default is
jmc@openbsd.orgaae4dbd2016-10-07 14:41:52 +00001605.Cm yes .
Darren Tuckerf788a912010-01-08 17:06:47 +11001606Note that this does not apply to
1607.Cm ChrootDirectory ,
1608whose permissions and ownership are checked unconditionally.
Ben Lindstrom9f049032002-06-21 00:59:05 +00001609.It Cm Subsystem
Damien Miller208f1ed2006-03-15 11:56:03 +11001610Configures an external subsystem (e.g. file transfer daemon).
Damien Miller917f9b62006-07-10 20:36:47 +10001611Arguments should be a subsystem name and a command (with optional arguments)
1612to execute upon subsystem request.
Damien Millerd8cb1f12008-02-10 22:40:12 +11001613.Pp
Ben Lindstrom9f049032002-06-21 00:59:05 +00001614The command
jmc@openbsd.orgaae4dbd2016-10-07 14:41:52 +00001615.Cm sftp-server
1616implements the SFTP file transfer subsystem.
Damien Millerd8cb1f12008-02-10 22:40:12 +11001617.Pp
1618Alternately the name
jmc@openbsd.orgaae4dbd2016-10-07 14:41:52 +00001619.Cm internal-sftp
1620implements an in-process SFTP server.
Damien Millerd8cb1f12008-02-10 22:40:12 +11001621This may simplify configurations using
1622.Cm ChrootDirectory
1623to force a different filesystem root on clients.
1624.Pp
Ben Lindstrom9f049032002-06-21 00:59:05 +00001625By default no subsystems are defined.
Ben Lindstrom9f049032002-06-21 00:59:05 +00001626.It Cm SyslogFacility
1627Gives the facility code that is used when logging messages from
Damien Millerf4f22b52006-03-15 11:57:25 +11001628.Xr sshd 8 .
Ben Lindstrom9f049032002-06-21 00:59:05 +00001629The possible values are: DAEMON, USER, AUTH, LOCAL0, LOCAL1, LOCAL2,
1630LOCAL3, LOCAL4, LOCAL5, LOCAL6, LOCAL7.
1631The default is AUTH.
Damien Miller12c150e2003-12-17 16:31:10 +11001632.It Cm TCPKeepAlive
1633Specifies whether the system should send TCP keepalive messages to the
1634other side.
1635If they are sent, death of the connection or crash of one
1636of the machines will be properly noticed.
1637However, this means that
1638connections will die if the route is down temporarily, and some people
1639find it annoying.
1640On the other hand, if TCP keepalives are not sent,
1641sessions may hang indefinitely on the server, leaving
jmc@openbsd.orgaae4dbd2016-10-07 14:41:52 +00001642.Qq ghost
Damien Miller12c150e2003-12-17 16:31:10 +11001643users and consuming server resources.
1644.Pp
1645The default is
jmc@openbsd.orgaae4dbd2016-10-07 14:41:52 +00001646.Cm yes
Damien Miller12c150e2003-12-17 16:31:10 +11001647(to send TCP keepalive messages), and the server will notice
1648if the network goes down or the client host crashes.
1649This avoids infinitely hanging sessions.
1650.Pp
1651To disable TCP keepalive messages, the value should be set to
jmc@openbsd.orgaae4dbd2016-10-07 14:41:52 +00001652.Cm no .
Damien Miller1aed65e2010-03-04 21:53:35 +11001653.It Cm TrustedUserCAKeys
1654Specifies a file containing public keys of certificate authorities that are
dtucker@openbsd.org6cc7cfa2015-04-16 23:25:50 +00001655trusted to sign user certificates for authentication, or
jmc@openbsd.orgaae4dbd2016-10-07 14:41:52 +00001656.Cm none
dtucker@openbsd.org6cc7cfa2015-04-16 23:25:50 +00001657to not use one.
Damien Miller72b33822010-03-05 07:39:01 +11001658Keys are listed one per line; empty lines and comments starting with
Damien Miller1aed65e2010-03-04 21:53:35 +11001659.Ql #
1660are allowed.
1661If a certificate is presented for authentication and has its signing CA key
1662listed in this file, then it may be used for authentication for any user
1663listed in the certificate's principals list.
1664Note that certificates that lack a list of principals will not be permitted
1665for authentication using
1666.Cm TrustedUserCAKeys .
Damien Millerfecfd112013-07-18 16:11:50 +10001667For more details on certificates, see the CERTIFICATES section in
Damien Miller1aed65e2010-03-04 21:53:35 +11001668.Xr ssh-keygen 1 .
Damien Miller3a961dc2003-06-03 10:25:48 +10001669.It Cm UseDNS
1670Specifies whether
Damien Miller5b0d63f2006-03-15 11:56:56 +11001671.Xr sshd 8
djm@openbsd.orgc63c9a62015-07-20 00:30:01 +00001672should look up the remote host name, and to check that
Damien Miller3a961dc2003-06-03 10:25:48 +10001673the resolved host name for the remote IP address maps back to the
1674very same IP address.
djm@openbsd.orgc63c9a62015-07-20 00:30:01 +00001675.Pp
1676If this option is set to
jmc@openbsd.orgaae4dbd2016-10-07 14:41:52 +00001677.Cm no
djm@openbsd.orgc63c9a62015-07-20 00:30:01 +00001678(the default) then only addresses and not host names may be used in
djm@openbsd.org0235a5f2016-03-17 17:19:43 +00001679.Pa ~/.ssh/authorized_keys
djm@openbsd.orgc63c9a62015-07-20 00:30:01 +00001680.Cm from
1681and
jmc@openbsd.org1f8d3d62015-08-14 15:32:41 +00001682.Nm
djm@openbsd.orgc63c9a62015-07-20 00:30:01 +00001683.Cm Match
1684.Cm Host
1685directives.
Damien Miller2e193e22003-05-14 15:13:03 +10001686.It Cm UsePAM
Darren Tucker1dcff9a2004-05-13 16:51:40 +10001687Enables the Pluggable Authentication Module interface.
1688If set to
jmc@openbsd.orgaae4dbd2016-10-07 14:41:52 +00001689.Cm yes
Darren Tucker1dcff9a2004-05-13 16:51:40 +10001690this will enable PAM authentication using
1691.Cm ChallengeResponseAuthentication
Darren Tuckera4904f72006-02-23 21:35:30 +11001692and
1693.Cm PasswordAuthentication
1694in addition to PAM account and session module processing for all
1695authentication types.
Darren Tucker1dcff9a2004-05-13 16:51:40 +10001696.Pp
1697Because PAM challenge-response authentication usually serves an equivalent
1698role to password authentication, you should disable either
1699.Cm PasswordAuthentication
1700or
1701.Cm ChallengeResponseAuthentication.
1702.Pp
1703If
1704.Cm UsePAM
1705is enabled, you will not be able to run
1706.Xr sshd 8
1707as a non-root user.
1708The default is
jmc@openbsd.orgaae4dbd2016-10-07 14:41:52 +00001709.Cm no .
Damien Miller23528812012-04-22 11:24:43 +10001710.It Cm VersionAddendum
1711Optionally specifies additional text to append to the SSH protocol banner
1712sent by the server upon connection.
1713The default is
jmc@openbsd.orgaae4dbd2016-10-07 14:41:52 +00001714.Cm none .
Ben Lindstrom9f049032002-06-21 00:59:05 +00001715.It Cm X11DisplayOffset
1716Specifies the first display number available for
Damien Miller5b0d63f2006-03-15 11:56:56 +11001717.Xr sshd 8 Ns 's
Ben Lindstrom9f049032002-06-21 00:59:05 +00001718X11 forwarding.
Damien Miller5b0d63f2006-03-15 11:56:56 +11001719This prevents sshd from interfering with real X11 servers.
Ben Lindstrom9f049032002-06-21 00:59:05 +00001720The default is 10.
1721.It Cm X11Forwarding
1722Specifies whether X11 forwarding is permitted.
Damien Miller101c4a72002-09-19 11:51:21 +10001723The argument must be
jmc@openbsd.orgaae4dbd2016-10-07 14:41:52 +00001724.Cm yes
Damien Miller101c4a72002-09-19 11:51:21 +10001725or
jmc@openbsd.orgaae4dbd2016-10-07 14:41:52 +00001726.Cm no .
Ben Lindstrom9f049032002-06-21 00:59:05 +00001727The default is
jmc@openbsd.orgaae4dbd2016-10-07 14:41:52 +00001728.Cm no .
Damien Miller101c4a72002-09-19 11:51:21 +10001729.Pp
1730When X11 forwarding is enabled, there may be additional exposure to
1731the server and to client displays if the
Damien Miller5b0d63f2006-03-15 11:56:56 +11001732.Xr sshd 8
Damien Miller101c4a72002-09-19 11:51:21 +10001733proxy display is configured to listen on the wildcard address (see
jmc@openbsd.orgaae4dbd2016-10-07 14:41:52 +00001734.Cm X11UseLocalhost ) ,
1735though this is not the default.
Damien Miller101c4a72002-09-19 11:51:21 +10001736Additionally, the authentication spoofing and authentication data
1737verification and substitution occur on the client side.
1738The security risk of using X11 forwarding is that the client's X11
Damien Miller5b0d63f2006-03-15 11:56:56 +11001739display server may be exposed to attack when the SSH client requests
Damien Miller101c4a72002-09-19 11:51:21 +10001740forwarding (see the warnings for
1741.Cm ForwardX11
1742in
Damien Millerf1ce5052003-06-11 22:04:39 +10001743.Xr ssh_config 5 ) .
Damien Miller101c4a72002-09-19 11:51:21 +10001744A system administrator may have a stance in which they want to
1745protect clients that may expose themselves to attack by unwittingly
1746requesting X11 forwarding, which can warrant a
jmc@openbsd.orgaae4dbd2016-10-07 14:41:52 +00001747.Cm no
Damien Miller101c4a72002-09-19 11:51:21 +10001748setting.
1749.Pp
1750Note that disabling X11 forwarding does not prevent users from
1751forwarding X11 traffic, as users can always install their own forwarders.
Ben Lindstrom9f049032002-06-21 00:59:05 +00001752.It Cm X11UseLocalhost
1753Specifies whether
Damien Miller5b0d63f2006-03-15 11:56:56 +11001754.Xr sshd 8
Ben Lindstrom9f049032002-06-21 00:59:05 +00001755should bind the X11 forwarding server to the loopback address or to
Damien Miller495dca32003-04-01 21:42:14 +10001756the wildcard address.
1757By default,
Damien Miller5b0d63f2006-03-15 11:56:56 +11001758sshd binds the forwarding server to the loopback address and sets the
Ben Lindstrom9f049032002-06-21 00:59:05 +00001759hostname part of the
1760.Ev DISPLAY
1761environment variable to
jmc@openbsd.orgaae4dbd2016-10-07 14:41:52 +00001762.Cm localhost .
Ben Lindstrom15b61202002-08-20 18:44:24 +00001763This prevents remote hosts from connecting to the proxy display.
Ben Lindstrom9f049032002-06-21 00:59:05 +00001764However, some older X11 clients may not function with this
1765configuration.
1766.Cm X11UseLocalhost
1767may be set to
jmc@openbsd.orgaae4dbd2016-10-07 14:41:52 +00001768.Cm no
Ben Lindstrom9f049032002-06-21 00:59:05 +00001769to specify that the forwarding server should be bound to the wildcard
1770address.
1771The argument must be
jmc@openbsd.orgaae4dbd2016-10-07 14:41:52 +00001772.Cm yes
Ben Lindstrom9f049032002-06-21 00:59:05 +00001773or
jmc@openbsd.orgaae4dbd2016-10-07 14:41:52 +00001774.Cm no .
Ben Lindstrom9f049032002-06-21 00:59:05 +00001775The default is
jmc@openbsd.orgaae4dbd2016-10-07 14:41:52 +00001776.Cm yes .
Ben Lindstrom9f049032002-06-21 00:59:05 +00001777.It Cm XAuthLocation
Damien Miller05913ba2002-09-04 16:51:03 +10001778Specifies the full pathname of the
Ben Lindstrom9f049032002-06-21 00:59:05 +00001779.Xr xauth 1
dtucker@openbsd.org6cc7cfa2015-04-16 23:25:50 +00001780program, or
jmc@openbsd.orgaae4dbd2016-10-07 14:41:52 +00001781.Cm none
dtucker@openbsd.org6cc7cfa2015-04-16 23:25:50 +00001782to not use one.
Ben Lindstrom9f049032002-06-21 00:59:05 +00001783The default is
1784.Pa /usr/X11R6/bin/xauth .
1785.El
Damien Millere3beba22006-03-15 11:59:25 +11001786.Sh TIME FORMATS
Damien Millerf4f22b52006-03-15 11:57:25 +11001787.Xr sshd 8
Ben Lindstrom9f049032002-06-21 00:59:05 +00001788command-line arguments and configuration file options that specify time
1789may be expressed using a sequence of the form:
1790.Sm off
Ben Lindstrom1f8cf4f2002-08-20 18:43:27 +00001791.Ar time Op Ar qualifier ,
Ben Lindstrom9f049032002-06-21 00:59:05 +00001792.Sm on
1793where
1794.Ar time
1795is a positive integer value and
1796.Ar qualifier
1797is one of the following:
1798.Pp
1799.Bl -tag -width Ds -compact -offset indent
Damien Miller393821a2006-07-24 14:04:53 +10001800.It Aq Cm none
Ben Lindstrom9f049032002-06-21 00:59:05 +00001801seconds
1802.It Cm s | Cm S
1803seconds
1804.It Cm m | Cm M
1805minutes
1806.It Cm h | Cm H
1807hours
1808.It Cm d | Cm D
1809days
1810.It Cm w | Cm W
1811weeks
1812.El
1813.Pp
1814Each member of the sequence is added together to calculate
1815the total time value.
1816.Pp
1817Time format examples:
1818.Pp
1819.Bl -tag -width Ds -compact -offset indent
1820.It 600
1821600 seconds (10 minutes)
1822.It 10m
182310 minutes
1824.It 1h30m
18251 hour 30 minutes (90 minutes)
1826.El
jmc@openbsd.orgde6a1752016-09-22 19:19:01 +00001827.Sh TOKENS
1828Arguments to some keywords can make use of tokens,
1829which are expanded at runtime:
1830.Pp
1831.Bl -tag -width XXXX -offset indent -compact
1832.It %%
1833A literal
1834.Sq % .
djm@openbsd.org35eb33f2017-10-25 00:17:08 +00001835.It \&%D
1836The routing domain in which the incoming connection was received.
jmc@openbsd.orgde6a1752016-09-22 19:19:01 +00001837.It %F
1838The fingerprint of the CA key.
1839.It %f
1840The fingerprint of the key or certificate.
1841.It %h
1842The home directory of the user.
1843.It %i
1844The key ID in the certificate.
1845.It %K
1846The base64-encoded CA key.
1847.It %k
1848The base64-encoded key or certificate for authentication.
1849.It %s
1850The serial number of the certificate.
1851.It \&%T
1852The type of the CA key.
1853.It %t
1854The key or certificate type.
jmc@openbsd.org29402842018-06-01 05:50:18 +00001855.It \&%U
1856The numeric user ID of the target user.
jmc@openbsd.orgde6a1752016-09-22 19:19:01 +00001857.It %u
1858The username.
1859.El
1860.Pp
1861.Cm AuthorizedKeysCommand
jmc@openbsd.orge8d59fe2018-06-01 06:23:10 +00001862accepts the tokens %%, %f, %h, %k, %t, %U, and %u.
jmc@openbsd.orgde6a1752016-09-22 19:19:01 +00001863.Pp
1864.Cm AuthorizedKeysFile
jmc@openbsd.orge8d59fe2018-06-01 06:23:10 +00001865accepts the tokens %%, %h, %U, and %u.
jmc@openbsd.orgde6a1752016-09-22 19:19:01 +00001866.Pp
1867.Cm AuthorizedPrincipalsCommand
jmc@openbsd.orge8d59fe2018-06-01 06:23:10 +00001868accepts the tokens %%, %F, %f, %h, %i, %K, %k, %s, %T, %t, %U, and %u.
jmc@openbsd.orgde6a1752016-09-22 19:19:01 +00001869.Pp
1870.Cm AuthorizedPrincipalsFile
jmc@openbsd.orge8d59fe2018-06-01 06:23:10 +00001871accepts the tokens %%, %h, %U, and %u.
jmc@openbsd.orgde6a1752016-09-22 19:19:01 +00001872.Pp
1873.Cm ChrootDirectory
jmc@openbsd.orge8d59fe2018-06-01 06:23:10 +00001874accepts the tokens %%, %h, %U, and %u.
djm@openbsd.org35eb33f2017-10-25 00:17:08 +00001875.Pp
1876.Cm RoutingDomain
1877accepts the token %D.
Ben Lindstrom9f049032002-06-21 00:59:05 +00001878.Sh FILES
1879.Bl -tag -width Ds
1880.It Pa /etc/ssh/sshd_config
1881Contains configuration data for
Damien Millerf4f22b52006-03-15 11:57:25 +11001882.Xr sshd 8 .
Ben Lindstrom9f049032002-06-21 00:59:05 +00001883This file should be writable by root only, but it is recommended
1884(though not necessary) that it be world-readable.
1885.El
Damien Millerf1ce5052003-06-11 22:04:39 +10001886.Sh SEE ALSO
jmc@openbsd.orgaae4dbd2016-10-07 14:41:52 +00001887.Xr sftp-server 8 ,
Damien Millerf1ce5052003-06-11 22:04:39 +10001888.Xr sshd 8
Ben Lindstrom9f049032002-06-21 00:59:05 +00001889.Sh AUTHORS
jmc@openbsd.orgaae4dbd2016-10-07 14:41:52 +00001890.An -nosplit
Ben Lindstrom9f049032002-06-21 00:59:05 +00001891OpenSSH is a derivative of the original and free
jmc@openbsd.orgaae4dbd2016-10-07 14:41:52 +00001892ssh 1.2.12 release by
1893.An Tatu Ylonen .
1894.An Aaron Campbell , Bob Beck , Markus Friedl , Niels Provos ,
1895.An Theo de Raadt
1896and
1897.An Dug Song
Ben Lindstrom9f049032002-06-21 00:59:05 +00001898removed many bugs, re-added newer features and
1899created OpenSSH.
jmc@openbsd.orgaae4dbd2016-10-07 14:41:52 +00001900.An Markus Friedl
1901contributed the support for SSH protocol versions 1.5 and 2.0.
1902.An Niels Provos
1903and
1904.An Markus Friedl
1905contributed support for privilege separation.