Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 1 | .\" |
| 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 | .\" |
naddy@openbsd.org | a6ac5d3 | 2020-02-06 22:34:58 +0000 | [diff] [blame^] | 36 | .\" $OpenBSD: sshd_config.5,v 1.306 2020/02/06 22:34:58 naddy Exp $ |
| 37 | .Dd $Mdocdate: February 6 2020 $ |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 38 | .Dt SSHD_CONFIG 5 |
| 39 | .Os |
| 40 | .Sh NAME |
| 41 | .Nm sshd_config |
jmc@openbsd.org | 483cc72 | 2019-11-30 07:07:59 +0000 | [diff] [blame] | 42 | .Nd OpenSSH daemon configuration file |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 43 | .Sh DESCRIPTION |
Damien Miller | f4f22b5 | 2006-03-15 11:57:25 +1100 | [diff] [blame] | 44 | .Xr sshd 8 |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 45 | reads configuration data from |
| 46 | .Pa /etc/ssh/sshd_config |
| 47 | (or the file specified with |
| 48 | .Fl f |
| 49 | on the command line). |
| 50 | The file contains keyword-argument pairs, one per line. |
benno@openbsd.org | cfa4682 | 2017-10-09 20:12:51 +0000 | [diff] [blame] | 51 | For each keyword, the first obtained value will be used. |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 52 | Lines starting with |
| 53 | .Ql # |
| 54 | and empty lines are interpreted as comments. |
Damien Miller | 306d118 | 2006-03-15 12:05:59 +1100 | [diff] [blame] | 55 | Arguments may optionally be enclosed in double quotes |
| 56 | .Pq \&" |
| 57 | in order to represent arguments containing spaces. |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 58 | .Pp |
| 59 | The possible |
| 60 | keywords and their meanings are as follows (note that |
| 61 | keywords are case-insensitive and arguments are case-sensitive): |
| 62 | .Bl -tag -width Ds |
Darren Tucker | 46bc075 | 2004-05-02 22:11:30 +1000 | [diff] [blame] | 63 | .It Cm AcceptEnv |
| 64 | Specifies what environment variables sent by the client will be copied into |
| 65 | the session's |
| 66 | .Xr environ 7 . |
| 67 | See |
| 68 | .Cm SendEnv |
djm@openbsd.org | 7082bb5 | 2018-06-09 03:01:12 +0000 | [diff] [blame] | 69 | and |
| 70 | .Cm SetEnv |
Darren Tucker | 46bc075 | 2004-05-02 22:11:30 +1000 | [diff] [blame] | 71 | in |
| 72 | .Xr ssh_config 5 |
| 73 | for how to configure the client. |
jmc@openbsd.org | a685ae8 | 2016-02-17 07:38:19 +0000 | [diff] [blame] | 74 | The |
dtucker@openbsd.org | 85b96ef | 2015-04-28 10:17:58 +0000 | [diff] [blame] | 75 | .Ev TERM |
djm@openbsd.org | 1678d42 | 2018-06-09 03:18:11 +0000 | [diff] [blame] | 76 | environment variable is always accepted whenever the client |
djm@openbsd.org | 732d61f | 2015-06-05 03:44:14 +0000 | [diff] [blame] | 77 | requests a pseudo-terminal as it is required by the protocol. |
Darren Tucker | 46bc075 | 2004-05-02 22:11:30 +1000 | [diff] [blame] | 78 | Variables are specified by name, which may contain the wildcard characters |
Damien Miller | 208f1ed | 2006-03-15 11:56:03 +1100 | [diff] [blame] | 79 | .Ql * |
Darren Tucker | 46bc075 | 2004-05-02 22:11:30 +1000 | [diff] [blame] | 80 | and |
| 81 | .Ql \&? . |
Darren Tucker | 1e0c9bf | 2004-05-02 22:12:48 +1000 | [diff] [blame] | 82 | Multiple environment variables may be separated by whitespace or spread |
Darren Tucker | 46bc075 | 2004-05-02 22:11:30 +1000 | [diff] [blame] | 83 | across multiple |
| 84 | .Cm AcceptEnv |
| 85 | directives. |
Darren Tucker | 1e0c9bf | 2004-05-02 22:12:48 +1000 | [diff] [blame] | 86 | Be warned that some environment variables could be used to bypass restricted |
Darren Tucker | 46bc075 | 2004-05-02 22:11:30 +1000 | [diff] [blame] | 87 | user environments. |
| 88 | For this reason, care should be taken in the use of this directive. |
| 89 | The default is not to accept any environment variables. |
Darren Tucker | 0f38323 | 2005-01-20 10:57:56 +1100 | [diff] [blame] | 90 | .It Cm AddressFamily |
| 91 | Specifies which address family should be used by |
Damien Miller | f4f22b5 | 2006-03-15 11:57:25 +1100 | [diff] [blame] | 92 | .Xr sshd 8 . |
Darren Tucker | 0f38323 | 2005-01-20 10:57:56 +1100 | [diff] [blame] | 93 | Valid arguments are |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 94 | .Cm any |
| 95 | (the default), |
| 96 | .Cm inet |
Damien Miller | 5b0d63f | 2006-03-15 11:56:56 +1100 | [diff] [blame] | 97 | (use IPv4 only), or |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 98 | .Cm inet6 |
Darren Tucker | 0f38323 | 2005-01-20 10:57:56 +1100 | [diff] [blame] | 99 | (use IPv6 only). |
Damien Miller | e989019 | 2008-05-19 14:59:02 +1000 | [diff] [blame] | 100 | .It Cm AllowAgentForwarding |
| 101 | Specifies whether |
| 102 | .Xr ssh-agent 1 |
| 103 | forwarding is permitted. |
| 104 | The default is |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 105 | .Cm yes . |
Damien Miller | e989019 | 2008-05-19 14:59:02 +1000 | [diff] [blame] | 106 | Note that disabling agent forwarding does not improve security |
| 107 | unless users are also denied shell access, as they can always install |
| 108 | their own forwarders. |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 109 | .It Cm AllowGroups |
| 110 | This keyword can be followed by a list of group name patterns, separated |
| 111 | by spaces. |
| 112 | If specified, login is allowed only for users whose primary |
| 113 | group or supplementary group list matches one of the patterns. |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 114 | Only group names are valid; a numerical group ID is not recognized. |
| 115 | By default, login is allowed for all groups. |
djm@openbsd.org | bf986a9 | 2020-01-25 22:36:22 +0000 | [diff] [blame] | 116 | The allow/deny groups directives are processed in the following order: |
Damien Miller | ac73e51 | 2006-03-15 11:58:49 +1100 | [diff] [blame] | 117 | .Cm DenyGroups , |
Damien Miller | ac73e51 | 2006-03-15 11:58:49 +1100 | [diff] [blame] | 118 | .Cm AllowGroups . |
Damien Miller | 0c2079d | 2006-03-15 11:54:21 +1100 | [diff] [blame] | 119 | .Pp |
Damien Miller | fecfd11 | 2013-07-18 16:11:50 +1000 | [diff] [blame] | 120 | See PATTERNS in |
Damien Miller | 0c2079d | 2006-03-15 11:54:21 +1100 | [diff] [blame] | 121 | .Xr ssh_config 5 |
| 122 | for more information on patterns. |
Damien Miller | 7acefbb | 2014-07-18 14:11:24 +1000 | [diff] [blame] | 123 | .It Cm AllowStreamLocalForwarding |
| 124 | Specifies whether StreamLocal (Unix-domain socket) forwarding is permitted. |
| 125 | The available options are |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 126 | .Cm yes |
| 127 | (the default) |
Damien Miller | 7acefbb | 2014-07-18 14:11:24 +1000 | [diff] [blame] | 128 | or |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 129 | .Cm all |
Damien Miller | 7acefbb | 2014-07-18 14:11:24 +1000 | [diff] [blame] | 130 | to allow StreamLocal forwarding, |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 131 | .Cm no |
Damien Miller | 7acefbb | 2014-07-18 14:11:24 +1000 | [diff] [blame] | 132 | to prevent all StreamLocal forwarding, |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 133 | .Cm local |
Damien Miller | 7acefbb | 2014-07-18 14:11:24 +1000 | [diff] [blame] | 134 | to allow local (from the perspective of |
| 135 | .Xr ssh 1 ) |
| 136 | forwarding only or |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 137 | .Cm remote |
Damien Miller | 7acefbb | 2014-07-18 14:11:24 +1000 | [diff] [blame] | 138 | to allow remote forwarding only. |
Damien Miller | 7acefbb | 2014-07-18 14:11:24 +1000 | [diff] [blame] | 139 | Note that disabling StreamLocal forwarding does not improve security unless |
| 140 | users are also denied shell access, as they can always install their |
| 141 | own forwarders. |
jmc@openbsd.org | f219fc8 | 2016-09-07 18:39:24 +0000 | [diff] [blame] | 142 | .It Cm AllowTcpForwarding |
| 143 | Specifies whether TCP forwarding is permitted. |
| 144 | The available options are |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 145 | .Cm yes |
| 146 | (the default) |
jmc@openbsd.org | f219fc8 | 2016-09-07 18:39:24 +0000 | [diff] [blame] | 147 | or |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 148 | .Cm all |
jmc@openbsd.org | f219fc8 | 2016-09-07 18:39:24 +0000 | [diff] [blame] | 149 | to allow TCP forwarding, |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 150 | .Cm no |
jmc@openbsd.org | f219fc8 | 2016-09-07 18:39:24 +0000 | [diff] [blame] | 151 | to prevent all TCP forwarding, |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 152 | .Cm local |
jmc@openbsd.org | f219fc8 | 2016-09-07 18:39:24 +0000 | [diff] [blame] | 153 | to allow local (from the perspective of |
| 154 | .Xr ssh 1 ) |
| 155 | forwarding only or |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 156 | .Cm remote |
jmc@openbsd.org | f219fc8 | 2016-09-07 18:39:24 +0000 | [diff] [blame] | 157 | to allow remote forwarding only. |
jmc@openbsd.org | f219fc8 | 2016-09-07 18:39:24 +0000 | [diff] [blame] | 158 | Note that disabling TCP forwarding does not improve security unless |
| 159 | users are also denied shell access, as they can always install their |
| 160 | own forwarders. |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 161 | .It Cm AllowUsers |
| 162 | This keyword can be followed by a list of user name patterns, separated |
| 163 | by spaces. |
Damien Miller | 5a93add | 2003-01-24 11:34:52 +1100 | [diff] [blame] | 164 | If specified, login is allowed only for user names that |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 165 | match one of the patterns. |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 166 | Only user names are valid; a numerical user ID is not recognized. |
| 167 | By default, login is allowed for all users. |
| 168 | If the pattern takes the form USER@HOST then USER and HOST |
| 169 | are separately checked, restricting logins to particular |
| 170 | users from particular hosts. |
jmc@openbsd.org | ee1e0a1 | 2016-04-27 13:53:48 +0000 | [diff] [blame] | 171 | HOST criteria may additionally contain addresses to match in CIDR |
| 172 | address/masklen format. |
djm@openbsd.org | bf986a9 | 2020-01-25 22:36:22 +0000 | [diff] [blame] | 173 | The allow/deny users directives are processed in the following order: |
Damien Miller | ac73e51 | 2006-03-15 11:58:49 +1100 | [diff] [blame] | 174 | .Cm DenyUsers , |
djm@openbsd.org | bf986a9 | 2020-01-25 22:36:22 +0000 | [diff] [blame] | 175 | .Cm AllowUsers . |
Damien Miller | 0c2079d | 2006-03-15 11:54:21 +1100 | [diff] [blame] | 176 | .Pp |
Damien Miller | fecfd11 | 2013-07-18 16:11:50 +1000 | [diff] [blame] | 177 | See PATTERNS in |
Damien Miller | 0c2079d | 2006-03-15 11:54:21 +1100 | [diff] [blame] | 178 | .Xr ssh_config 5 |
| 179 | for more information on patterns. |
Damien Miller | a6e3f01 | 2012-11-04 23:21:40 +1100 | [diff] [blame] | 180 | .It Cm AuthenticationMethods |
| 181 | Specifies the authentication methods that must be successfully completed |
| 182 | for a user to be granted access. |
djm@openbsd.org | 472269f | 2018-07-20 05:01:10 +0000 | [diff] [blame] | 183 | This option must be followed by one or more lists of comma-separated |
djm@openbsd.org | b64faeb | 2016-06-17 05:03:40 +0000 | [diff] [blame] | 184 | authentication method names, or by the single string |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 185 | .Cm any |
djm@openbsd.org | b64faeb | 2016-06-17 05:03:40 +0000 | [diff] [blame] | 186 | to indicate the default behaviour of accepting any single authentication |
jmc@openbsd.org | ad23a75 | 2016-06-17 06:33:30 +0000 | [diff] [blame] | 187 | method. |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 188 | If the default is overridden, then successful authentication requires |
djm@openbsd.org | b64faeb | 2016-06-17 05:03:40 +0000 | [diff] [blame] | 189 | completion of every method in at least one of these lists. |
Damien Miller | a6e3f01 | 2012-11-04 23:21:40 +1100 | [diff] [blame] | 190 | .Pp |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 191 | For example, |
| 192 | .Qq publickey,password publickey,keyboard-interactive |
Damien Miller | a6e3f01 | 2012-11-04 23:21:40 +1100 | [diff] [blame] | 193 | would require the user to complete public key authentication, followed by |
| 194 | either password or keyboard interactive authentication. |
| 195 | Only methods that are next in one or more lists are offered at each stage, |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 196 | so for this example it would not be possible to attempt password or |
Damien Miller | a6e3f01 | 2012-11-04 23:21:40 +1100 | [diff] [blame] | 197 | keyboard-interactive authentication before public key. |
| 198 | .Pp |
Damien Miller | 91a55f2 | 2013-04-23 15:18:10 +1000 | [diff] [blame] | 199 | For keyboard interactive authentication it is also possible to |
| 200 | restrict authentication to a specific device by appending a |
| 201 | colon followed by the device identifier |
Damien Miller | 87f08be | 2018-07-20 13:18:28 +1000 | [diff] [blame] | 202 | .Cm bsdauth |
Damien Miller | 91a55f2 | 2013-04-23 15:18:10 +1000 | [diff] [blame] | 203 | or |
Damien Miller | 87f08be | 2018-07-20 13:18:28 +1000 | [diff] [blame] | 204 | .Cm pam . |
Damien Miller | 91a55f2 | 2013-04-23 15:18:10 +1000 | [diff] [blame] | 205 | depending on the server configuration. |
| 206 | For example, |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 207 | .Qq keyboard-interactive:bsdauth |
Damien Miller | 91a55f2 | 2013-04-23 15:18:10 +1000 | [diff] [blame] | 208 | would restrict keyboard interactive authentication to the |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 209 | .Cm bsdauth |
Damien Miller | 91a55f2 | 2013-04-23 15:18:10 +1000 | [diff] [blame] | 210 | device. |
| 211 | .Pp |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 212 | If the publickey method is listed more than once, |
djm@openbsd.org | f69b69b | 2014-12-22 07:51:30 +0000 | [diff] [blame] | 213 | .Xr sshd 8 |
| 214 | verifies that keys that have been used successfully are not reused for |
| 215 | subsequent authentications. |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 216 | For example, |
| 217 | .Qq publickey,publickey |
| 218 | requires successful authentication using two different public keys. |
djm@openbsd.org | f69b69b | 2014-12-22 07:51:30 +0000 | [diff] [blame] | 219 | .Pp |
Damien Miller | a6e3f01 | 2012-11-04 23:21:40 +1100 | [diff] [blame] | 220 | Note that each authentication method listed should also be explicitly enabled |
| 221 | in the configuration. |
djm@openbsd.org | 8042bad | 2017-09-01 05:50:48 +0000 | [diff] [blame] | 222 | .Pp |
| 223 | The 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.org | f41bcd7 | 2018-05-15 05:40:11 +0000 | [diff] [blame] | 229 | .Cm PermitEmptyPasswords |
djm@openbsd.org | 8042bad | 2017-09-01 05:50:48 +0000 | [diff] [blame] | 230 | is enabled), |
| 231 | .Qq password |
| 232 | and |
| 233 | .Qq publickey . |
Damien Miller | 09d3e12 | 2012-10-31 08:58:58 +1100 | [diff] [blame] | 234 | .It Cm AuthorizedKeysCommand |
Damien Miller | f33580e | 2012-11-04 22:22:52 +1100 | [diff] [blame] | 235 | Specifies a program to be used to look up the user's public keys. |
djm@openbsd.org | 24232a3 | 2015-05-21 06:38:35 +0000 | [diff] [blame] | 236 | The program must be owned by root, not writable by group or others and |
| 237 | specified by an absolute path. |
djm@openbsd.org | 24232a3 | 2015-05-21 06:38:35 +0000 | [diff] [blame] | 238 | Arguments to |
| 239 | .Cm AuthorizedKeysCommand |
jmc@openbsd.org | de6a175 | 2016-09-22 19:19:01 +0000 | [diff] [blame] | 240 | accept the tokens described in the |
| 241 | .Sx TOKENS |
| 242 | section. |
| 243 | If no arguments are specified then the username of the target user is used. |
djm@openbsd.org | 24232a3 | 2015-05-21 06:38:35 +0000 | [diff] [blame] | 244 | .Pp |
| 245 | The program should produce on standard output zero or |
jmc@openbsd.org | de6a175 | 2016-09-22 19:19:01 +0000 | [diff] [blame] | 246 | more lines of authorized_keys output (see |
| 247 | .Sx AUTHORIZED_KEYS |
| 248 | in |
Damien Miller | f33580e | 2012-11-04 22:22:52 +1100 | [diff] [blame] | 249 | .Xr sshd 8 ) . |
jmc@openbsd.org | de6a175 | 2016-09-22 19:19:01 +0000 | [diff] [blame] | 250 | If a key supplied by |
| 251 | .Cm AuthorizedKeysCommand |
| 252 | does not successfully authenticate |
Damien Miller | 09d3e12 | 2012-10-31 08:58:58 +1100 | [diff] [blame] | 253 | and authorize the user then public key authentication continues using the usual |
| 254 | .Cm AuthorizedKeysFile |
| 255 | files. |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 256 | By default, no |
| 257 | .Cm AuthorizedKeysCommand |
| 258 | is run. |
Damien Miller | 09d3e12 | 2012-10-31 08:58:58 +1100 | [diff] [blame] | 259 | .It Cm AuthorizedKeysCommandUser |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 260 | Specifies the user under whose account the |
| 261 | .Cm AuthorizedKeysCommand |
| 262 | is run. |
Damien Miller | 09d3e12 | 2012-10-31 08:58:58 +1100 | [diff] [blame] | 263 | It is recommended to use a dedicated user that has no other role on the host |
| 264 | than running authorized keys commands. |
djm@openbsd.org | f1c4d8e | 2014-12-22 08:04:23 +0000 | [diff] [blame] | 265 | If |
djm@openbsd.org | d663bea | 2014-12-11 05:25:06 +0000 | [diff] [blame] | 266 | .Cm AuthorizedKeysCommand |
djm@openbsd.org | f1c4d8e | 2014-12-22 08:04:23 +0000 | [diff] [blame] | 267 | is specified but |
| 268 | .Cm AuthorizedKeysCommandUser |
| 269 | is not, then |
| 270 | .Xr sshd 8 |
| 271 | will refuse to start. |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 272 | .It Cm AuthorizedKeysFile |
jmc@openbsd.org | de6a175 | 2016-09-22 19:19:01 +0000 | [diff] [blame] | 273 | Specifies the file that contains the public keys used for user authentication. |
schwarze@openbsd.org | db7606d | 2019-05-14 12:47:17 +0000 | [diff] [blame] | 274 | The format is described in the AUTHORIZED_KEYS FILE FORMAT section of |
Damien Miller | 6018a36 | 2010-07-02 13:35:19 +1000 | [diff] [blame] | 275 | .Xr sshd 8 . |
jmc@openbsd.org | de6a175 | 2016-09-22 19:19:01 +0000 | [diff] [blame] | 276 | Arguments to |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 277 | .Cm AuthorizedKeysFile |
jmc@openbsd.org | de6a175 | 2016-09-22 19:19:01 +0000 | [diff] [blame] | 278 | accept the tokens described in the |
| 279 | .Sx TOKENS |
| 280 | section. |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 281 | After expansion, |
| 282 | .Cm AuthorizedKeysFile |
| 283 | is taken to be an absolute path or one relative to the user's home |
| 284 | directory. |
Damien Miller | b9132fc | 2011-05-29 21:41:40 +1000 | [diff] [blame] | 285 | Multiple files may be listed, separated by whitespace. |
djm@openbsd.org | 2bca8a4 | 2015-09-11 03:13:36 +0000 | [diff] [blame] | 286 | Alternately this option may be set to |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 287 | .Cm none |
djm@openbsd.org | 2bca8a4 | 2015-09-11 03:13:36 +0000 | [diff] [blame] | 288 | to skip checking for user keys in files. |
Damien Miller | b9132fc | 2011-05-29 21:41:40 +1000 | [diff] [blame] | 289 | The default is |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 290 | .Qq .ssh/authorized_keys .ssh/authorized_keys2 . |
djm@openbsd.org | bcc50d8 | 2015-05-21 06:43:30 +0000 | [diff] [blame] | 291 | .It Cm AuthorizedPrincipalsCommand |
| 292 | Specifies a program to be used to generate the list of allowed |
| 293 | certificate principals as per |
| 294 | .Cm AuthorizedPrincipalsFile . |
| 295 | The program must be owned by root, not writable by group or others and |
| 296 | specified by an absolute path. |
djm@openbsd.org | bcc50d8 | 2015-05-21 06:43:30 +0000 | [diff] [blame] | 297 | Arguments to |
| 298 | .Cm AuthorizedPrincipalsCommand |
jmc@openbsd.org | de6a175 | 2016-09-22 19:19:01 +0000 | [diff] [blame] | 299 | accept the tokens described in the |
| 300 | .Sx TOKENS |
| 301 | section. |
| 302 | If no arguments are specified then the username of the target user is used. |
djm@openbsd.org | bcc50d8 | 2015-05-21 06:43:30 +0000 | [diff] [blame] | 303 | .Pp |
| 304 | The program should produce on standard output zero or |
| 305 | more lines of |
| 306 | .Cm AuthorizedPrincipalsFile |
| 307 | output. |
| 308 | If either |
| 309 | .Cm AuthorizedPrincipalsCommand |
| 310 | or |
| 311 | .Cm AuthorizedPrincipalsFile |
| 312 | is specified, then certificates offered by the client for authentication |
| 313 | must contain a principal that is listed. |
jmc@openbsd.org | de6a175 | 2016-09-22 19:19:01 +0000 | [diff] [blame] | 314 | By default, no |
| 315 | .Cm AuthorizedPrincipalsCommand |
| 316 | is run. |
djm@openbsd.org | bcc50d8 | 2015-05-21 06:43:30 +0000 | [diff] [blame] | 317 | .It Cm AuthorizedPrincipalsCommandUser |
jmc@openbsd.org | de6a175 | 2016-09-22 19:19:01 +0000 | [diff] [blame] | 318 | Specifies the user under whose account the |
| 319 | .Cm AuthorizedPrincipalsCommand |
| 320 | is run. |
djm@openbsd.org | bcc50d8 | 2015-05-21 06:43:30 +0000 | [diff] [blame] | 321 | It is recommended to use a dedicated user that has no other role on the host |
| 322 | than running authorized principals commands. |
| 323 | If |
| 324 | .Cm AuthorizedPrincipalsCommand |
| 325 | is specified but |
| 326 | .Cm AuthorizedPrincipalsCommandUser |
| 327 | is not, then |
| 328 | .Xr sshd 8 |
| 329 | will refuse to start. |
Damien Miller | 30da344 | 2010-05-10 11:58:03 +1000 | [diff] [blame] | 330 | .It Cm AuthorizedPrincipalsFile |
| 331 | Specifies a file that lists principal names that are accepted for |
| 332 | certificate authentication. |
| 333 | When using certificates signed by a key listed in |
| 334 | .Cm TrustedUserCAKeys , |
| 335 | this file lists names, one of which must appear in the certificate for it |
| 336 | to be accepted for authentication. |
jmc@openbsd.org | de6a175 | 2016-09-22 19:19:01 +0000 | [diff] [blame] | 337 | Names are listed one per line preceded by key options (as described in |
| 338 | .Sx AUTHORIZED_KEYS FILE FORMAT |
| 339 | in |
Damien Miller | d59dab8 | 2010-07-02 13:37:17 +1000 | [diff] [blame] | 340 | .Xr sshd 8 ) . |
Damien Miller | 6018a36 | 2010-07-02 13:35:19 +1000 | [diff] [blame] | 341 | Empty lines and comments starting with |
Damien Miller | 30da344 | 2010-05-10 11:58:03 +1000 | [diff] [blame] | 342 | .Ql # |
| 343 | are ignored. |
| 344 | .Pp |
jmc@openbsd.org | de6a175 | 2016-09-22 19:19:01 +0000 | [diff] [blame] | 345 | Arguments to |
Damien Miller | 30da344 | 2010-05-10 11:58:03 +1000 | [diff] [blame] | 346 | .Cm AuthorizedPrincipalsFile |
jmc@openbsd.org | de6a175 | 2016-09-22 19:19:01 +0000 | [diff] [blame] | 347 | accept the tokens described in the |
| 348 | .Sx TOKENS |
| 349 | section. |
Damien Miller | 30da344 | 2010-05-10 11:58:03 +1000 | [diff] [blame] | 350 | After expansion, |
| 351 | .Cm AuthorizedPrincipalsFile |
jmc@openbsd.org | de6a175 | 2016-09-22 19:19:01 +0000 | [diff] [blame] | 352 | is taken to be an absolute path or one relative to the user's home directory. |
Damien Miller | 8fef9eb | 2012-04-22 11:25:10 +1000 | [diff] [blame] | 353 | The default is |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 354 | .Cm none , |
Damien Miller | 8fef9eb | 2012-04-22 11:25:10 +1000 | [diff] [blame] | 355 | i.e. not to use a principals file \(en in this case, the username |
Damien Miller | 30da344 | 2010-05-10 11:58:03 +1000 | [diff] [blame] | 356 | of the user must appear in a certificate's principals list for it to be |
| 357 | accepted. |
jmc@openbsd.org | de6a175 | 2016-09-22 19:19:01 +0000 | [diff] [blame] | 358 | .Pp |
Damien Miller | 30da344 | 2010-05-10 11:58:03 +1000 | [diff] [blame] | 359 | Note that |
| 360 | .Cm AuthorizedPrincipalsFile |
| 361 | is only used when authentication proceeds using a CA listed in |
| 362 | .Cm TrustedUserCAKeys |
| 363 | and is not consulted for certification authorities trusted via |
| 364 | .Pa ~/.ssh/authorized_keys , |
| 365 | though the |
| 366 | .Cm principals= |
| 367 | key option offers a similar facility (see |
| 368 | .Xr sshd 8 |
| 369 | for details). |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 370 | .It Cm Banner |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 371 | The contents of the specified file are sent to the remote user before |
| 372 | authentication is allowed. |
Damien Miller | 4890e53 | 2007-09-17 11:57:38 +1000 | [diff] [blame] | 373 | If the argument is |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 374 | .Cm none |
Damien Miller | 4890e53 | 2007-09-17 11:57:38 +1000 | [diff] [blame] | 375 | then no banner is displayed. |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 376 | By default, no banner is displayed. |
djm@openbsd.org | 86e5737 | 2018-09-20 03:28:06 +0000 | [diff] [blame] | 377 | .It Cm CASignatureAlgorithms |
| 378 | Specifies which algorithms are allowed for signing of certificates |
| 379 | by certificate authorities (CAs). |
| 380 | The default is: |
| 381 | .Bd -literal -offset indent |
dtucker@openbsd.org | 0e2fe18 | 2019-07-23 23:06:57 +0000 | [diff] [blame] | 382 | ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521, |
djm@openbsd.org | 86e5737 | 2018-09-20 03:28:06 +0000 | [diff] [blame] | 383 | ssh-ed25519,rsa-sha2-512,rsa-sha2-256,ssh-rsa |
| 384 | .Ed |
| 385 | .Pp |
| 386 | Certificates signed using other algorithms will not be accepted for |
| 387 | public key or host-based authentication. |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 388 | .It Cm ChallengeResponseAuthentication |
Damien Miller | 9c7bf8d | 2009-08-28 10:27:08 +1000 | [diff] [blame] | 389 | Specifies whether challenge-response authentication is allowed (e.g. via |
Damien Miller | e8c9f26 | 2014-10-03 09:24:56 +1000 | [diff] [blame] | 390 | PAM or through authentication styles supported in |
Damien Miller | 9c7bf8d | 2009-08-28 10:27:08 +1000 | [diff] [blame] | 391 | .Xr login.conf 5 ) |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 392 | The default is |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 393 | .Cm yes . |
Damien Miller | d8cb1f1 | 2008-02-10 22:40:12 +1100 | [diff] [blame] | 394 | .It Cm ChrootDirectory |
Darren Tucker | b8c884a | 2010-01-08 18:53:43 +1100 | [diff] [blame] | 395 | Specifies the pathname of a directory to |
Damien Miller | d8cb1f1 | 2008-02-10 22:40:12 +1100 | [diff] [blame] | 396 | .Xr chroot 2 |
| 397 | to after authentication. |
deraadt@openbsd.org | dcff581 | 2015-01-22 20:24:41 +0000 | [diff] [blame] | 398 | At session startup |
| 399 | .Xr sshd 8 |
| 400 | checks that all components of the pathname are root-owned directories |
| 401 | which are not writable by any other user or group. |
Darren Tucker | 51dbe50 | 2009-06-21 17:56:51 +1000 | [diff] [blame] | 402 | After the chroot, |
| 403 | .Xr sshd 8 |
| 404 | changes the working directory to the user's home directory. |
jmc@openbsd.org | de6a175 | 2016-09-22 19:19:01 +0000 | [diff] [blame] | 405 | Arguments to |
| 406 | .Cm ChrootDirectory |
| 407 | accept the tokens described in the |
| 408 | .Sx TOKENS |
| 409 | section. |
Damien Miller | d8cb1f1 | 2008-02-10 22:40:12 +1100 | [diff] [blame] | 410 | .Pp |
| 411 | The |
| 412 | .Cm ChrootDirectory |
| 413 | must contain the necessary files and directories to support the |
Darren Tucker | af501cf | 2009-06-21 17:53:04 +1000 | [diff] [blame] | 414 | user's session. |
Damien Miller | d8cb1f1 | 2008-02-10 22:40:12 +1100 | [diff] [blame] | 415 | For an interactive session this requires at least a shell, typically |
| 416 | .Xr sh 1 , |
| 417 | and basic |
| 418 | .Pa /dev |
| 419 | nodes such as |
| 420 | .Xr null 4 , |
| 421 | .Xr zero 4 , |
| 422 | .Xr stdin 4 , |
| 423 | .Xr stdout 4 , |
| 424 | .Xr stderr 4 , |
jmc@openbsd.org | 08c0eeb | 2014-11-22 19:21:03 +0000 | [diff] [blame] | 425 | and |
Damien Miller | d8cb1f1 | 2008-02-10 22:40:12 +1100 | [diff] [blame] | 426 | .Xr tty 4 |
| 427 | devices. |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 428 | For file transfer sessions using SFTP |
| 429 | no additional configuration of the environment is necessary if the in-process |
| 430 | sftp-server is used, |
Damien Miller | 426117b | 2014-07-30 12:33:20 +1000 | [diff] [blame] | 431 | though sessions which use logging may require |
Darren Tucker | 00fcd71 | 2009-06-21 17:56:00 +1000 | [diff] [blame] | 432 | .Pa /dev/log |
Damien Miller | 426117b | 2014-07-30 12:33:20 +1000 | [diff] [blame] | 433 | inside the chroot directory on some operating systems (see |
Darren Tucker | 00fcd71 | 2009-06-21 17:56:00 +1000 | [diff] [blame] | 434 | .Xr sftp-server 8 |
| 435 | for details). |
Damien Miller | d8cb1f1 | 2008-02-10 22:40:12 +1100 | [diff] [blame] | 436 | .Pp |
jmc@openbsd.org | a5a3e33 | 2015-01-22 21:00:42 +0000 | [diff] [blame] | 437 | For safety, it is very important that the directory hierarchy be |
deraadt@openbsd.org | dcff581 | 2015-01-22 20:24:41 +0000 | [diff] [blame] | 438 | prevented from modification by other processes on the system (especially |
| 439 | those outside the jail). |
| 440 | Misconfiguration can lead to unsafe environments which |
| 441 | .Xr sshd 8 |
| 442 | cannot detect. |
| 443 | .Pp |
djm@openbsd.org | 9fd0468 | 2015-11-13 04:38:06 +0000 | [diff] [blame] | 444 | The default is |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 445 | .Cm none , |
djm@openbsd.org | 9fd0468 | 2015-11-13 04:38:06 +0000 | [diff] [blame] | 446 | indicating not to |
Damien Miller | d8cb1f1 | 2008-02-10 22:40:12 +1100 | [diff] [blame] | 447 | .Xr chroot 2 . |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 448 | .It Cm Ciphers |
jmc@openbsd.org | a685ae8 | 2016-02-17 07:38:19 +0000 | [diff] [blame] | 449 | Specifies the ciphers allowed. |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 450 | Multiple ciphers must be comma-separated. |
naddy@openbsd.org | 4f9d75f | 2019-09-04 20:31:15 +0000 | [diff] [blame] | 451 | If the specified list begins with a |
djm@openbsd.org | f9eca24 | 2015-07-30 00:01:34 +0000 | [diff] [blame] | 452 | .Sq + |
| 453 | character, then the specified ciphers will be appended to the default set |
| 454 | instead of replacing them. |
naddy@openbsd.org | 4f9d75f | 2019-09-04 20:31:15 +0000 | [diff] [blame] | 455 | If the specified list begins with a |
djm@openbsd.org | 68bc8cf | 2017-02-03 23:01:19 +0000 | [diff] [blame] | 456 | .Sq - |
| 457 | character, then the specified ciphers (including wildcards) will be removed |
| 458 | from the default set instead of replacing them. |
naddy@openbsd.org | 91a2135 | 2019-09-06 14:45:34 +0000 | [diff] [blame] | 459 | If the specified list begins with a |
| 460 | .Sq ^ |
| 461 | character, then the specified ciphers will be placed at the head of the |
| 462 | default set. |
djm@openbsd.org | f9eca24 | 2015-07-30 00:01:34 +0000 | [diff] [blame] | 463 | .Pp |
Damien Miller | 0fde8ac | 2013-11-21 14:12:23 +1100 | [diff] [blame] | 464 | The supported ciphers are: |
| 465 | .Pp |
Damien Miller | c1621c8 | 2014-04-20 13:22:46 +1000 | [diff] [blame] | 466 | .Bl -item -compact -offset indent |
| 467 | .It |
| 468 | 3des-cbc |
| 469 | .It |
| 470 | aes128-cbc |
| 471 | .It |
| 472 | aes192-cbc |
| 473 | .It |
| 474 | aes256-cbc |
| 475 | .It |
| 476 | aes128-ctr |
| 477 | .It |
| 478 | aes192-ctr |
| 479 | .It |
| 480 | aes256-ctr |
| 481 | .It |
| 482 | aes128-gcm@openssh.com |
| 483 | .It |
| 484 | aes256-gcm@openssh.com |
| 485 | .It |
Damien Miller | c1621c8 | 2014-04-20 13:22:46 +1000 | [diff] [blame] | 486 | chacha20-poly1305@openssh.com |
| 487 | .El |
Damien Miller | 0fde8ac | 2013-11-21 14:12:23 +1100 | [diff] [blame] | 488 | .Pp |
Damien Miller | 5b0d63f | 2006-03-15 11:56:56 +1100 | [diff] [blame] | 489 | The default is: |
Damien Miller | c1621c8 | 2014-04-20 13:22:46 +1000 | [diff] [blame] | 490 | .Bd -literal -offset indent |
jmc@openbsd.org | 1f8d3d6 | 2015-08-14 15:32:41 +0000 | [diff] [blame] | 491 | chacha20-poly1305@openssh.com, |
Damien Miller | c1621c8 | 2014-04-20 13:22:46 +1000 | [diff] [blame] | 492 | aes128-ctr,aes192-ctr,aes256-ctr, |
jmc@openbsd.org | 1f8d3d6 | 2015-08-14 15:32:41 +0000 | [diff] [blame] | 493 | aes128-gcm@openssh.com,aes256-gcm@openssh.com |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 494 | .Ed |
Damien Miller | 0fde8ac | 2013-11-21 14:12:23 +1100 | [diff] [blame] | 495 | .Pp |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 496 | The list of available ciphers may also be obtained using |
| 497 | .Qq ssh -Q cipher . |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 498 | .It Cm ClientAliveCountMax |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 499 | Sets the number of client alive messages which may be sent without |
Damien Miller | 5b0d63f | 2006-03-15 11:56:56 +1100 | [diff] [blame] | 500 | .Xr sshd 8 |
Damien Miller | fbf486b | 2003-05-23 18:44:23 +1000 | [diff] [blame] | 501 | receiving any messages back from the client. |
| 502 | If this threshold is reached while client alive messages are being sent, |
Damien Miller | 5b0d63f | 2006-03-15 11:56:56 +1100 | [diff] [blame] | 503 | sshd will disconnect the client, terminating the session. |
Damien Miller | fbf486b | 2003-05-23 18:44:23 +1000 | [diff] [blame] | 504 | It is important to note that the use of client alive messages is very |
| 505 | different from |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 506 | .Cm TCPKeepAlive . |
Damien Miller | fbf486b | 2003-05-23 18:44:23 +1000 | [diff] [blame] | 507 | The client alive messages are sent through the encrypted channel |
| 508 | and therefore will not be spoofable. |
| 509 | The TCP keepalive option enabled by |
Damien Miller | 12c150e | 2003-12-17 16:31:10 +1100 | [diff] [blame] | 510 | .Cm TCPKeepAlive |
Damien Miller | fbf486b | 2003-05-23 18:44:23 +1000 | [diff] [blame] | 511 | is spoofable. |
| 512 | The client alive mechanism is valuable when the client or |
dtucker@openbsd.org | 8fdbc72 | 2019-08-09 04:24:03 +0000 | [diff] [blame] | 513 | server depend on knowing when a connection has become unresponsive. |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 514 | .Pp |
Damien Miller | fbf486b | 2003-05-23 18:44:23 +1000 | [diff] [blame] | 515 | The default value is 3. |
| 516 | If |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 517 | .Cm ClientAliveInterval |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 518 | is set to 15, and |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 519 | .Cm ClientAliveCountMax |
Damien Miller | 5b0d63f | 2006-03-15 11:56:56 +1100 | [diff] [blame] | 520 | is left at the default, unresponsive SSH clients |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 521 | will be disconnected after approximately 45 seconds. |
djm@openbsd.org | 6933499 | 2020-01-25 22:41:01 +0000 | [diff] [blame] | 522 | Setting a zero |
| 523 | .Cm ClientAliveCountMax |
| 524 | disables connection termination. |
Damien Miller | 1594ad5 | 2005-05-26 12:12:19 +1000 | [diff] [blame] | 525 | .It Cm ClientAliveInterval |
| 526 | Sets a timeout interval in seconds after which if no data has been received |
| 527 | from the client, |
Damien Miller | 5b0d63f | 2006-03-15 11:56:56 +1100 | [diff] [blame] | 528 | .Xr sshd 8 |
Damien Miller | 1594ad5 | 2005-05-26 12:12:19 +1000 | [diff] [blame] | 529 | will send a message through the encrypted |
| 530 | channel to request a response from the client. |
| 531 | The default |
| 532 | is 0, indicating that these messages will not be sent to the client. |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 533 | .It Cm Compression |
djm@openbsd.org | 4577ade | 2016-09-28 20:32:42 +0000 | [diff] [blame] | 534 | Specifies whether compression is enabled after |
Damien Miller | 9786e6e | 2005-07-26 21:54:56 +1000 | [diff] [blame] | 535 | the user has authenticated successfully. |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 536 | The argument must be |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 537 | .Cm yes , |
| 538 | .Cm delayed |
djm@openbsd.org | 4577ade | 2016-09-28 20:32:42 +0000 | [diff] [blame] | 539 | (a legacy synonym for |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 540 | .Cm yes ) |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 541 | or |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 542 | .Cm no . |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 543 | The default is |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 544 | .Cm yes . |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 545 | .It Cm DenyGroups |
| 546 | This keyword can be followed by a list of group name patterns, separated |
| 547 | by spaces. |
| 548 | Login is disallowed for users whose primary group or supplementary |
| 549 | group list matches one of the patterns. |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 550 | Only group names are valid; a numerical group ID is not recognized. |
| 551 | By default, login is allowed for all groups. |
djm@openbsd.org | bf986a9 | 2020-01-25 22:36:22 +0000 | [diff] [blame] | 552 | The allow/deny groups directives are processed in the following order: |
Damien Miller | ac73e51 | 2006-03-15 11:58:49 +1100 | [diff] [blame] | 553 | .Cm DenyGroups , |
Damien Miller | ac73e51 | 2006-03-15 11:58:49 +1100 | [diff] [blame] | 554 | .Cm AllowGroups . |
Damien Miller | 0c2079d | 2006-03-15 11:54:21 +1100 | [diff] [blame] | 555 | .Pp |
Damien Miller | fecfd11 | 2013-07-18 16:11:50 +1000 | [diff] [blame] | 556 | See PATTERNS in |
Damien Miller | 0c2079d | 2006-03-15 11:54:21 +1100 | [diff] [blame] | 557 | .Xr ssh_config 5 |
| 558 | for more information on patterns. |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 559 | .It Cm DenyUsers |
| 560 | This keyword can be followed by a list of user name patterns, separated |
| 561 | by spaces. |
| 562 | Login is disallowed for user names that match one of the patterns. |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 563 | Only user names are valid; a numerical user ID is not recognized. |
| 564 | By default, login is allowed for all users. |
| 565 | If the pattern takes the form USER@HOST then USER and HOST |
| 566 | are separately checked, restricting logins to particular |
| 567 | users from particular hosts. |
jmc@openbsd.org | ee1e0a1 | 2016-04-27 13:53:48 +0000 | [diff] [blame] | 568 | HOST criteria may additionally contain addresses to match in CIDR |
| 569 | address/masklen format. |
djm@openbsd.org | bf986a9 | 2020-01-25 22:36:22 +0000 | [diff] [blame] | 570 | The allow/deny users directives are processed in the following order: |
Damien Miller | ac73e51 | 2006-03-15 11:58:49 +1100 | [diff] [blame] | 571 | .Cm DenyUsers , |
djm@openbsd.org | bf986a9 | 2020-01-25 22:36:22 +0000 | [diff] [blame] | 572 | .Cm AllowUsers . |
Damien Miller | 0c2079d | 2006-03-15 11:54:21 +1100 | [diff] [blame] | 573 | .Pp |
Damien Miller | fecfd11 | 2013-07-18 16:11:50 +1000 | [diff] [blame] | 574 | See PATTERNS in |
Damien Miller | 0c2079d | 2006-03-15 11:54:21 +1100 | [diff] [blame] | 575 | .Xr ssh_config 5 |
| 576 | for more information on patterns. |
djm@openbsd.org | 7844f35 | 2016-11-30 03:00:05 +0000 | [diff] [blame] | 577 | .It Cm DisableForwarding |
| 578 | Disables all forwarding features, including X11, |
| 579 | .Xr ssh-agent 1 , |
| 580 | TCP and StreamLocal. |
| 581 | This option overrides all other forwarding-related options and may |
| 582 | simplify restricted configurations. |
djm@openbsd.org | 8f57495 | 2017-06-24 06:34:38 +0000 | [diff] [blame] | 583 | .It Cm ExposeAuthInfo |
jmc@openbsd.org | 5fa1407 | 2017-09-27 06:45:53 +0000 | [diff] [blame] | 584 | Writes a temporary file containing a list of authentication methods and |
djm@openbsd.org | 8f57495 | 2017-06-24 06:34:38 +0000 | [diff] [blame] | 585 | public credentials (e.g. keys) used to authenticate the user. |
jmc@openbsd.org | 4096219 | 2017-06-24 06:57:04 +0000 | [diff] [blame] | 586 | The location of the file is exposed to the user session through the |
djm@openbsd.org | f17ee61 | 2017-06-24 07:08:57 +0000 | [diff] [blame] | 587 | .Ev SSH_USER_AUTH |
jmc@openbsd.org | 4096219 | 2017-06-24 06:57:04 +0000 | [diff] [blame] | 588 | environment variable. |
jmc@openbsd.org | 5fa1407 | 2017-09-27 06:45:53 +0000 | [diff] [blame] | 589 | The default is |
| 590 | .Cm no . |
djm@openbsd.org | 56d1c83 | 2014-12-21 22:27:55 +0000 | [diff] [blame] | 591 | .It Cm FingerprintHash |
| 592 | Specifies the hash algorithm used when logging key fingerprints. |
| 593 | Valid options are: |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 594 | .Cm md5 |
djm@openbsd.org | 56d1c83 | 2014-12-21 22:27:55 +0000 | [diff] [blame] | 595 | and |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 596 | .Cm sha256 . |
djm@openbsd.org | 56d1c83 | 2014-12-21 22:27:55 +0000 | [diff] [blame] | 597 | The default is |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 598 | .Cm sha256 . |
Damien Miller | e275443 | 2006-07-24 14:06:47 +1000 | [diff] [blame] | 599 | .It Cm ForceCommand |
| 600 | Forces the execution of the command specified by |
| 601 | .Cm ForceCommand , |
Damien Miller | a1b48cc | 2008-03-27 11:02:02 +1100 | [diff] [blame] | 602 | ignoring any command supplied by the client and |
| 603 | .Pa ~/.ssh/rc |
| 604 | if present. |
Damien Miller | e275443 | 2006-07-24 14:06:47 +1000 | [diff] [blame] | 605 | The command is invoked by using the user's login shell with the -c option. |
| 606 | This applies to shell, command, or subsystem execution. |
| 607 | It is most useful inside a |
| 608 | .Cm Match |
| 609 | block. |
| 610 | The command originally supplied by the client is available in the |
| 611 | .Ev SSH_ORIGINAL_COMMAND |
| 612 | environment variable. |
Damien Miller | cdb6e65 | 2008-02-10 22:47:24 +1100 | [diff] [blame] | 613 | Specifying a command of |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 614 | .Cm internal-sftp |
| 615 | will force the use of an in-process SFTP server that requires no support |
Damien Miller | cdb6e65 | 2008-02-10 22:47:24 +1100 | [diff] [blame] | 616 | files when used with |
| 617 | .Cm ChrootDirectory . |
djm@openbsd.org | 9fd0468 | 2015-11-13 04:38:06 +0000 | [diff] [blame] | 618 | The default is |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 619 | .Cm none . |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 620 | .It Cm GatewayPorts |
| 621 | Specifies whether remote hosts are allowed to connect to ports |
| 622 | forwarded for the client. |
| 623 | By default, |
Damien Miller | 5b0d63f | 2006-03-15 11:56:56 +1100 | [diff] [blame] | 624 | .Xr sshd 8 |
Damien Miller | 495dca3 | 2003-04-01 21:42:14 +1000 | [diff] [blame] | 625 | binds remote port forwardings to the loopback address. |
| 626 | This prevents other remote hosts from connecting to forwarded ports. |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 627 | .Cm GatewayPorts |
Damien Miller | 5b0d63f | 2006-03-15 11:56:56 +1100 | [diff] [blame] | 628 | can be used to specify that sshd |
Damien Miller | f91ee4c | 2005-03-01 21:24:33 +1100 | [diff] [blame] | 629 | should allow remote port forwardings to bind to non-loopback addresses, thus |
| 630 | allowing other hosts to connect. |
| 631 | The argument may be |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 632 | .Cm no |
Damien Miller | f91ee4c | 2005-03-01 21:24:33 +1100 | [diff] [blame] | 633 | to force remote port forwardings to be available to the local host only, |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 634 | .Cm yes |
Damien Miller | f91ee4c | 2005-03-01 21:24:33 +1100 | [diff] [blame] | 635 | to force remote port forwardings to bind to the wildcard address, or |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 636 | .Cm clientspecified |
Damien Miller | f91ee4c | 2005-03-01 21:24:33 +1100 | [diff] [blame] | 637 | to allow the client to select the address to which the forwarding is bound. |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 638 | The default is |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 639 | .Cm no . |
Darren Tucker | 0efd155 | 2003-08-26 11:49:55 +1000 | [diff] [blame] | 640 | .It Cm GSSAPIAuthentication |
Damien Miller | 9b7b03b | 2003-09-02 22:57:05 +1000 | [diff] [blame] | 641 | Specifies whether user authentication based on GSSAPI is allowed. |
Damien Miller | a8e06ce | 2003-11-21 23:48:55 +1100 | [diff] [blame] | 642 | The default is |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 643 | .Cm no . |
Darren Tucker | 0efd155 | 2003-08-26 11:49:55 +1000 | [diff] [blame] | 644 | .It Cm GSSAPICleanupCredentials |
| 645 | Specifies whether to automatically destroy the user's credentials cache |
| 646 | on logout. |
| 647 | The default is |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 648 | .Cm yes . |
djm@openbsd.org | d7c31da | 2015-05-22 03:50:02 +0000 | [diff] [blame] | 649 | .It Cm GSSAPIStrictAcceptorCheck |
| 650 | Determines whether to be strict about the identity of the GSSAPI acceptor |
| 651 | a client authenticates against. |
| 652 | If set to |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 653 | .Cm yes |
| 654 | then the client must authenticate against the host |
djm@openbsd.org | d7c31da | 2015-05-22 03:50:02 +0000 | [diff] [blame] | 655 | service on the current hostname. |
| 656 | If set to |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 657 | .Cm no |
djm@openbsd.org | d7c31da | 2015-05-22 03:50:02 +0000 | [diff] [blame] | 658 | then the client may authenticate against any service key stored in the |
| 659 | machine's default store. |
| 660 | This facility is provided to assist with operation on multi homed machines. |
| 661 | The default is |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 662 | .Cm yes . |
djm@openbsd.org | 1f729f0 | 2015-01-13 07:39:19 +0000 | [diff] [blame] | 663 | .It Cm HostbasedAcceptedKeyTypes |
| 664 | Specifies the key types that will be accepted for hostbased authentication |
djm@openbsd.org | 312d2f2 | 2018-07-04 13:49:31 +0000 | [diff] [blame] | 665 | as a list of comma-separated patterns. |
naddy@openbsd.org | 4f9d75f | 2019-09-04 20:31:15 +0000 | [diff] [blame] | 666 | Alternately if the specified list begins with a |
djm@openbsd.org | f9eca24 | 2015-07-30 00:01:34 +0000 | [diff] [blame] | 667 | .Sq + |
| 668 | character, then the specified key types will be appended to the default set |
| 669 | instead of replacing them. |
naddy@openbsd.org | 4f9d75f | 2019-09-04 20:31:15 +0000 | [diff] [blame] | 670 | If the specified list begins with a |
djm@openbsd.org | 68bc8cf | 2017-02-03 23:01:19 +0000 | [diff] [blame] | 671 | .Sq - |
| 672 | character, then the specified key types (including wildcards) will be removed |
| 673 | from the default set instead of replacing them. |
naddy@openbsd.org | 91a2135 | 2019-09-06 14:45:34 +0000 | [diff] [blame] | 674 | If the specified list begins with a |
| 675 | .Sq ^ |
| 676 | character, then the specified key types will be placed at the head of the |
| 677 | default set. |
markus@openbsd.org | 3a1638d | 2015-07-10 06:21:53 +0000 | [diff] [blame] | 678 | The default for this option is: |
| 679 | .Bd -literal -offset 3n |
| 680 | ecdsa-sha2-nistp256-cert-v01@openssh.com, |
| 681 | ecdsa-sha2-nistp384-cert-v01@openssh.com, |
| 682 | ecdsa-sha2-nistp521-cert-v01@openssh.com, |
naddy@openbsd.org | ae024b2 | 2019-12-19 15:09:30 +0000 | [diff] [blame] | 683 | sk-ecdsa-sha2-nistp256-cert-v01@openssh.com, |
markus@openbsd.org | 3a1638d | 2015-07-10 06:21:53 +0000 | [diff] [blame] | 684 | ssh-ed25519-cert-v01@openssh.com, |
naddy@openbsd.org | ae024b2 | 2019-12-19 15:09:30 +0000 | [diff] [blame] | 685 | sk-ssh-ed25519-cert-v01@openssh.com, |
naddy@openbsd.org | aa4c640 | 2019-11-07 08:38:38 +0000 | [diff] [blame] | 686 | rsa-sha2-512-cert-v01@openssh.com, |
| 687 | rsa-sha2-256-cert-v01@openssh.com, |
markus@openbsd.org | 3a1638d | 2015-07-10 06:21:53 +0000 | [diff] [blame] | 688 | ssh-rsa-cert-v01@openssh.com, |
| 689 | ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521, |
naddy@openbsd.org | ae024b2 | 2019-12-19 15:09:30 +0000 | [diff] [blame] | 690 | sk-ecdsa-sha2-nistp256@openssh.com, |
| 691 | ssh-ed25519,sk-ssh-ed25519@openssh.com, |
| 692 | rsa-sha2-512,rsa-sha2-256,ssh-rsa |
markus@openbsd.org | 3a1638d | 2015-07-10 06:21:53 +0000 | [diff] [blame] | 693 | .Ed |
| 694 | .Pp |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 695 | The list of available key types may also be obtained using |
| 696 | .Qq ssh -Q key . |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 697 | .It Cm HostbasedAuthentication |
| 698 | Specifies whether rhosts or /etc/hosts.equiv authentication together |
| 699 | with successful public key client host authentication is allowed |
Damien Miller | 1faa713 | 2006-03-15 11:55:31 +1100 | [diff] [blame] | 700 | (host-based authentication). |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 701 | The default is |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 702 | .Cm no . |
Damien Miller | b594f38 | 2006-08-30 11:06:34 +1000 | [diff] [blame] | 703 | .It Cm HostbasedUsesNameFromPacketOnly |
| 704 | Specifies whether or not the server will attempt to perform a reverse |
| 705 | name lookup when matching the name in the |
| 706 | .Pa ~/.shosts , |
| 707 | .Pa ~/.rhosts , |
| 708 | and |
| 709 | .Pa /etc/hosts.equiv |
| 710 | files during |
| 711 | .Cm HostbasedAuthentication . |
| 712 | A setting of |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 713 | .Cm yes |
Damien Miller | b594f38 | 2006-08-30 11:06:34 +1000 | [diff] [blame] | 714 | means that |
| 715 | .Xr sshd 8 |
| 716 | uses the name supplied by the client rather than |
| 717 | attempting to resolve the name from the TCP connection itself. |
| 718 | The default is |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 719 | .Cm no . |
Damien Miller | 0a80ca1 | 2010-02-27 07:55:05 +1100 | [diff] [blame] | 720 | .It Cm HostCertificate |
| 721 | Specifies a file containing a public host certificate. |
| 722 | The certificate's public key must match a private host key already specified |
| 723 | by |
| 724 | .Cm HostKey . |
| 725 | The default behaviour of |
| 726 | .Xr sshd 8 |
| 727 | is not to load any certificates. |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 728 | .It Cm HostKey |
| 729 | Specifies a file containing a private host key |
| 730 | used by SSH. |
naddy@openbsd.org | ffe6549 | 2016-08-15 12:32:04 +0000 | [diff] [blame] | 731 | The defaults are |
Damien Miller | 8ba0ead | 2013-12-18 17:46:27 +1100 | [diff] [blame] | 732 | .Pa /etc/ssh/ssh_host_ecdsa_key , |
| 733 | .Pa /etc/ssh/ssh_host_ed25519_key |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 734 | and |
naddy@openbsd.org | ffe6549 | 2016-08-15 12:32:04 +0000 | [diff] [blame] | 735 | .Pa /etc/ssh/ssh_host_rsa_key . |
markus@openbsd.org | 3a1638d | 2015-07-10 06:21:53 +0000 | [diff] [blame] | 736 | .Pp |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 737 | Note that |
Damien Miller | 5b0d63f | 2006-03-15 11:56:56 +1100 | [diff] [blame] | 738 | .Xr sshd 8 |
markus@openbsd.org | 3a1638d | 2015-07-10 06:21:53 +0000 | [diff] [blame] | 739 | will refuse to use a file if it is group/world-accessible |
| 740 | and that the |
| 741 | .Cm HostKeyAlgorithms |
| 742 | option restricts which of the keys are actually used by |
| 743 | .Xr sshd 8 . |
| 744 | .Pp |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 745 | It is possible to have multiple host key files. |
Damien Miller | 85b45e0 | 2013-07-20 13:21:52 +1000 | [diff] [blame] | 746 | It is also possible to specify public host key files instead. |
| 747 | In this case operations on the private key will be delegated |
| 748 | to an |
| 749 | .Xr ssh-agent 1 . |
| 750 | .It Cm HostKeyAgent |
| 751 | Identifies the UNIX-domain socket used to communicate |
| 752 | with an agent that has access to the private host keys. |
markus@openbsd.org | 1a75d14 | 2016-05-04 14:29:58 +0000 | [diff] [blame] | 753 | If the string |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 754 | .Qq SSH_AUTH_SOCK |
Damien Miller | 85b45e0 | 2013-07-20 13:21:52 +1000 | [diff] [blame] | 755 | is specified, the location of the socket will be read from the |
| 756 | .Ev SSH_AUTH_SOCK |
| 757 | environment variable. |
markus@openbsd.org | 3a1638d | 2015-07-10 06:21:53 +0000 | [diff] [blame] | 758 | .It Cm HostKeyAlgorithms |
jmc@openbsd.org | a685ae8 | 2016-02-17 07:38:19 +0000 | [diff] [blame] | 759 | Specifies the host key algorithms |
markus@openbsd.org | 3a1638d | 2015-07-10 06:21:53 +0000 | [diff] [blame] | 760 | that the server offers. |
| 761 | The default for this option is: |
| 762 | .Bd -literal -offset 3n |
| 763 | ecdsa-sha2-nistp256-cert-v01@openssh.com, |
| 764 | ecdsa-sha2-nistp384-cert-v01@openssh.com, |
| 765 | ecdsa-sha2-nistp521-cert-v01@openssh.com, |
naddy@openbsd.org | ae024b2 | 2019-12-19 15:09:30 +0000 | [diff] [blame] | 766 | sk-ecdsa-sha2-nistp256-cert-v01@openssh.com, |
markus@openbsd.org | 3a1638d | 2015-07-10 06:21:53 +0000 | [diff] [blame] | 767 | ssh-ed25519-cert-v01@openssh.com, |
naddy@openbsd.org | ae024b2 | 2019-12-19 15:09:30 +0000 | [diff] [blame] | 768 | sk-ssh-ed25519-cert-v01@openssh.com, |
naddy@openbsd.org | aa4c640 | 2019-11-07 08:38:38 +0000 | [diff] [blame] | 769 | rsa-sha2-512-cert-v01@openssh.com, |
| 770 | rsa-sha2-256-cert-v01@openssh.com, |
markus@openbsd.org | 3a1638d | 2015-07-10 06:21:53 +0000 | [diff] [blame] | 771 | ssh-rsa-cert-v01@openssh.com, |
| 772 | ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521, |
naddy@openbsd.org | ae024b2 | 2019-12-19 15:09:30 +0000 | [diff] [blame] | 773 | sk-ecdsa-sha2-nistp256@openssh.com, |
| 774 | ssh-ed25519,sk-ssh-ed25519@openssh.com, |
| 775 | rsa-sha2-512,rsa-sha2-256,ssh-rsa |
markus@openbsd.org | 3a1638d | 2015-07-10 06:21:53 +0000 | [diff] [blame] | 776 | .Ed |
| 777 | .Pp |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 778 | The list of available key types may also be obtained using |
| 779 | .Qq ssh -Q key . |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 780 | .It Cm IgnoreRhosts |
| 781 | Specifies that |
| 782 | .Pa .rhosts |
| 783 | and |
| 784 | .Pa .shosts |
| 785 | files will not be used in |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 786 | .Cm HostbasedAuthentication . |
| 787 | .Pp |
| 788 | .Pa /etc/hosts.equiv |
| 789 | and |
| 790 | .Pa /etc/shosts.equiv |
| 791 | are still used. |
| 792 | The default is |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 793 | .Cm yes . |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 794 | .It Cm IgnoreUserKnownHosts |
| 795 | Specifies whether |
Damien Miller | 5b0d63f | 2006-03-15 11:56:56 +1100 | [diff] [blame] | 796 | .Xr sshd 8 |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 797 | should ignore the user's |
Damien Miller | 167ea5d | 2005-05-26 12:04:02 +1000 | [diff] [blame] | 798 | .Pa ~/.ssh/known_hosts |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 799 | during |
djm@openbsd.org | 62562ce | 2018-02-10 06:54:38 +0000 | [diff] [blame] | 800 | .Cm HostbasedAuthentication |
| 801 | and use only the system-wide known hosts file |
| 802 | .Pa /etc/ssh/known_hosts . |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 803 | The default is |
djm@openbsd.org | c2bd7f7 | 2020-01-31 22:42:45 +0000 | [diff] [blame] | 804 | .Dq no . |
| 805 | .It Cm Include |
| 806 | Include the specified configuration file(s). |
jmc@openbsd.org | 6fb3dd0 | 2020-02-01 06:53:12 +0000 | [diff] [blame] | 807 | Multiple pathnames may be specified and each pathname may contain |
djm@openbsd.org | c2bd7f7 | 2020-01-31 22:42:45 +0000 | [diff] [blame] | 808 | .Xr glob 7 |
| 809 | wildcards. |
| 810 | Files without absolute paths are assumed to be in |
| 811 | .Pa /etc/ssh . |
jmc@openbsd.org | 6fb3dd0 | 2020-02-01 06:53:12 +0000 | [diff] [blame] | 812 | An |
djm@openbsd.org | c2bd7f7 | 2020-01-31 22:42:45 +0000 | [diff] [blame] | 813 | .Cm Include |
| 814 | directive may appear inside a |
| 815 | .Cm Match |
| 816 | block |
| 817 | to perform conditional inclusion. |
Damien Miller | 0dac6fb | 2010-11-20 15:19:38 +1100 | [diff] [blame] | 818 | .It Cm IPQoS |
| 819 | Specifies the IPv4 type-of-service or DSCP class for the connection. |
| 820 | Accepted values are |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 821 | .Cm af11 , |
| 822 | .Cm af12 , |
| 823 | .Cm af13 , |
| 824 | .Cm af21 , |
| 825 | .Cm af22 , |
| 826 | .Cm af23 , |
| 827 | .Cm af31 , |
| 828 | .Cm af32 , |
| 829 | .Cm af33 , |
| 830 | .Cm af41 , |
| 831 | .Cm af42 , |
| 832 | .Cm af43 , |
| 833 | .Cm cs0 , |
| 834 | .Cm cs1 , |
| 835 | .Cm cs2 , |
| 836 | .Cm cs3 , |
| 837 | .Cm cs4 , |
| 838 | .Cm cs5 , |
| 839 | .Cm cs6 , |
| 840 | .Cm cs7 , |
| 841 | .Cm ef , |
djm@openbsd.org | 4594c76 | 2020-01-28 01:49:36 +0000 | [diff] [blame] | 842 | .Cm le , |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 843 | .Cm lowdelay , |
| 844 | .Cm throughput , |
| 845 | .Cm reliability , |
djm@openbsd.org | 51676ec | 2017-07-23 23:37:02 +0000 | [diff] [blame] | 846 | a numeric value, or |
| 847 | .Cm none |
| 848 | to use the operating system default. |
Damien Miller | 928362d | 2010-12-26 14:26:45 +1100 | [diff] [blame] | 849 | This option may take one or two arguments, separated by whitespace. |
Damien Miller | 0dac6fb | 2010-11-20 15:19:38 +1100 | [diff] [blame] | 850 | If one argument is specified, it is used as the packet class unconditionally. |
| 851 | If two values are specified, the first is automatically selected for |
| 852 | interactive sessions and the second for non-interactive sessions. |
| 853 | The default is |
job@openbsd.org | 5ee8448 | 2018-04-04 15:12:17 +0000 | [diff] [blame] | 854 | .Cm af21 |
jmc@openbsd.org | 3e36f28 | 2018-04-08 07:36:02 +0000 | [diff] [blame] | 855 | (Low-Latency Data) |
Damien Miller | 0dac6fb | 2010-11-20 15:19:38 +1100 | [diff] [blame] | 856 | for interactive sessions and |
job@openbsd.org | 5ee8448 | 2018-04-04 15:12:17 +0000 | [diff] [blame] | 857 | .Cm cs1 |
jmc@openbsd.org | 3e36f28 | 2018-04-08 07:36:02 +0000 | [diff] [blame] | 858 | (Lower Effort) |
Damien Miller | 0dac6fb | 2010-11-20 15:19:38 +1100 | [diff] [blame] | 859 | for non-interactive sessions. |
Damien Miller | e1e480a | 2014-02-04 11:13:17 +1100 | [diff] [blame] | 860 | .It Cm KbdInteractiveAuthentication |
| 861 | Specifies whether to allow keyboard-interactive authentication. |
| 862 | The argument to this keyword must be |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 863 | .Cm yes |
Damien Miller | e1e480a | 2014-02-04 11:13:17 +1100 | [diff] [blame] | 864 | or |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 865 | .Cm no . |
Damien Miller | e1e480a | 2014-02-04 11:13:17 +1100 | [diff] [blame] | 866 | The default is to use whatever value |
| 867 | .Cm ChallengeResponseAuthentication |
| 868 | is set to |
| 869 | (by default |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 870 | .Cm yes ) . |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 871 | .It Cm KerberosAuthentication |
Damien Miller | 1a0c0b9 | 2003-09-02 22:51:17 +1000 | [diff] [blame] | 872 | Specifies whether the password provided by the user for |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 873 | .Cm PasswordAuthentication |
Damien Miller | 1a0c0b9 | 2003-09-02 22:51:17 +1000 | [diff] [blame] | 874 | will be validated through the Kerberos KDC. |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 875 | To use this option, the server needs a |
| 876 | Kerberos servtab which allows the verification of the KDC's identity. |
Damien Miller | 5b0d63f | 2006-03-15 11:56:56 +1100 | [diff] [blame] | 877 | The default is |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 878 | .Cm no . |
Damien Miller | 8448e66 | 2004-03-08 23:13:15 +1100 | [diff] [blame] | 879 | .It Cm KerberosGetAFSToken |
Darren Tucker | e2dd2d5 | 2005-10-03 18:19:06 +1000 | [diff] [blame] | 880 | If AFS is active and the user has a Kerberos 5 TGT, attempt to acquire |
Damien Miller | 8448e66 | 2004-03-08 23:13:15 +1100 | [diff] [blame] | 881 | an AFS token before accessing the user's home directory. |
Damien Miller | 5b0d63f | 2006-03-15 11:56:56 +1100 | [diff] [blame] | 882 | The default is |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 883 | .Cm no . |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 884 | .It Cm KerberosOrLocalPasswd |
Damien Miller | 5b0d63f | 2006-03-15 11:56:56 +1100 | [diff] [blame] | 885 | If password authentication through Kerberos fails then |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 886 | the password will be validated via any additional local mechanism |
| 887 | such as |
| 888 | .Pa /etc/passwd . |
Damien Miller | 5b0d63f | 2006-03-15 11:56:56 +1100 | [diff] [blame] | 889 | The default is |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 890 | .Cm yes . |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 891 | .It Cm KerberosTicketCleanup |
| 892 | Specifies whether to automatically destroy the user's ticket cache |
| 893 | file on logout. |
Damien Miller | 5b0d63f | 2006-03-15 11:56:56 +1100 | [diff] [blame] | 894 | The default is |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 895 | .Cm yes . |
Damien Miller | d5f62bf | 2010-09-24 22:11:14 +1000 | [diff] [blame] | 896 | .It Cm KexAlgorithms |
| 897 | Specifies the available KEX (Key Exchange) algorithms. |
| 898 | Multiple algorithms must be comma-separated. |
naddy@openbsd.org | 4f9d75f | 2019-09-04 20:31:15 +0000 | [diff] [blame] | 899 | Alternately if the specified list begins with a |
djm@openbsd.org | f9eca24 | 2015-07-30 00:01:34 +0000 | [diff] [blame] | 900 | .Sq + |
| 901 | character, then the specified methods will be appended to the default set |
| 902 | instead of replacing them. |
naddy@openbsd.org | 4f9d75f | 2019-09-04 20:31:15 +0000 | [diff] [blame] | 903 | If the specified list begins with a |
djm@openbsd.org | 68bc8cf | 2017-02-03 23:01:19 +0000 | [diff] [blame] | 904 | .Sq - |
| 905 | character, then the specified methods (including wildcards) will be removed |
| 906 | from the default set instead of replacing them. |
naddy@openbsd.org | 91a2135 | 2019-09-06 14:45:34 +0000 | [diff] [blame] | 907 | If the specified list begins with a |
| 908 | .Sq ^ |
| 909 | character, then the specified methods will be placed at the head of the |
| 910 | default set. |
Damien Miller | c1621c8 | 2014-04-20 13:22:46 +1000 | [diff] [blame] | 911 | The supported algorithms are: |
| 912 | .Pp |
| 913 | .Bl -item -compact -offset indent |
| 914 | .It |
djm@openbsd.org | 16277fc | 2016-09-22 17:55:13 +0000 | [diff] [blame] | 915 | curve25519-sha256 |
| 916 | .It |
Damien Miller | c1621c8 | 2014-04-20 13:22:46 +1000 | [diff] [blame] | 917 | curve25519-sha256@libssh.org |
| 918 | .It |
| 919 | diffie-hellman-group1-sha1 |
| 920 | .It |
| 921 | diffie-hellman-group14-sha1 |
| 922 | .It |
djm@openbsd.org | 680321f | 2018-02-16 02:40:45 +0000 | [diff] [blame] | 923 | diffie-hellman-group14-sha256 |
| 924 | .It |
| 925 | diffie-hellman-group16-sha512 |
| 926 | .It |
| 927 | diffie-hellman-group18-sha512 |
| 928 | .It |
Damien Miller | c1621c8 | 2014-04-20 13:22:46 +1000 | [diff] [blame] | 929 | diffie-hellman-group-exchange-sha1 |
| 930 | .It |
| 931 | diffie-hellman-group-exchange-sha256 |
| 932 | .It |
| 933 | ecdh-sha2-nistp256 |
| 934 | .It |
| 935 | ecdh-sha2-nistp384 |
| 936 | .It |
| 937 | ecdh-sha2-nistp521 |
dtucker@openbsd.org | 56bced4 | 2020-01-21 06:09:56 +0000 | [diff] [blame] | 938 | .It |
| 939 | sntrup4591761x25519-sha512@tinyssh.org |
Damien Miller | c1621c8 | 2014-04-20 13:22:46 +1000 | [diff] [blame] | 940 | .El |
| 941 | .Pp |
| 942 | The default is: |
Damien Miller | 6575c3a | 2013-12-18 17:47:02 +1100 | [diff] [blame] | 943 | .Bd -literal -offset indent |
djm@openbsd.org | 16277fc | 2016-09-22 17:55:13 +0000 | [diff] [blame] | 944 | curve25519-sha256,curve25519-sha256@libssh.org, |
Damien Miller | 6575c3a | 2013-12-18 17:47:02 +1100 | [diff] [blame] | 945 | ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521, |
| 946 | diffie-hellman-group-exchange-sha256, |
djm@openbsd.org | 680321f | 2018-02-16 02:40:45 +0000 | [diff] [blame] | 947 | diffie-hellman-group16-sha512,diffie-hellman-group18-sha512, |
tedu@openbsd.org | 0b81343 | 2020-01-25 07:09:14 +0000 | [diff] [blame] | 948 | diffie-hellman-group14-sha256 |
Damien Miller | 6575c3a | 2013-12-18 17:47:02 +1100 | [diff] [blame] | 949 | .Ed |
djm@openbsd.org | 8f6784f | 2014-12-22 09:05:17 +0000 | [diff] [blame] | 950 | .Pp |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 951 | The list of available key exchange algorithms may also be obtained using |
| 952 | .Qq ssh -Q kex . |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 953 | .It Cm ListenAddress |
| 954 | Specifies the local addresses |
Damien Miller | 5b0d63f | 2006-03-15 11:56:56 +1100 | [diff] [blame] | 955 | .Xr sshd 8 |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 956 | should listen on. |
| 957 | The following forms may be used: |
| 958 | .Pp |
| 959 | .Bl -item -offset indent -compact |
| 960 | .It |
| 961 | .Cm ListenAddress |
| 962 | .Sm off |
jmc@openbsd.org@openbsd.org | 7530e77 | 2017-10-25 06:18:06 +0000 | [diff] [blame] | 963 | .Ar hostname | address |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 964 | .Sm on |
jmc@openbsd.org@openbsd.org | 68d3bbb | 2017-10-26 06:44:01 +0000 | [diff] [blame] | 965 | .Op Cm rdomain Ar domain |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 966 | .It |
| 967 | .Cm ListenAddress |
| 968 | .Sm off |
jmc@openbsd.org@openbsd.org | 7530e77 | 2017-10-25 06:18:06 +0000 | [diff] [blame] | 969 | .Ar hostname : port |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 970 | .Sm on |
jmc@openbsd.org@openbsd.org | 68d3bbb | 2017-10-26 06:44:01 +0000 | [diff] [blame] | 971 | .Op Cm rdomain Ar domain |
djm@openbsd.org | acf559e | 2017-10-25 00:15:35 +0000 | [diff] [blame] | 972 | .It |
| 973 | .Cm ListenAddress |
| 974 | .Sm off |
jmc@openbsd.org@openbsd.org | 7530e77 | 2017-10-25 06:18:06 +0000 | [diff] [blame] | 975 | .Ar IPv4_address : port |
djm@openbsd.org | acf559e | 2017-10-25 00:15:35 +0000 | [diff] [blame] | 976 | .Sm on |
jmc@openbsd.org@openbsd.org | 68d3bbb | 2017-10-26 06:44:01 +0000 | [diff] [blame] | 977 | .Op Cm rdomain Ar domain |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 978 | .It |
| 979 | .Cm ListenAddress |
| 980 | .Sm off |
jmc@openbsd.org@openbsd.org | 7530e77 | 2017-10-25 06:18:06 +0000 | [diff] [blame] | 981 | .Oo Ar hostname | address Oc : Ar port |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 982 | .Sm on |
jmc@openbsd.org@openbsd.org | 68d3bbb | 2017-10-26 06:44:01 +0000 | [diff] [blame] | 983 | .Op Cm rdomain Ar domain |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 984 | .El |
| 985 | .Pp |
djm@openbsd.org | acf559e | 2017-10-25 00:15:35 +0000 | [diff] [blame] | 986 | The optional |
| 987 | .Cm rdomain |
| 988 | qualifier requests |
| 989 | .Xr sshd 8 |
| 990 | listen in an explicit routing domain. |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 991 | If |
| 992 | .Ar port |
| 993 | is not specified, |
dtucker@openbsd.org | 531a57a | 2015-04-29 03:48:56 +0000 | [diff] [blame] | 994 | sshd will listen on the address and all |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 995 | .Cm Port |
Damien Miller | fbf486b | 2003-05-23 18:44:23 +1000 | [diff] [blame] | 996 | options specified. |
djm@openbsd.org | acf559e | 2017-10-25 00:15:35 +0000 | [diff] [blame] | 997 | The default is to listen on all local addresses on the current default |
| 998 | routing domain. |
Damien Miller | 495dca3 | 2003-04-01 21:42:14 +1000 | [diff] [blame] | 999 | Multiple |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 1000 | .Cm ListenAddress |
Damien Miller | fbf486b | 2003-05-23 18:44:23 +1000 | [diff] [blame] | 1001 | options are permitted. |
djm@openbsd.org | acf559e | 2017-10-25 00:15:35 +0000 | [diff] [blame] | 1002 | For more information on routing domains, see |
jmc@openbsd.org@openbsd.org | 7530e77 | 2017-10-25 06:18:06 +0000 | [diff] [blame] | 1003 | .Xr rdomain 4 . |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 1004 | .It Cm LoginGraceTime |
| 1005 | The server disconnects after this time if the user has not |
| 1006 | successfully logged in. |
| 1007 | If the value is 0, there is no time limit. |
Damien Miller | c134863 | 2002-09-05 14:35:14 +1000 | [diff] [blame] | 1008 | The default is 120 seconds. |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 1009 | .It Cm LogLevel |
| 1010 | Gives the verbosity level that is used when logging messages from |
Damien Miller | f4f22b5 | 2006-03-15 11:57:25 +1100 | [diff] [blame] | 1011 | .Xr sshd 8 . |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 1012 | The possible values are: |
Damien Miller | 5b0d63f | 2006-03-15 11:56:56 +1100 | [diff] [blame] | 1013 | QUIET, FATAL, ERROR, INFO, VERBOSE, DEBUG, DEBUG1, DEBUG2, and DEBUG3. |
Damien Miller | 495dca3 | 2003-04-01 21:42:14 +1000 | [diff] [blame] | 1014 | The default is INFO. |
| 1015 | DEBUG and DEBUG1 are equivalent. |
| 1016 | DEBUG2 and DEBUG3 each specify higher levels of debugging output. |
| 1017 | Logging with a DEBUG level violates the privacy of users and is not recommended. |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 1018 | .It Cm MACs |
| 1019 | Specifies the available MAC (message authentication code) algorithms. |
jmc@openbsd.org | a685ae8 | 2016-02-17 07:38:19 +0000 | [diff] [blame] | 1020 | The MAC algorithm is used for data integrity protection. |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 1021 | Multiple algorithms must be comma-separated. |
naddy@openbsd.org | 4f9d75f | 2019-09-04 20:31:15 +0000 | [diff] [blame] | 1022 | If the specified list begins with a |
djm@openbsd.org | f9eca24 | 2015-07-30 00:01:34 +0000 | [diff] [blame] | 1023 | .Sq + |
| 1024 | character, then the specified algorithms will be appended to the default set |
| 1025 | instead of replacing them. |
naddy@openbsd.org | 4f9d75f | 2019-09-04 20:31:15 +0000 | [diff] [blame] | 1026 | If the specified list begins with a |
djm@openbsd.org | 68bc8cf | 2017-02-03 23:01:19 +0000 | [diff] [blame] | 1027 | .Sq - |
| 1028 | character, then the specified algorithms (including wildcards) will be removed |
| 1029 | from the default set instead of replacing them. |
naddy@openbsd.org | 91a2135 | 2019-09-06 14:45:34 +0000 | [diff] [blame] | 1030 | If the specified list begins with a |
| 1031 | .Sq ^ |
| 1032 | character, then the specified algorithms will be placed at the head of the |
| 1033 | default set. |
djm@openbsd.org | f9eca24 | 2015-07-30 00:01:34 +0000 | [diff] [blame] | 1034 | .Pp |
Damien Miller | af43a7a | 2012-12-12 10:46:31 +1100 | [diff] [blame] | 1035 | The algorithms that contain |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 1036 | .Qq -etm |
Damien Miller | af43a7a | 2012-12-12 10:46:31 +1100 | [diff] [blame] | 1037 | calculate the MAC after encryption (encrypt-then-mac). |
| 1038 | These are considered safer and their use recommended. |
Damien Miller | c1621c8 | 2014-04-20 13:22:46 +1000 | [diff] [blame] | 1039 | The supported MACs are: |
| 1040 | .Pp |
| 1041 | .Bl -item -compact -offset indent |
| 1042 | .It |
| 1043 | hmac-md5 |
| 1044 | .It |
| 1045 | hmac-md5-96 |
| 1046 | .It |
Damien Miller | c1621c8 | 2014-04-20 13:22:46 +1000 | [diff] [blame] | 1047 | hmac-sha1 |
| 1048 | .It |
| 1049 | hmac-sha1-96 |
| 1050 | .It |
| 1051 | hmac-sha2-256 |
| 1052 | .It |
| 1053 | hmac-sha2-512 |
| 1054 | .It |
| 1055 | umac-64@openssh.com |
| 1056 | .It |
| 1057 | umac-128@openssh.com |
| 1058 | .It |
| 1059 | hmac-md5-etm@openssh.com |
| 1060 | .It |
| 1061 | hmac-md5-96-etm@openssh.com |
| 1062 | .It |
Damien Miller | c1621c8 | 2014-04-20 13:22:46 +1000 | [diff] [blame] | 1063 | hmac-sha1-etm@openssh.com |
| 1064 | .It |
| 1065 | hmac-sha1-96-etm@openssh.com |
| 1066 | .It |
| 1067 | hmac-sha2-256-etm@openssh.com |
| 1068 | .It |
| 1069 | hmac-sha2-512-etm@openssh.com |
| 1070 | .It |
| 1071 | umac-64-etm@openssh.com |
| 1072 | .It |
| 1073 | umac-128-etm@openssh.com |
| 1074 | .El |
| 1075 | .Pp |
Damien Miller | 5b0d63f | 2006-03-15 11:56:56 +1100 | [diff] [blame] | 1076 | The default is: |
Damien Miller | 22b7b49 | 2007-06-11 14:07:12 +1000 | [diff] [blame] | 1077 | .Bd -literal -offset indent |
Damien Miller | af43a7a | 2012-12-12 10:46:31 +1100 | [diff] [blame] | 1078 | umac-64-etm@openssh.com,umac-128-etm@openssh.com, |
| 1079 | hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com, |
djm@openbsd.org | e4c918a | 2016-02-11 02:56:32 +0000 | [diff] [blame] | 1080 | hmac-sha1-etm@openssh.com, |
Damien Miller | c1621c8 | 2014-04-20 13:22:46 +1000 | [diff] [blame] | 1081 | umac-64@openssh.com,umac-128@openssh.com, |
djm@openbsd.org | e4c918a | 2016-02-11 02:56:32 +0000 | [diff] [blame] | 1082 | hmac-sha2-256,hmac-sha2-512,hmac-sha1 |
Damien Miller | 22b7b49 | 2007-06-11 14:07:12 +1000 | [diff] [blame] | 1083 | .Ed |
djm@openbsd.org | 8f6784f | 2014-12-22 09:05:17 +0000 | [diff] [blame] | 1084 | .Pp |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 1085 | The list of available MAC algorithms may also be obtained using |
| 1086 | .Qq ssh -Q mac . |
Darren Tucker | 4515047 | 2006-07-12 22:34:17 +1000 | [diff] [blame] | 1087 | .It Cm Match |
Damien Miller | d04f357 | 2006-07-24 13:46:50 +1000 | [diff] [blame] | 1088 | Introduces a conditional block. |
Damien Miller | 8c23403 | 2006-07-24 14:05:08 +1000 | [diff] [blame] | 1089 | If all of the criteria on the |
Darren Tucker | 4515047 | 2006-07-12 22:34:17 +1000 | [diff] [blame] | 1090 | .Cm Match |
Damien Miller | 8c23403 | 2006-07-24 14:05:08 +1000 | [diff] [blame] | 1091 | line are satisfied, the keywords on the following lines override those |
| 1092 | set in the global section of the config file, until either another |
Darren Tucker | 4515047 | 2006-07-12 22:34:17 +1000 | [diff] [blame] | 1093 | .Cm Match |
Damien Miller | 8c23403 | 2006-07-24 14:05:08 +1000 | [diff] [blame] | 1094 | line or the end of the file. |
Damien Miller | fc5d675 | 2014-02-28 10:01:28 +1100 | [diff] [blame] | 1095 | If a keyword appears in multiple |
| 1096 | .Cm Match |
sobrado@openbsd.org | 180bcb4 | 2014-08-30 16:32:25 +0000 | [diff] [blame] | 1097 | blocks that are satisfied, only the first instance of the keyword is |
Damien Miller | fc5d675 | 2014-02-28 10:01:28 +1100 | [diff] [blame] | 1098 | applied. |
Darren Tucker | 7a3935d | 2008-06-10 22:59:10 +1000 | [diff] [blame] | 1099 | .Pp |
Damien Miller | d04f357 | 2006-07-24 13:46:50 +1000 | [diff] [blame] | 1100 | The arguments to |
Darren Tucker | 4515047 | 2006-07-12 22:34:17 +1000 | [diff] [blame] | 1101 | .Cm Match |
Damien Miller | cf31f38 | 2013-10-24 21:02:56 +1100 | [diff] [blame] | 1102 | are one or more criteria-pattern pairs or the single token |
| 1103 | .Cm All |
| 1104 | which matches all criteria. |
Darren Tucker | 4515047 | 2006-07-12 22:34:17 +1000 | [diff] [blame] | 1105 | The available criteria are |
| 1106 | .Cm User , |
Damien Miller | 565ca3f | 2006-08-19 00:23:15 +1000 | [diff] [blame] | 1107 | .Cm Group , |
Darren Tucker | 4515047 | 2006-07-12 22:34:17 +1000 | [diff] [blame] | 1108 | .Cm Host , |
Darren Tucker | fbcf827 | 2012-05-19 19:37:01 +1000 | [diff] [blame] | 1109 | .Cm LocalAddress , |
| 1110 | .Cm LocalPort , |
djm@openbsd.org | 68af80e | 2017-10-25 00:19:47 +0000 | [diff] [blame] | 1111 | .Cm RDomain , |
Darren Tucker | 4515047 | 2006-07-12 22:34:17 +1000 | [diff] [blame] | 1112 | and |
djm@openbsd.org | 68af80e | 2017-10-25 00:19:47 +0000 | [diff] [blame] | 1113 | .Cm Address |
| 1114 | (with |
| 1115 | .Cm RDomain |
| 1116 | representing the |
| 1117 | .Xr rdomain 4 |
jmc@openbsd.org | 62949c5 | 2019-03-22 20:58:34 +0000 | [diff] [blame] | 1118 | on which the connection was received). |
djm@openbsd.org | 68af80e | 2017-10-25 00:19:47 +0000 | [diff] [blame] | 1119 | .Pp |
Darren Tucker | 7a3935d | 2008-06-10 22:59:10 +1000 | [diff] [blame] | 1120 | The match patterns may consist of single entries or comma-separated |
| 1121 | lists and may use the wildcard and negation operators described in the |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 1122 | .Sx PATTERNS |
| 1123 | section of |
Darren Tucker | b06cc4a | 2008-06-10 22:59:53 +1000 | [diff] [blame] | 1124 | .Xr ssh_config 5 . |
Darren Tucker | 7a3935d | 2008-06-10 22:59:10 +1000 | [diff] [blame] | 1125 | .Pp |
| 1126 | The patterns in an |
| 1127 | .Cm Address |
| 1128 | criteria may additionally contain addresses to match in CIDR |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 1129 | address/masklen format, |
| 1130 | such as 192.0.2.0/24 or 2001:db8::/32. |
Darren Tucker | 7a3935d | 2008-06-10 22:59:10 +1000 | [diff] [blame] | 1131 | Note that the mask length provided must be consistent with the address - |
| 1132 | it is an error to specify a mask length that is too long for the address |
Darren Tucker | 6a2a400 | 2008-06-10 23:03:04 +1000 | [diff] [blame] | 1133 | or one with bits set in this host portion of the address. |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 1134 | For example, 192.0.2.0/33 and 192.0.2.0/8, respectively. |
Darren Tucker | 7a3935d | 2008-06-10 22:59:10 +1000 | [diff] [blame] | 1135 | .Pp |
Darren Tucker | 4515047 | 2006-07-12 22:34:17 +1000 | [diff] [blame] | 1136 | Only a subset of keywords may be used on the lines following a |
| 1137 | .Cm Match |
| 1138 | keyword. |
| 1139 | Available keywords are |
Damien Miller | f826850 | 2012-06-20 21:54:15 +1000 | [diff] [blame] | 1140 | .Cm AcceptEnv , |
Damien Miller | 1781901 | 2009-01-28 16:20:17 +1100 | [diff] [blame] | 1141 | .Cm AllowAgentForwarding , |
Damien Miller | f826850 | 2012-06-20 21:54:15 +1000 | [diff] [blame] | 1142 | .Cm AllowGroups , |
djm@openbsd.org | 18a208d | 2015-02-20 22:40:32 +0000 | [diff] [blame] | 1143 | .Cm AllowStreamLocalForwarding , |
Damien Miller | 9b439df | 2006-07-24 14:04:00 +1000 | [diff] [blame] | 1144 | .Cm AllowTcpForwarding , |
Damien Miller | c24da77 | 2012-06-20 21:53:58 +1000 | [diff] [blame] | 1145 | .Cm AllowUsers , |
Damien Miller | a6e3f01 | 2012-11-04 23:21:40 +1100 | [diff] [blame] | 1146 | .Cm AuthenticationMethods , |
Damien Miller | 09d3e12 | 2012-10-31 08:58:58 +1100 | [diff] [blame] | 1147 | .Cm AuthorizedKeysCommand , |
| 1148 | .Cm AuthorizedKeysCommandUser , |
Damien Miller | f33580e | 2012-11-04 22:22:52 +1100 | [diff] [blame] | 1149 | .Cm AuthorizedKeysFile , |
djm@openbsd.org | b6b9108 | 2015-11-13 02:57:46 +0000 | [diff] [blame] | 1150 | .Cm AuthorizedPrincipalsCommand , |
| 1151 | .Cm AuthorizedPrincipalsCommandUser , |
Damien Miller | ab6de35 | 2010-06-26 09:38:45 +1000 | [diff] [blame] | 1152 | .Cm AuthorizedPrincipalsFile , |
Darren Tucker | 1629c07 | 2007-02-19 22:25:37 +1100 | [diff] [blame] | 1153 | .Cm Banner , |
Damien Miller | 797e3d1 | 2008-05-19 14:27:42 +1000 | [diff] [blame] | 1154 | .Cm ChrootDirectory , |
markus@openbsd.org | f0ddede | 2016-11-23 23:14:15 +0000 | [diff] [blame] | 1155 | .Cm ClientAliveCountMax , |
| 1156 | .Cm ClientAliveInterval , |
Damien Miller | c24da77 | 2012-06-20 21:53:58 +1000 | [diff] [blame] | 1157 | .Cm DenyGroups , |
| 1158 | .Cm DenyUsers , |
Damien Miller | e275443 | 2006-07-24 14:06:47 +1000 | [diff] [blame] | 1159 | .Cm ForceCommand , |
djm@openbsd.org | 18a208d | 2015-02-20 22:40:32 +0000 | [diff] [blame] | 1160 | .Cm GatewayPorts , |
djm@openbsd.org | bd49da2 | 2015-02-20 23:46:01 +0000 | [diff] [blame] | 1161 | .Cm GSSAPIAuthentication , |
djm@openbsd.org | 1f729f0 | 2015-01-13 07:39:19 +0000 | [diff] [blame] | 1162 | .Cm HostbasedAcceptedKeyTypes , |
Damien Miller | 25434de | 2008-05-19 14:29:08 +1000 | [diff] [blame] | 1163 | .Cm HostbasedAuthentication , |
Damien Miller | ab6de35 | 2010-06-26 09:38:45 +1000 | [diff] [blame] | 1164 | .Cm HostbasedUsesNameFromPacketOnly , |
naddy@openbsd.org | a6ac5d3 | 2020-02-06 22:34:58 +0000 | [diff] [blame^] | 1165 | .Cm Include , |
djm@openbsd.org | 18a208d | 2015-02-20 22:40:32 +0000 | [diff] [blame] | 1166 | .Cm IPQoS , |
Darren Tucker | 1d75f22 | 2007-03-01 21:31:28 +1100 | [diff] [blame] | 1167 | .Cm KbdInteractiveAuthentication , |
Damien Miller | 5737e36 | 2007-03-06 21:21:18 +1100 | [diff] [blame] | 1168 | .Cm KerberosAuthentication , |
djm@openbsd.org | 54cd41a | 2017-05-17 01:24:17 +0000 | [diff] [blame] | 1169 | .Cm LogLevel , |
Damien Miller | 307c1d1 | 2008-06-16 07:56:20 +1000 | [diff] [blame] | 1170 | .Cm MaxAuthTries , |
Damien Miller | c62a5af | 2008-06-16 07:55:46 +1000 | [diff] [blame] | 1171 | .Cm MaxSessions , |
Darren Tucker | 1629c07 | 2007-02-19 22:25:37 +1100 | [diff] [blame] | 1172 | .Cm PasswordAuthentication , |
Damien Miller | 51bde60 | 2008-11-03 19:23:10 +1100 | [diff] [blame] | 1173 | .Cm PermitEmptyPasswords , |
djm@openbsd.org | 04df432 | 2018-06-06 18:24:00 +0000 | [diff] [blame] | 1174 | .Cm PermitListen , |
Damien Miller | d1de995 | 2006-07-24 14:05:48 +1000 | [diff] [blame] | 1175 | .Cm PermitOpen , |
Darren Tucker | 15f9427 | 2008-01-01 20:36:56 +1100 | [diff] [blame] | 1176 | .Cm PermitRootLogin , |
Damien Miller | 5ff30c6 | 2013-10-30 22:21:50 +1100 | [diff] [blame] | 1177 | .Cm PermitTTY , |
Damien Miller | ab6de35 | 2010-06-26 09:38:45 +1000 | [diff] [blame] | 1178 | .Cm PermitTunnel , |
Damien Miller | 72e6b5c | 2014-07-04 09:00:04 +1000 | [diff] [blame] | 1179 | .Cm PermitUserRC , |
djm@openbsd.org | 1f729f0 | 2015-01-13 07:39:19 +0000 | [diff] [blame] | 1180 | .Cm PubkeyAcceptedKeyTypes , |
Darren Tucker | 1477ea1 | 2009-10-07 08:36:05 +1100 | [diff] [blame] | 1181 | .Cm PubkeyAuthentication , |
djm@openbsd.org | 18a208d | 2015-02-20 22:40:32 +0000 | [diff] [blame] | 1182 | .Cm RekeyLimit , |
| 1183 | .Cm RevokedKeys , |
djm@openbsd.org | 35eb33f | 2017-10-25 00:17:08 +0000 | [diff] [blame] | 1184 | .Cm RDomain , |
djm@openbsd.org | 2801375 | 2018-06-09 03:03:10 +0000 | [diff] [blame] | 1185 | .Cm SetEnv , |
djm@openbsd.org | 18a208d | 2015-02-20 22:40:32 +0000 | [diff] [blame] | 1186 | .Cm StreamLocalBindMask , |
| 1187 | .Cm StreamLocalBindUnlink , |
| 1188 | .Cm TrustedUserCAKeys , |
Damien Miller | d1de995 | 2006-07-24 14:05:48 +1000 | [diff] [blame] | 1189 | .Cm X11DisplayOffset , |
Damien Miller | 1991384 | 2009-02-23 10:53:58 +1100 | [diff] [blame] | 1190 | .Cm X11Forwarding |
Darren Tucker | 4515047 | 2006-07-12 22:34:17 +1000 | [diff] [blame] | 1191 | and |
jmc@openbsd.org | 76af9c5 | 2019-06-12 05:53:21 +0000 | [diff] [blame] | 1192 | .Cm X11UseLocalhost . |
Darren Tucker | 89413db | 2004-05-24 10:36:23 +1000 | [diff] [blame] | 1193 | .It Cm MaxAuthTries |
| 1194 | Specifies the maximum number of authentication attempts permitted per |
Damien Miller | 26213e5 | 2004-06-30 22:39:34 +1000 | [diff] [blame] | 1195 | connection. |
| 1196 | Once the number of failures reaches half this value, |
| 1197 | additional failures are logged. |
| 1198 | The default is 6. |
Damien Miller | 7207f64 | 2008-05-19 15:34:50 +1000 | [diff] [blame] | 1199 | .It Cm MaxSessions |
djm@openbsd.org | cac3b66 | 2016-02-05 02:37:56 +0000 | [diff] [blame] | 1200 | Specifies the maximum number of open shell, login or subsystem (e.g. sftp) |
| 1201 | sessions permitted per network connection. |
| 1202 | Multiple sessions may be established by clients that support connection |
| 1203 | multiplexing. |
| 1204 | Setting |
| 1205 | .Cm MaxSessions |
| 1206 | to 1 will effectively disable session multiplexing, whereas setting it to 0 |
| 1207 | will prevent all shell, login and subsystem sessions while still permitting |
| 1208 | forwarding. |
Damien Miller | 7207f64 | 2008-05-19 15:34:50 +1000 | [diff] [blame] | 1209 | The default is 10. |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 1210 | .It Cm MaxStartups |
| 1211 | Specifies the maximum number of concurrent unauthenticated connections to the |
Damien Miller | 5b0d63f | 2006-03-15 11:56:56 +1100 | [diff] [blame] | 1212 | SSH daemon. |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 1213 | Additional connections will be dropped until authentication succeeds or the |
| 1214 | .Cm LoginGraceTime |
| 1215 | expires for a connection. |
Damien Miller | 1f583df | 2013-02-12 11:02:08 +1100 | [diff] [blame] | 1216 | The default is 10:30:100. |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 1217 | .Pp |
| 1218 | Alternatively, random early drop can be enabled by specifying |
| 1219 | the three colon separated values |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 1220 | start:rate:full (e.g. "10:30:60"). |
Damien Miller | f4f22b5 | 2006-03-15 11:57:25 +1100 | [diff] [blame] | 1221 | .Xr sshd 8 |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 1222 | will refuse connection attempts with a probability of rate/100 (30%) |
| 1223 | if there are currently start (10) unauthenticated connections. |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 1224 | The probability increases linearly and all connection attempts |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 1225 | are refused if the number of unauthenticated connections reaches full (60). |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 1226 | .It Cm PasswordAuthentication |
| 1227 | Specifies whether password authentication is allowed. |
| 1228 | The default is |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 1229 | .Cm yes . |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 1230 | .It Cm PermitEmptyPasswords |
| 1231 | When password authentication is allowed, it specifies whether the |
| 1232 | server allows login to accounts with empty password strings. |
| 1233 | The default is |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 1234 | .Cm no . |
djm@openbsd.org | 04df432 | 2018-06-06 18:24:00 +0000 | [diff] [blame] | 1235 | .It Cm PermitListen |
| 1236 | Specifies the addresses/ports on which a remote TCP port forwarding may listen. |
| 1237 | The listen specification must be one of the following forms: |
| 1238 | .Pp |
| 1239 | .Bl -item -offset indent -compact |
| 1240 | .It |
| 1241 | .Cm PermitListen |
| 1242 | .Sm off |
djm@openbsd.org | 87ddd67 | 2018-06-19 02:59:41 +0000 | [diff] [blame] | 1243 | .Ar port |
| 1244 | .Sm on |
| 1245 | .It |
| 1246 | .Cm PermitListen |
| 1247 | .Sm off |
djm@openbsd.org | 04df432 | 2018-06-06 18:24:00 +0000 | [diff] [blame] | 1248 | .Ar host : port |
| 1249 | .Sm on |
djm@openbsd.org | 04df432 | 2018-06-06 18:24:00 +0000 | [diff] [blame] | 1250 | .El |
| 1251 | .Pp |
| 1252 | Multiple permissions may be specified by separating them with whitespace. |
| 1253 | An argument of |
| 1254 | .Cm any |
| 1255 | can be used to remove all restrictions and permit any listen requests. |
| 1256 | An argument of |
| 1257 | .Cm none |
| 1258 | can be used to prohibit all listen requests. |
| 1259 | The host name may contain wildcards as described in the PATTERNS section in |
| 1260 | .Xr ssh_config 5 . |
| 1261 | The wildcard |
| 1262 | .Sq * |
| 1263 | can also be used in place of a port number to allow all ports. |
| 1264 | By default all port forwarding listen requests are permitted. |
jmc@openbsd.org | 6ff6fda | 2018-06-07 11:26:14 +0000 | [diff] [blame] | 1265 | Note that the |
djm@openbsd.org | 04df432 | 2018-06-06 18:24:00 +0000 | [diff] [blame] | 1266 | .Cm GatewayPorts |
| 1267 | option may further restrict which addresses may be listened on. |
djm@openbsd.org | 87ddd67 | 2018-06-19 02:59:41 +0000 | [diff] [blame] | 1268 | Note also that |
| 1269 | .Xr ssh 1 |
| 1270 | will request a listen host of |
| 1271 | .Dq localhost |
dtucker@openbsd.org | 177d6c8 | 2019-01-23 20:48:52 +0000 | [diff] [blame] | 1272 | if no listen host was specifically requested, and this name is |
jmc@openbsd.org | f535ff9 | 2018-06-19 05:36:57 +0000 | [diff] [blame] | 1273 | treated differently to explicit localhost addresses of |
djm@openbsd.org | 87ddd67 | 2018-06-19 02:59:41 +0000 | [diff] [blame] | 1274 | .Dq 127.0.0.1 |
| 1275 | and |
| 1276 | .Dq ::1 . |
Damien Miller | 9b439df | 2006-07-24 14:04:00 +1000 | [diff] [blame] | 1277 | .It Cm PermitOpen |
| 1278 | Specifies the destinations to which TCP port forwarding is permitted. |
| 1279 | The forwarding specification must be one of the following forms: |
| 1280 | .Pp |
| 1281 | .Bl -item -offset indent -compact |
| 1282 | .It |
| 1283 | .Cm PermitOpen |
| 1284 | .Sm off |
| 1285 | .Ar host : port |
| 1286 | .Sm on |
| 1287 | .It |
| 1288 | .Cm PermitOpen |
| 1289 | .Sm off |
| 1290 | .Ar IPv4_addr : port |
| 1291 | .Sm on |
| 1292 | .It |
| 1293 | .Cm PermitOpen |
| 1294 | .Sm off |
| 1295 | .Ar \&[ IPv6_addr \&] : port |
| 1296 | .Sm on |
| 1297 | .El |
| 1298 | .Pp |
Damien Miller | a765cf4 | 2006-07-24 14:08:13 +1000 | [diff] [blame] | 1299 | Multiple forwards may be specified by separating them with whitespace. |
Damien Miller | 9b439df | 2006-07-24 14:04:00 +1000 | [diff] [blame] | 1300 | An argument of |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 1301 | .Cm any |
Damien Miller | 9b439df | 2006-07-24 14:04:00 +1000 | [diff] [blame] | 1302 | can be used to remove all restrictions and permit any forwarding requests. |
Darren Tucker | ba9ea32 | 2012-05-19 19:37:33 +1000 | [diff] [blame] | 1303 | An argument of |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 1304 | .Cm none |
Darren Tucker | ba9ea32 | 2012-05-19 19:37:33 +1000 | [diff] [blame] | 1305 | can be used to prohibit all forwarding requests. |
jmc@openbsd.org | 32d921c | 2016-07-19 12:59:16 +0000 | [diff] [blame] | 1306 | The wildcard |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 1307 | .Sq * |
djm@openbsd.org | 734f2f8 | 2020-01-25 06:03:10 +0000 | [diff] [blame] | 1308 | can be used for host or port to allow all hosts or ports respectively. |
| 1309 | Otherwise, no pattern matching or address lookups are performed on supplied |
| 1310 | names. |
Damien Miller | 65bc2c4 | 2006-07-24 14:04:16 +1000 | [diff] [blame] | 1311 | By default all port forwarding requests are permitted. |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 1312 | .It Cm PermitRootLogin |
Darren Tucker | b350901 | 2005-01-20 11:01:46 +1100 | [diff] [blame] | 1313 | Specifies whether root can log in using |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 1314 | .Xr ssh 1 . |
| 1315 | The argument must be |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 1316 | .Cm yes , |
| 1317 | .Cm prohibit-password , |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 1318 | .Cm forced-commands-only , |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 1319 | or |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 1320 | .Cm no . |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 1321 | The default is |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 1322 | .Cm prohibit-password . |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 1323 | .Pp |
| 1324 | If this option is set to |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 1325 | .Cm prohibit-password |
jmc@openbsd.org | 071325f | 2017-10-13 16:50:45 +0000 | [diff] [blame] | 1326 | (or its deprecated alias, |
| 1327 | .Cm without-password ) , |
deraadt@openbsd.org | 1dc8d93 | 2015-08-06 14:53:21 +0000 | [diff] [blame] | 1328 | password and keyboard-interactive authentication are disabled for root. |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 1329 | .Pp |
| 1330 | If this option is set to |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 1331 | .Cm forced-commands-only , |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 1332 | root login with public key authentication will be allowed, |
| 1333 | but only if the |
| 1334 | .Ar command |
| 1335 | option has been specified |
| 1336 | (which may be useful for taking remote backups even if root login is |
Damien Miller | fbf486b | 2003-05-23 18:44:23 +1000 | [diff] [blame] | 1337 | normally not allowed). |
| 1338 | All other authentication methods are disabled for root. |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 1339 | .Pp |
| 1340 | If this option is set to |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 1341 | .Cm no , |
Darren Tucker | b350901 | 2005-01-20 11:01:46 +1100 | [diff] [blame] | 1342 | root is not allowed to log in. |
jmc@openbsd.org | f219fc8 | 2016-09-07 18:39:24 +0000 | [diff] [blame] | 1343 | .It Cm PermitTTY |
| 1344 | Specifies whether |
| 1345 | .Xr pty 4 |
| 1346 | allocation is permitted. |
| 1347 | The default is |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 1348 | .Cm yes . |
Damien Miller | d27b947 | 2005-12-13 19:29:02 +1100 | [diff] [blame] | 1349 | .It Cm PermitTunnel |
| 1350 | Specifies whether |
| 1351 | .Xr tun 4 |
| 1352 | device forwarding is allowed. |
Damien Miller | 7b58e80 | 2005-12-13 19:33:19 +1100 | [diff] [blame] | 1353 | The argument must be |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 1354 | .Cm yes , |
| 1355 | .Cm point-to-point |
Damien Miller | 991dba4 | 2006-07-10 20:16:27 +1000 | [diff] [blame] | 1356 | (layer 3), |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 1357 | .Cm ethernet |
Damien Miller | 991dba4 | 2006-07-10 20:16:27 +1000 | [diff] [blame] | 1358 | (layer 2), or |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 1359 | .Cm no . |
Damien Miller | 991dba4 | 2006-07-10 20:16:27 +1000 | [diff] [blame] | 1360 | Specifying |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 1361 | .Cm yes |
Damien Miller | 991dba4 | 2006-07-10 20:16:27 +1000 | [diff] [blame] | 1362 | permits both |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 1363 | .Cm point-to-point |
Damien Miller | 991dba4 | 2006-07-10 20:16:27 +1000 | [diff] [blame] | 1364 | and |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 1365 | .Cm ethernet . |
Damien Miller | d27b947 | 2005-12-13 19:29:02 +1100 | [diff] [blame] | 1366 | The default is |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 1367 | .Cm no . |
djm@openbsd.org | 48dffd5 | 2014-09-09 09:45:36 +0000 | [diff] [blame] | 1368 | .Pp |
| 1369 | Independent of this setting, the permissions of the selected |
| 1370 | .Xr tun 4 |
| 1371 | device must allow access to the user. |
Ben Lindstrom | 5d860f0 | 2002-08-01 01:28:38 +0000 | [diff] [blame] | 1372 | .It Cm PermitUserEnvironment |
| 1373 | Specifies whether |
| 1374 | .Pa ~/.ssh/environment |
Ben Lindstrom | bd9bf38 | 2002-08-20 18:54:20 +0000 | [diff] [blame] | 1375 | and |
Ben Lindstrom | 5d860f0 | 2002-08-01 01:28:38 +0000 | [diff] [blame] | 1376 | .Cm environment= |
| 1377 | options in |
| 1378 | .Pa ~/.ssh/authorized_keys |
Ben Lindstrom | bd9bf38 | 2002-08-20 18:54:20 +0000 | [diff] [blame] | 1379 | are processed by |
Damien Miller | 5b0d63f | 2006-03-15 11:56:56 +1100 | [diff] [blame] | 1380 | .Xr sshd 8 . |
djm@openbsd.org | 95344c2 | 2018-07-03 10:59:35 +0000 | [diff] [blame] | 1381 | Valid options are |
| 1382 | .Cm yes , |
| 1383 | .Cm no |
| 1384 | or a pattern-list specifying which environment variable names to accept |
| 1385 | (for example |
| 1386 | .Qq LANG,LC_* ) . |
Ben Lindstrom | 5d860f0 | 2002-08-01 01:28:38 +0000 | [diff] [blame] | 1387 | The default is |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 1388 | .Cm no . |
Ben Lindstrom | bd9bf38 | 2002-08-20 18:54:20 +0000 | [diff] [blame] | 1389 | Enabling environment processing may enable users to bypass access |
| 1390 | restrictions in some configurations using mechanisms such as |
| 1391 | .Ev LD_PRELOAD . |
Damien Miller | 72e6b5c | 2014-07-04 09:00:04 +1000 | [diff] [blame] | 1392 | .It Cm PermitUserRC |
| 1393 | Specifies whether any |
| 1394 | .Pa ~/.ssh/rc |
| 1395 | file is executed. |
| 1396 | The default is |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 1397 | .Cm yes . |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 1398 | .It Cm PidFile |
Ben Lindstrom | 959de99 | 2002-06-23 00:35:25 +0000 | [diff] [blame] | 1399 | Specifies the file that contains the process ID of the |
dtucker@openbsd.org | 6cc7cfa | 2015-04-16 23:25:50 +0000 | [diff] [blame] | 1400 | SSH daemon, or |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 1401 | .Cm none |
dtucker@openbsd.org | 6cc7cfa | 2015-04-16 23:25:50 +0000 | [diff] [blame] | 1402 | to not write one. |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 1403 | The default is |
| 1404 | .Pa /var/run/sshd.pid . |
| 1405 | .It Cm Port |
| 1406 | Specifies the port number that |
Damien Miller | 5b0d63f | 2006-03-15 11:56:56 +1100 | [diff] [blame] | 1407 | .Xr sshd 8 |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 1408 | listens on. |
| 1409 | The default is 22. |
| 1410 | Multiple options of this type are permitted. |
| 1411 | See also |
| 1412 | .Cm ListenAddress . |
| 1413 | .It Cm PrintLastLog |
| 1414 | Specifies whether |
Damien Miller | 5b0d63f | 2006-03-15 11:56:56 +1100 | [diff] [blame] | 1415 | .Xr sshd 8 |
Darren Tucker | 7cc5c23 | 2004-11-05 20:06:59 +1100 | [diff] [blame] | 1416 | should print the date and time of the last user login when a user logs |
| 1417 | in interactively. |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 1418 | The default is |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 1419 | .Cm yes . |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 1420 | .It Cm PrintMotd |
| 1421 | Specifies whether |
Damien Miller | 5b0d63f | 2006-03-15 11:56:56 +1100 | [diff] [blame] | 1422 | .Xr sshd 8 |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 1423 | should print |
| 1424 | .Pa /etc/motd |
| 1425 | when a user logs in interactively. |
| 1426 | (On some systems it is also printed by the shell, |
| 1427 | .Pa /etc/profile , |
| 1428 | or equivalent.) |
| 1429 | The default is |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 1430 | .Cm yes . |
djm@openbsd.org | 1f729f0 | 2015-01-13 07:39:19 +0000 | [diff] [blame] | 1431 | .It Cm PubkeyAcceptedKeyTypes |
| 1432 | Specifies the key types that will be accepted for public key authentication |
djm@openbsd.org | 312d2f2 | 2018-07-04 13:49:31 +0000 | [diff] [blame] | 1433 | as a list of comma-separated patterns. |
naddy@openbsd.org | 4f9d75f | 2019-09-04 20:31:15 +0000 | [diff] [blame] | 1434 | Alternately if the specified list begins with a |
djm@openbsd.org | f9eca24 | 2015-07-30 00:01:34 +0000 | [diff] [blame] | 1435 | .Sq + |
| 1436 | character, then the specified key types will be appended to the default set |
| 1437 | instead of replacing them. |
naddy@openbsd.org | 4f9d75f | 2019-09-04 20:31:15 +0000 | [diff] [blame] | 1438 | If the specified list begins with a |
djm@openbsd.org | 68bc8cf | 2017-02-03 23:01:19 +0000 | [diff] [blame] | 1439 | .Sq - |
| 1440 | character, then the specified key types (including wildcards) will be removed |
| 1441 | from the default set instead of replacing them. |
naddy@openbsd.org | 91a2135 | 2019-09-06 14:45:34 +0000 | [diff] [blame] | 1442 | If the specified list begins with a |
| 1443 | .Sq ^ |
| 1444 | character, then the specified key types will be placed at the head of the |
| 1445 | default set. |
markus@openbsd.org | 3a1638d | 2015-07-10 06:21:53 +0000 | [diff] [blame] | 1446 | The default for this option is: |
| 1447 | .Bd -literal -offset 3n |
| 1448 | ecdsa-sha2-nistp256-cert-v01@openssh.com, |
| 1449 | ecdsa-sha2-nistp384-cert-v01@openssh.com, |
| 1450 | ecdsa-sha2-nistp521-cert-v01@openssh.com, |
naddy@openbsd.org | ae024b2 | 2019-12-19 15:09:30 +0000 | [diff] [blame] | 1451 | sk-ecdsa-sha2-nistp256-cert-v01@openssh.com, |
markus@openbsd.org | 3a1638d | 2015-07-10 06:21:53 +0000 | [diff] [blame] | 1452 | ssh-ed25519-cert-v01@openssh.com, |
naddy@openbsd.org | ae024b2 | 2019-12-19 15:09:30 +0000 | [diff] [blame] | 1453 | sk-ssh-ed25519-cert-v01@openssh.com, |
naddy@openbsd.org | aa4c640 | 2019-11-07 08:38:38 +0000 | [diff] [blame] | 1454 | rsa-sha2-512-cert-v01@openssh.com, |
| 1455 | rsa-sha2-256-cert-v01@openssh.com, |
markus@openbsd.org | 3a1638d | 2015-07-10 06:21:53 +0000 | [diff] [blame] | 1456 | ssh-rsa-cert-v01@openssh.com, |
| 1457 | ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521, |
naddy@openbsd.org | ae024b2 | 2019-12-19 15:09:30 +0000 | [diff] [blame] | 1458 | sk-ecdsa-sha2-nistp256@openssh.com, |
| 1459 | ssh-ed25519,sk-ssh-ed25519@openssh.com, |
| 1460 | rsa-sha2-512,rsa-sha2-256,ssh-rsa |
markus@openbsd.org | 3a1638d | 2015-07-10 06:21:53 +0000 | [diff] [blame] | 1461 | .Ed |
| 1462 | .Pp |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 1463 | The list of available key types may also be obtained using |
| 1464 | .Qq ssh -Q key . |
djm@openbsd.org | 0fddf29 | 2019-11-25 00:52:46 +0000 | [diff] [blame] | 1465 | .It Cm PubkeyAuthOptions |
| 1466 | Sets one or more public key authentication options. |
| 1467 | Two option keywords are currently supported: |
jmc@openbsd.org | 8635afa | 2019-11-26 22:42:26 +0000 | [diff] [blame] | 1468 | .Cm none |
| 1469 | (the default; indicating no additional options are enabled) |
djm@openbsd.org | 0fddf29 | 2019-11-25 00:52:46 +0000 | [diff] [blame] | 1470 | and |
| 1471 | .Cm touch-required . |
| 1472 | .Pp |
| 1473 | The |
| 1474 | .Cm touch-required |
naddy@openbsd.org | 141df48 | 2019-12-21 20:22:34 +0000 | [diff] [blame] | 1475 | option causes public key authentication using a FIDO authenticator algorithm |
jmc@openbsd.org | 8635afa | 2019-11-26 22:42:26 +0000 | [diff] [blame] | 1476 | (i.e.\& |
djm@openbsd.org | 0fddf29 | 2019-11-25 00:52:46 +0000 | [diff] [blame] | 1477 | .Cm ecdsa-sk |
| 1478 | or |
| 1479 | .Cm ed25519-sk ) |
| 1480 | to always require the signature to attest that a physically present user |
naddy@openbsd.org | 141df48 | 2019-12-21 20:22:34 +0000 | [diff] [blame] | 1481 | explicitly confirmed the authentication (usually by touching the authenticator). |
djm@openbsd.org | 0fddf29 | 2019-11-25 00:52:46 +0000 | [diff] [blame] | 1482 | By default, |
| 1483 | .Xr sshd 8 |
naddy@openbsd.org | 141df48 | 2019-12-21 20:22:34 +0000 | [diff] [blame] | 1484 | requires user presence unless overridden with an authorized_keys option. |
djm@openbsd.org | 0fddf29 | 2019-11-25 00:52:46 +0000 | [diff] [blame] | 1485 | The |
| 1486 | .Cm touch-required |
| 1487 | flag disables this override. |
naddy@openbsd.org | 141df48 | 2019-12-21 20:22:34 +0000 | [diff] [blame] | 1488 | This option has no effect for other, non-authenticator public key types. |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 1489 | .It Cm PubkeyAuthentication |
| 1490 | Specifies whether public key authentication is allowed. |
| 1491 | The default is |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 1492 | .Cm yes . |
Darren Tucker | 5f96f3b | 2013-05-16 20:29:28 +1000 | [diff] [blame] | 1493 | .It Cm RekeyLimit |
| 1494 | Specifies the maximum amount of data that may be transmitted before the |
| 1495 | session key is renegotiated, optionally followed a maximum amount of |
| 1496 | time that may pass before the session key is renegotiated. |
| 1497 | The first argument is specified in bytes and may have a suffix of |
| 1498 | .Sq K , |
| 1499 | .Sq M , |
| 1500 | or |
| 1501 | .Sq G |
| 1502 | to indicate Kilobytes, Megabytes, or Gigabytes, respectively. |
| 1503 | The default is between |
| 1504 | .Sq 1G |
| 1505 | and |
| 1506 | .Sq 4G , |
| 1507 | depending on the cipher. |
| 1508 | The optional second value is specified in seconds and may use any of the |
| 1509 | units documented in the |
| 1510 | .Sx TIME FORMATS |
Darren Tucker | 64d2294 | 2013-05-16 20:31:29 +1000 | [diff] [blame] | 1511 | section. |
Darren Tucker | 5f96f3b | 2013-05-16 20:29:28 +1000 | [diff] [blame] | 1512 | The default value for |
| 1513 | .Cm RekeyLimit |
| 1514 | is |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 1515 | .Cm default none , |
Darren Tucker | 5f96f3b | 2013-05-16 20:29:28 +1000 | [diff] [blame] | 1516 | which means that rekeying is performed after the cipher's default amount |
| 1517 | of data has been sent or received and no time based rekeying is done. |
Damien Miller | 1aed65e | 2010-03-04 21:53:35 +1100 | [diff] [blame] | 1518 | .It Cm RevokedKeys |
dtucker@openbsd.org | 6cc7cfa | 2015-04-16 23:25:50 +0000 | [diff] [blame] | 1519 | Specifies revoked public keys file, or |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 1520 | .Cm none |
dtucker@openbsd.org | 6cc7cfa | 2015-04-16 23:25:50 +0000 | [diff] [blame] | 1521 | to not use one. |
Damien Miller | 1aed65e | 2010-03-04 21:53:35 +1100 | [diff] [blame] | 1522 | Keys listed in this file will be refused for public key authentication. |
| 1523 | Note that if this file is not readable, then public key authentication will |
| 1524 | be refused for all users. |
Damien Miller | f3747bf | 2013-01-18 11:44:04 +1100 | [diff] [blame] | 1525 | Keys may be specified as a text file, listing one public key per line, or as |
| 1526 | an OpenSSH Key Revocation List (KRL) as generated by |
Damien Miller | 72abeb7 | 2013-01-20 22:33:44 +1100 | [diff] [blame] | 1527 | .Xr ssh-keygen 1 . |
Damien Miller | fecfd11 | 2013-07-18 16:11:50 +1000 | [diff] [blame] | 1528 | For more information on KRLs, see the KEY REVOCATION LISTS section in |
Damien Miller | f3747bf | 2013-01-18 11:44:04 +1100 | [diff] [blame] | 1529 | .Xr ssh-keygen 1 . |
djm@openbsd.org | 35eb33f | 2017-10-25 00:17:08 +0000 | [diff] [blame] | 1530 | .It Cm RDomain |
| 1531 | Specifies an explicit routing domain that is applied after authentication |
| 1532 | has completed. |
jmc@openbsd.org@openbsd.org | 7530e77 | 2017-10-25 06:18:06 +0000 | [diff] [blame] | 1533 | The user session, as well and any forwarded or listening IP sockets, |
| 1534 | will be bound to this |
djm@openbsd.org | 35eb33f | 2017-10-25 00:17:08 +0000 | [diff] [blame] | 1535 | .Xr rdomain 4 . |
| 1536 | If the routing domain is set to |
| 1537 | .Cm \&%D , |
jmc@openbsd.org@openbsd.org | 7530e77 | 2017-10-25 06:18:06 +0000 | [diff] [blame] | 1538 | then the domain in which the incoming connection was received will be applied. |
naddy@openbsd.org | ae024b2 | 2019-12-19 15:09:30 +0000 | [diff] [blame] | 1539 | .It Cm SecurityKeyProvider |
naddy@openbsd.org | 141df48 | 2019-12-21 20:22:34 +0000 | [diff] [blame] | 1540 | Specifies a path to a library that will be used when loading |
| 1541 | FIDO authenticator-hosted keys, overriding the default of using |
| 1542 | the built-in USB HID support. |
djm@openbsd.org | 2801375 | 2018-06-09 03:03:10 +0000 | [diff] [blame] | 1543 | .It Cm SetEnv |
| 1544 | Specifies one or more environment variables to set in child sessions started |
| 1545 | by |
| 1546 | .Xr sshd 8 |
| 1547 | as |
| 1548 | .Dq NAME=VALUE . |
| 1549 | The environment value may be quoted (e.g. if it contains whitespace |
| 1550 | characters). |
| 1551 | Environment variables set by |
| 1552 | .Cm SetEnv |
| 1553 | override the default environment and any variables specified by the user |
| 1554 | via |
| 1555 | .Cm AcceptEnv |
| 1556 | or |
| 1557 | .Cm PermitUserEnvironment . |
Damien Miller | 7acefbb | 2014-07-18 14:11:24 +1000 | [diff] [blame] | 1558 | .It Cm StreamLocalBindMask |
| 1559 | Sets the octal file creation mode mask |
| 1560 | .Pq umask |
| 1561 | used when creating a Unix-domain socket file for local or remote |
| 1562 | port forwarding. |
| 1563 | This option is only used for port forwarding to a Unix-domain socket file. |
| 1564 | .Pp |
| 1565 | The default value is 0177, which creates a Unix-domain socket file that is |
| 1566 | readable and writable only by the owner. |
| 1567 | Note that not all operating systems honor the file mode on Unix-domain |
| 1568 | socket files. |
| 1569 | .It Cm StreamLocalBindUnlink |
| 1570 | Specifies whether to remove an existing Unix-domain socket file for local |
| 1571 | or remote port forwarding before creating a new one. |
| 1572 | If the socket file already exists and |
| 1573 | .Cm StreamLocalBindUnlink |
| 1574 | is not enabled, |
| 1575 | .Nm sshd |
| 1576 | will be unable to forward the port to the Unix-domain socket file. |
| 1577 | This option is only used for port forwarding to a Unix-domain socket file. |
| 1578 | .Pp |
| 1579 | The argument must be |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 1580 | .Cm yes |
Damien Miller | 7acefbb | 2014-07-18 14:11:24 +1000 | [diff] [blame] | 1581 | or |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 1582 | .Cm no . |
Damien Miller | 7acefbb | 2014-07-18 14:11:24 +1000 | [diff] [blame] | 1583 | The default is |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 1584 | .Cm no . |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 1585 | .It Cm StrictModes |
| 1586 | Specifies whether |
Damien Miller | 5b0d63f | 2006-03-15 11:56:56 +1100 | [diff] [blame] | 1587 | .Xr sshd 8 |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 1588 | should check file modes and ownership of the |
| 1589 | user's files and home directory before accepting login. |
| 1590 | This is normally desirable because novices sometimes accidentally leave their |
| 1591 | directory or files world-writable. |
| 1592 | The default is |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 1593 | .Cm yes . |
Darren Tucker | f788a91 | 2010-01-08 17:06:47 +1100 | [diff] [blame] | 1594 | Note that this does not apply to |
| 1595 | .Cm ChrootDirectory , |
| 1596 | whose permissions and ownership are checked unconditionally. |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 1597 | .It Cm Subsystem |
Damien Miller | 208f1ed | 2006-03-15 11:56:03 +1100 | [diff] [blame] | 1598 | Configures an external subsystem (e.g. file transfer daemon). |
Damien Miller | 917f9b6 | 2006-07-10 20:36:47 +1000 | [diff] [blame] | 1599 | Arguments should be a subsystem name and a command (with optional arguments) |
| 1600 | to execute upon subsystem request. |
Damien Miller | d8cb1f1 | 2008-02-10 22:40:12 +1100 | [diff] [blame] | 1601 | .Pp |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 1602 | The command |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 1603 | .Cm sftp-server |
| 1604 | implements the SFTP file transfer subsystem. |
Damien Miller | d8cb1f1 | 2008-02-10 22:40:12 +1100 | [diff] [blame] | 1605 | .Pp |
| 1606 | Alternately the name |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 1607 | .Cm internal-sftp |
| 1608 | implements an in-process SFTP server. |
Damien Miller | d8cb1f1 | 2008-02-10 22:40:12 +1100 | [diff] [blame] | 1609 | This may simplify configurations using |
| 1610 | .Cm ChrootDirectory |
| 1611 | to force a different filesystem root on clients. |
| 1612 | .Pp |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 1613 | By default no subsystems are defined. |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 1614 | .It Cm SyslogFacility |
| 1615 | Gives the facility code that is used when logging messages from |
Damien Miller | f4f22b5 | 2006-03-15 11:57:25 +1100 | [diff] [blame] | 1616 | .Xr sshd 8 . |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 1617 | The possible values are: DAEMON, USER, AUTH, LOCAL0, LOCAL1, LOCAL2, |
| 1618 | LOCAL3, LOCAL4, LOCAL5, LOCAL6, LOCAL7. |
| 1619 | The default is AUTH. |
Damien Miller | 12c150e | 2003-12-17 16:31:10 +1100 | [diff] [blame] | 1620 | .It Cm TCPKeepAlive |
| 1621 | Specifies whether the system should send TCP keepalive messages to the |
| 1622 | other side. |
| 1623 | If they are sent, death of the connection or crash of one |
| 1624 | of the machines will be properly noticed. |
| 1625 | However, this means that |
| 1626 | connections will die if the route is down temporarily, and some people |
| 1627 | find it annoying. |
| 1628 | On the other hand, if TCP keepalives are not sent, |
| 1629 | sessions may hang indefinitely on the server, leaving |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 1630 | .Qq ghost |
Damien Miller | 12c150e | 2003-12-17 16:31:10 +1100 | [diff] [blame] | 1631 | users and consuming server resources. |
| 1632 | .Pp |
| 1633 | The default is |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 1634 | .Cm yes |
Damien Miller | 12c150e | 2003-12-17 16:31:10 +1100 | [diff] [blame] | 1635 | (to send TCP keepalive messages), and the server will notice |
| 1636 | if the network goes down or the client host crashes. |
| 1637 | This avoids infinitely hanging sessions. |
| 1638 | .Pp |
| 1639 | To disable TCP keepalive messages, the value should be set to |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 1640 | .Cm no . |
Damien Miller | 1aed65e | 2010-03-04 21:53:35 +1100 | [diff] [blame] | 1641 | .It Cm TrustedUserCAKeys |
| 1642 | Specifies a file containing public keys of certificate authorities that are |
dtucker@openbsd.org | 6cc7cfa | 2015-04-16 23:25:50 +0000 | [diff] [blame] | 1643 | trusted to sign user certificates for authentication, or |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 1644 | .Cm none |
dtucker@openbsd.org | 6cc7cfa | 2015-04-16 23:25:50 +0000 | [diff] [blame] | 1645 | to not use one. |
Damien Miller | 72b3382 | 2010-03-05 07:39:01 +1100 | [diff] [blame] | 1646 | Keys are listed one per line; empty lines and comments starting with |
Damien Miller | 1aed65e | 2010-03-04 21:53:35 +1100 | [diff] [blame] | 1647 | .Ql # |
| 1648 | are allowed. |
| 1649 | If a certificate is presented for authentication and has its signing CA key |
| 1650 | listed in this file, then it may be used for authentication for any user |
| 1651 | listed in the certificate's principals list. |
| 1652 | Note that certificates that lack a list of principals will not be permitted |
| 1653 | for authentication using |
| 1654 | .Cm TrustedUserCAKeys . |
Damien Miller | fecfd11 | 2013-07-18 16:11:50 +1000 | [diff] [blame] | 1655 | For more details on certificates, see the CERTIFICATES section in |
Damien Miller | 1aed65e | 2010-03-04 21:53:35 +1100 | [diff] [blame] | 1656 | .Xr ssh-keygen 1 . |
Damien Miller | 3a961dc | 2003-06-03 10:25:48 +1000 | [diff] [blame] | 1657 | .It Cm UseDNS |
| 1658 | Specifies whether |
Damien Miller | 5b0d63f | 2006-03-15 11:56:56 +1100 | [diff] [blame] | 1659 | .Xr sshd 8 |
djm@openbsd.org | c63c9a6 | 2015-07-20 00:30:01 +0000 | [diff] [blame] | 1660 | should look up the remote host name, and to check that |
Damien Miller | 3a961dc | 2003-06-03 10:25:48 +1000 | [diff] [blame] | 1661 | the resolved host name for the remote IP address maps back to the |
| 1662 | very same IP address. |
djm@openbsd.org | c63c9a6 | 2015-07-20 00:30:01 +0000 | [diff] [blame] | 1663 | .Pp |
| 1664 | If this option is set to |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 1665 | .Cm no |
djm@openbsd.org | c63c9a6 | 2015-07-20 00:30:01 +0000 | [diff] [blame] | 1666 | (the default) then only addresses and not host names may be used in |
djm@openbsd.org | 0235a5f | 2016-03-17 17:19:43 +0000 | [diff] [blame] | 1667 | .Pa ~/.ssh/authorized_keys |
djm@openbsd.org | c63c9a6 | 2015-07-20 00:30:01 +0000 | [diff] [blame] | 1668 | .Cm from |
| 1669 | and |
jmc@openbsd.org | 1f8d3d6 | 2015-08-14 15:32:41 +0000 | [diff] [blame] | 1670 | .Nm |
djm@openbsd.org | c63c9a6 | 2015-07-20 00:30:01 +0000 | [diff] [blame] | 1671 | .Cm Match |
| 1672 | .Cm Host |
| 1673 | directives. |
Damien Miller | 2e193e2 | 2003-05-14 15:13:03 +1000 | [diff] [blame] | 1674 | .It Cm UsePAM |
Darren Tucker | 1dcff9a | 2004-05-13 16:51:40 +1000 | [diff] [blame] | 1675 | Enables the Pluggable Authentication Module interface. |
| 1676 | If set to |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 1677 | .Cm yes |
Darren Tucker | 1dcff9a | 2004-05-13 16:51:40 +1000 | [diff] [blame] | 1678 | this will enable PAM authentication using |
| 1679 | .Cm ChallengeResponseAuthentication |
Darren Tucker | a4904f7 | 2006-02-23 21:35:30 +1100 | [diff] [blame] | 1680 | and |
| 1681 | .Cm PasswordAuthentication |
| 1682 | in addition to PAM account and session module processing for all |
| 1683 | authentication types. |
Darren Tucker | 1dcff9a | 2004-05-13 16:51:40 +1000 | [diff] [blame] | 1684 | .Pp |
| 1685 | Because PAM challenge-response authentication usually serves an equivalent |
| 1686 | role to password authentication, you should disable either |
| 1687 | .Cm PasswordAuthentication |
| 1688 | or |
| 1689 | .Cm ChallengeResponseAuthentication. |
| 1690 | .Pp |
| 1691 | If |
| 1692 | .Cm UsePAM |
| 1693 | is enabled, you will not be able to run |
| 1694 | .Xr sshd 8 |
| 1695 | as a non-root user. |
| 1696 | The default is |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 1697 | .Cm no . |
Damien Miller | 2352881 | 2012-04-22 11:24:43 +1000 | [diff] [blame] | 1698 | .It Cm VersionAddendum |
| 1699 | Optionally specifies additional text to append to the SSH protocol banner |
| 1700 | sent by the server upon connection. |
| 1701 | The default is |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 1702 | .Cm none . |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 1703 | .It Cm X11DisplayOffset |
| 1704 | Specifies the first display number available for |
Damien Miller | 5b0d63f | 2006-03-15 11:56:56 +1100 | [diff] [blame] | 1705 | .Xr sshd 8 Ns 's |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 1706 | X11 forwarding. |
Damien Miller | 5b0d63f | 2006-03-15 11:56:56 +1100 | [diff] [blame] | 1707 | This prevents sshd from interfering with real X11 servers. |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 1708 | The default is 10. |
| 1709 | .It Cm X11Forwarding |
| 1710 | Specifies whether X11 forwarding is permitted. |
Damien Miller | 101c4a7 | 2002-09-19 11:51:21 +1000 | [diff] [blame] | 1711 | The argument must be |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 1712 | .Cm yes |
Damien Miller | 101c4a7 | 2002-09-19 11:51:21 +1000 | [diff] [blame] | 1713 | or |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 1714 | .Cm no . |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 1715 | The default is |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 1716 | .Cm no . |
Damien Miller | 101c4a7 | 2002-09-19 11:51:21 +1000 | [diff] [blame] | 1717 | .Pp |
| 1718 | When X11 forwarding is enabled, there may be additional exposure to |
| 1719 | the server and to client displays if the |
Damien Miller | 5b0d63f | 2006-03-15 11:56:56 +1100 | [diff] [blame] | 1720 | .Xr sshd 8 |
Damien Miller | 101c4a7 | 2002-09-19 11:51:21 +1000 | [diff] [blame] | 1721 | proxy display is configured to listen on the wildcard address (see |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 1722 | .Cm X11UseLocalhost ) , |
| 1723 | though this is not the default. |
Damien Miller | 101c4a7 | 2002-09-19 11:51:21 +1000 | [diff] [blame] | 1724 | Additionally, the authentication spoofing and authentication data |
| 1725 | verification and substitution occur on the client side. |
| 1726 | The security risk of using X11 forwarding is that the client's X11 |
Damien Miller | 5b0d63f | 2006-03-15 11:56:56 +1100 | [diff] [blame] | 1727 | display server may be exposed to attack when the SSH client requests |
Damien Miller | 101c4a7 | 2002-09-19 11:51:21 +1000 | [diff] [blame] | 1728 | forwarding (see the warnings for |
| 1729 | .Cm ForwardX11 |
| 1730 | in |
Damien Miller | f1ce505 | 2003-06-11 22:04:39 +1000 | [diff] [blame] | 1731 | .Xr ssh_config 5 ) . |
Damien Miller | 101c4a7 | 2002-09-19 11:51:21 +1000 | [diff] [blame] | 1732 | A system administrator may have a stance in which they want to |
| 1733 | protect clients that may expose themselves to attack by unwittingly |
| 1734 | requesting X11 forwarding, which can warrant a |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 1735 | .Cm no |
Damien Miller | 101c4a7 | 2002-09-19 11:51:21 +1000 | [diff] [blame] | 1736 | setting. |
| 1737 | .Pp |
| 1738 | Note that disabling X11 forwarding does not prevent users from |
| 1739 | forwarding X11 traffic, as users can always install their own forwarders. |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 1740 | .It Cm X11UseLocalhost |
| 1741 | Specifies whether |
Damien Miller | 5b0d63f | 2006-03-15 11:56:56 +1100 | [diff] [blame] | 1742 | .Xr sshd 8 |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 1743 | should bind the X11 forwarding server to the loopback address or to |
Damien Miller | 495dca3 | 2003-04-01 21:42:14 +1000 | [diff] [blame] | 1744 | the wildcard address. |
| 1745 | By default, |
Damien Miller | 5b0d63f | 2006-03-15 11:56:56 +1100 | [diff] [blame] | 1746 | sshd binds the forwarding server to the loopback address and sets the |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 1747 | hostname part of the |
| 1748 | .Ev DISPLAY |
| 1749 | environment variable to |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 1750 | .Cm localhost . |
Ben Lindstrom | 15b6120 | 2002-08-20 18:44:24 +0000 | [diff] [blame] | 1751 | This prevents remote hosts from connecting to the proxy display. |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 1752 | However, some older X11 clients may not function with this |
| 1753 | configuration. |
| 1754 | .Cm X11UseLocalhost |
| 1755 | may be set to |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 1756 | .Cm no |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 1757 | to specify that the forwarding server should be bound to the wildcard |
| 1758 | address. |
| 1759 | The argument must be |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 1760 | .Cm yes |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 1761 | or |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 1762 | .Cm no . |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 1763 | The default is |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 1764 | .Cm yes . |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 1765 | .It Cm XAuthLocation |
Damien Miller | 05913ba | 2002-09-04 16:51:03 +1000 | [diff] [blame] | 1766 | Specifies the full pathname of the |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 1767 | .Xr xauth 1 |
dtucker@openbsd.org | 6cc7cfa | 2015-04-16 23:25:50 +0000 | [diff] [blame] | 1768 | program, or |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 1769 | .Cm none |
dtucker@openbsd.org | 6cc7cfa | 2015-04-16 23:25:50 +0000 | [diff] [blame] | 1770 | to not use one. |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 1771 | The default is |
| 1772 | .Pa /usr/X11R6/bin/xauth . |
| 1773 | .El |
Damien Miller | e3beba2 | 2006-03-15 11:59:25 +1100 | [diff] [blame] | 1774 | .Sh TIME FORMATS |
Damien Miller | f4f22b5 | 2006-03-15 11:57:25 +1100 | [diff] [blame] | 1775 | .Xr sshd 8 |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 1776 | command-line arguments and configuration file options that specify time |
| 1777 | may be expressed using a sequence of the form: |
| 1778 | .Sm off |
Ben Lindstrom | 1f8cf4f | 2002-08-20 18:43:27 +0000 | [diff] [blame] | 1779 | .Ar time Op Ar qualifier , |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 1780 | .Sm on |
| 1781 | where |
| 1782 | .Ar time |
| 1783 | is a positive integer value and |
| 1784 | .Ar qualifier |
| 1785 | is one of the following: |
| 1786 | .Pp |
| 1787 | .Bl -tag -width Ds -compact -offset indent |
Damien Miller | 393821a | 2006-07-24 14:04:53 +1000 | [diff] [blame] | 1788 | .It Aq Cm none |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 1789 | seconds |
| 1790 | .It Cm s | Cm S |
| 1791 | seconds |
| 1792 | .It Cm m | Cm M |
| 1793 | minutes |
| 1794 | .It Cm h | Cm H |
| 1795 | hours |
| 1796 | .It Cm d | Cm D |
| 1797 | days |
| 1798 | .It Cm w | Cm W |
| 1799 | weeks |
| 1800 | .El |
| 1801 | .Pp |
| 1802 | Each member of the sequence is added together to calculate |
| 1803 | the total time value. |
| 1804 | .Pp |
| 1805 | Time format examples: |
| 1806 | .Pp |
| 1807 | .Bl -tag -width Ds -compact -offset indent |
| 1808 | .It 600 |
| 1809 | 600 seconds (10 minutes) |
| 1810 | .It 10m |
| 1811 | 10 minutes |
| 1812 | .It 1h30m |
| 1813 | 1 hour 30 minutes (90 minutes) |
| 1814 | .El |
jmc@openbsd.org | de6a175 | 2016-09-22 19:19:01 +0000 | [diff] [blame] | 1815 | .Sh TOKENS |
| 1816 | Arguments to some keywords can make use of tokens, |
| 1817 | which are expanded at runtime: |
| 1818 | .Pp |
| 1819 | .Bl -tag -width XXXX -offset indent -compact |
| 1820 | .It %% |
| 1821 | A literal |
| 1822 | .Sq % . |
djm@openbsd.org | 35eb33f | 2017-10-25 00:17:08 +0000 | [diff] [blame] | 1823 | .It \&%D |
| 1824 | The routing domain in which the incoming connection was received. |
jmc@openbsd.org | de6a175 | 2016-09-22 19:19:01 +0000 | [diff] [blame] | 1825 | .It %F |
| 1826 | The fingerprint of the CA key. |
| 1827 | .It %f |
| 1828 | The fingerprint of the key or certificate. |
| 1829 | .It %h |
| 1830 | The home directory of the user. |
| 1831 | .It %i |
| 1832 | The key ID in the certificate. |
| 1833 | .It %K |
| 1834 | The base64-encoded CA key. |
| 1835 | .It %k |
| 1836 | The base64-encoded key or certificate for authentication. |
| 1837 | .It %s |
| 1838 | The serial number of the certificate. |
| 1839 | .It \&%T |
| 1840 | The type of the CA key. |
| 1841 | .It %t |
| 1842 | The key or certificate type. |
jmc@openbsd.org | 2940284 | 2018-06-01 05:50:18 +0000 | [diff] [blame] | 1843 | .It \&%U |
| 1844 | The numeric user ID of the target user. |
jmc@openbsd.org | de6a175 | 2016-09-22 19:19:01 +0000 | [diff] [blame] | 1845 | .It %u |
| 1846 | The username. |
| 1847 | .El |
| 1848 | .Pp |
| 1849 | .Cm AuthorizedKeysCommand |
jmc@openbsd.org | e8d59fe | 2018-06-01 06:23:10 +0000 | [diff] [blame] | 1850 | accepts the tokens %%, %f, %h, %k, %t, %U, and %u. |
jmc@openbsd.org | de6a175 | 2016-09-22 19:19:01 +0000 | [diff] [blame] | 1851 | .Pp |
| 1852 | .Cm AuthorizedKeysFile |
jmc@openbsd.org | e8d59fe | 2018-06-01 06:23:10 +0000 | [diff] [blame] | 1853 | accepts the tokens %%, %h, %U, and %u. |
jmc@openbsd.org | de6a175 | 2016-09-22 19:19:01 +0000 | [diff] [blame] | 1854 | .Pp |
| 1855 | .Cm AuthorizedPrincipalsCommand |
jmc@openbsd.org | e8d59fe | 2018-06-01 06:23:10 +0000 | [diff] [blame] | 1856 | accepts the tokens %%, %F, %f, %h, %i, %K, %k, %s, %T, %t, %U, and %u. |
jmc@openbsd.org | de6a175 | 2016-09-22 19:19:01 +0000 | [diff] [blame] | 1857 | .Pp |
| 1858 | .Cm AuthorizedPrincipalsFile |
jmc@openbsd.org | e8d59fe | 2018-06-01 06:23:10 +0000 | [diff] [blame] | 1859 | accepts the tokens %%, %h, %U, and %u. |
jmc@openbsd.org | de6a175 | 2016-09-22 19:19:01 +0000 | [diff] [blame] | 1860 | .Pp |
| 1861 | .Cm ChrootDirectory |
jmc@openbsd.org | e8d59fe | 2018-06-01 06:23:10 +0000 | [diff] [blame] | 1862 | accepts the tokens %%, %h, %U, and %u. |
djm@openbsd.org | 35eb33f | 2017-10-25 00:17:08 +0000 | [diff] [blame] | 1863 | .Pp |
| 1864 | .Cm RoutingDomain |
| 1865 | accepts the token %D. |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 1866 | .Sh FILES |
| 1867 | .Bl -tag -width Ds |
| 1868 | .It Pa /etc/ssh/sshd_config |
| 1869 | Contains configuration data for |
Damien Miller | f4f22b5 | 2006-03-15 11:57:25 +1100 | [diff] [blame] | 1870 | .Xr sshd 8 . |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 1871 | This file should be writable by root only, but it is recommended |
| 1872 | (though not necessary) that it be world-readable. |
| 1873 | .El |
Damien Miller | f1ce505 | 2003-06-11 22:04:39 +1000 | [diff] [blame] | 1874 | .Sh SEE ALSO |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 1875 | .Xr sftp-server 8 , |
Damien Miller | f1ce505 | 2003-06-11 22:04:39 +1000 | [diff] [blame] | 1876 | .Xr sshd 8 |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 1877 | .Sh AUTHORS |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 1878 | .An -nosplit |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 1879 | OpenSSH is a derivative of the original and free |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 1880 | ssh 1.2.12 release by |
| 1881 | .An Tatu Ylonen . |
| 1882 | .An Aaron Campbell , Bob Beck , Markus Friedl , Niels Provos , |
| 1883 | .An Theo de Raadt |
| 1884 | and |
| 1885 | .An Dug Song |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 1886 | removed many bugs, re-added newer features and |
| 1887 | created OpenSSH. |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 1888 | .An Markus Friedl |
| 1889 | contributed the support for SSH protocol versions 1.5 and 2.0. |
| 1890 | .An Niels Provos |
| 1891 | and |
| 1892 | .An Markus Friedl |
| 1893 | contributed support for privilege separation. |