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