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 | .\" |
djm@openbsd.org | acaf34f | 2017-05-07 23:12:57 +0000 | [diff] [blame] | 36 | .\" $OpenBSD: sshd_config.5,v 1.244 2017/05/07 23:12:57 djm Exp $ |
| 37 | .Dd $Mdocdate: May 7 2017 $ |
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. |
djm@openbsd.org | 68bc8cf | 2017-02-03 23:01:19 +0000 | [diff] [blame] | 440 | If the specified value begins with a |
| 441 | .Sq - |
| 442 | character, then the specified ciphers (including wildcards) will be removed |
| 443 | from the default set instead of replacing them. |
djm@openbsd.org | f9eca24 | 2015-07-30 00:01:34 +0000 | [diff] [blame] | 444 | .Pp |
Damien Miller | 0fde8ac | 2013-11-21 14:12:23 +1100 | [diff] [blame] | 445 | The supported ciphers are: |
| 446 | .Pp |
Damien Miller | c1621c8 | 2014-04-20 13:22:46 +1000 | [diff] [blame] | 447 | .Bl -item -compact -offset indent |
| 448 | .It |
| 449 | 3des-cbc |
| 450 | .It |
| 451 | aes128-cbc |
| 452 | .It |
| 453 | aes192-cbc |
| 454 | .It |
| 455 | aes256-cbc |
| 456 | .It |
| 457 | aes128-ctr |
| 458 | .It |
| 459 | aes192-ctr |
| 460 | .It |
| 461 | aes256-ctr |
| 462 | .It |
| 463 | aes128-gcm@openssh.com |
| 464 | .It |
| 465 | aes256-gcm@openssh.com |
| 466 | .It |
Damien Miller | c1621c8 | 2014-04-20 13:22:46 +1000 | [diff] [blame] | 467 | chacha20-poly1305@openssh.com |
| 468 | .El |
Damien Miller | 0fde8ac | 2013-11-21 14:12:23 +1100 | [diff] [blame] | 469 | .Pp |
Damien Miller | 5b0d63f | 2006-03-15 11:56:56 +1100 | [diff] [blame] | 470 | The default is: |
Damien Miller | c1621c8 | 2014-04-20 13:22:46 +1000 | [diff] [blame] | 471 | .Bd -literal -offset indent |
jmc@openbsd.org | 1f8d3d6 | 2015-08-14 15:32:41 +0000 | [diff] [blame] | 472 | chacha20-poly1305@openssh.com, |
Damien Miller | c1621c8 | 2014-04-20 13:22:46 +1000 | [diff] [blame] | 473 | aes128-ctr,aes192-ctr,aes256-ctr, |
jmc@openbsd.org | 1f8d3d6 | 2015-08-14 15:32:41 +0000 | [diff] [blame] | 474 | aes128-gcm@openssh.com,aes256-gcm@openssh.com |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 475 | .Ed |
Damien Miller | 0fde8ac | 2013-11-21 14:12:23 +1100 | [diff] [blame] | 476 | .Pp |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 477 | The list of available ciphers may also be obtained using |
| 478 | .Qq ssh -Q cipher . |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 479 | .It Cm ClientAliveCountMax |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 480 | Sets the number of client alive messages which may be sent without |
Damien Miller | 5b0d63f | 2006-03-15 11:56:56 +1100 | [diff] [blame] | 481 | .Xr sshd 8 |
Damien Miller | fbf486b | 2003-05-23 18:44:23 +1000 | [diff] [blame] | 482 | receiving any messages back from the client. |
| 483 | If this threshold is reached while client alive messages are being sent, |
Damien Miller | 5b0d63f | 2006-03-15 11:56:56 +1100 | [diff] [blame] | 484 | sshd will disconnect the client, terminating the session. |
Damien Miller | fbf486b | 2003-05-23 18:44:23 +1000 | [diff] [blame] | 485 | It is important to note that the use of client alive messages is very |
| 486 | different from |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 487 | .Cm TCPKeepAlive . |
Damien Miller | fbf486b | 2003-05-23 18:44:23 +1000 | [diff] [blame] | 488 | The client alive messages are sent through the encrypted channel |
| 489 | and therefore will not be spoofable. |
| 490 | The TCP keepalive option enabled by |
Damien Miller | 12c150e | 2003-12-17 16:31:10 +1100 | [diff] [blame] | 491 | .Cm TCPKeepAlive |
Damien Miller | fbf486b | 2003-05-23 18:44:23 +1000 | [diff] [blame] | 492 | is spoofable. |
| 493 | The client alive mechanism is valuable when the client or |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 494 | server depend on knowing when a connection has become inactive. |
| 495 | .Pp |
Damien Miller | fbf486b | 2003-05-23 18:44:23 +1000 | [diff] [blame] | 496 | The default value is 3. |
| 497 | If |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 498 | .Cm ClientAliveInterval |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 499 | is set to 15, and |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 500 | .Cm ClientAliveCountMax |
Damien Miller | 5b0d63f | 2006-03-15 11:56:56 +1100 | [diff] [blame] | 501 | is left at the default, unresponsive SSH clients |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 502 | will be disconnected after approximately 45 seconds. |
Damien Miller | 1594ad5 | 2005-05-26 12:12:19 +1000 | [diff] [blame] | 503 | .It Cm ClientAliveInterval |
| 504 | Sets a timeout interval in seconds after which if no data has been received |
| 505 | from the client, |
Damien Miller | 5b0d63f | 2006-03-15 11:56:56 +1100 | [diff] [blame] | 506 | .Xr sshd 8 |
Damien Miller | 1594ad5 | 2005-05-26 12:12:19 +1000 | [diff] [blame] | 507 | will send a message through the encrypted |
| 508 | channel to request a response from the client. |
| 509 | The default |
| 510 | 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] | 511 | .It Cm Compression |
djm@openbsd.org | 4577ade | 2016-09-28 20:32:42 +0000 | [diff] [blame] | 512 | Specifies whether compression is enabled after |
Damien Miller | 9786e6e | 2005-07-26 21:54:56 +1000 | [diff] [blame] | 513 | the user has authenticated successfully. |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 514 | The argument must be |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 515 | .Cm yes , |
| 516 | .Cm delayed |
djm@openbsd.org | 4577ade | 2016-09-28 20:32:42 +0000 | [diff] [blame] | 517 | (a legacy synonym for |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 518 | .Cm yes ) |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 519 | or |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 520 | .Cm no . |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 521 | The default is |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 522 | .Cm yes . |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 523 | .It Cm DenyGroups |
| 524 | This keyword can be followed by a list of group name patterns, separated |
| 525 | by spaces. |
| 526 | Login is disallowed for users whose primary group or supplementary |
| 527 | group list matches one of the patterns. |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 528 | Only group names are valid; a numerical group ID is not recognized. |
| 529 | By default, login is allowed for all groups. |
Damien Miller | ac73e51 | 2006-03-15 11:58:49 +1100 | [diff] [blame] | 530 | The allow/deny directives are processed in the following order: |
| 531 | .Cm DenyUsers , |
| 532 | .Cm AllowUsers , |
| 533 | .Cm DenyGroups , |
| 534 | and finally |
| 535 | .Cm AllowGroups . |
Damien Miller | 0c2079d | 2006-03-15 11:54:21 +1100 | [diff] [blame] | 536 | .Pp |
Damien Miller | fecfd11 | 2013-07-18 16:11:50 +1000 | [diff] [blame] | 537 | See PATTERNS in |
Damien Miller | 0c2079d | 2006-03-15 11:54:21 +1100 | [diff] [blame] | 538 | .Xr ssh_config 5 |
| 539 | for more information on patterns. |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 540 | .It Cm DenyUsers |
| 541 | This keyword can be followed by a list of user name patterns, separated |
| 542 | by spaces. |
| 543 | Login is disallowed for user names that match one of the patterns. |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 544 | Only user names are valid; a numerical user ID is not recognized. |
| 545 | By default, login is allowed for all users. |
| 546 | If the pattern takes the form USER@HOST then USER and HOST |
| 547 | are separately checked, restricting logins to particular |
| 548 | users from particular hosts. |
jmc@openbsd.org | ee1e0a1 | 2016-04-27 13:53:48 +0000 | [diff] [blame] | 549 | HOST criteria may additionally contain addresses to match in CIDR |
| 550 | address/masklen format. |
Damien Miller | ac73e51 | 2006-03-15 11:58:49 +1100 | [diff] [blame] | 551 | The allow/deny directives are processed in the following order: |
| 552 | .Cm DenyUsers , |
| 553 | .Cm AllowUsers , |
| 554 | .Cm DenyGroups , |
| 555 | and finally |
| 556 | .Cm AllowGroups . |
Damien Miller | 0c2079d | 2006-03-15 11:54:21 +1100 | [diff] [blame] | 557 | .Pp |
Damien Miller | fecfd11 | 2013-07-18 16:11:50 +1000 | [diff] [blame] | 558 | See PATTERNS in |
Damien Miller | 0c2079d | 2006-03-15 11:54:21 +1100 | [diff] [blame] | 559 | .Xr ssh_config 5 |
| 560 | for more information on patterns. |
djm@openbsd.org | 7844f35 | 2016-11-30 03:00:05 +0000 | [diff] [blame] | 561 | .It Cm DisableForwarding |
| 562 | Disables all forwarding features, including X11, |
| 563 | .Xr ssh-agent 1 , |
| 564 | TCP and StreamLocal. |
| 565 | This option overrides all other forwarding-related options and may |
| 566 | simplify restricted configurations. |
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. |
djm@openbsd.org | 68bc8cf | 2017-02-03 23:01:19 +0000 | [diff] [blame] | 646 | If the specified value begins with a |
| 647 | .Sq - |
| 648 | character, then the specified key types (including wildcards) will be removed |
| 649 | from the default set instead of replacing them. |
markus@openbsd.org | 3a1638d | 2015-07-10 06:21:53 +0000 | [diff] [blame] | 650 | The default for this option is: |
| 651 | .Bd -literal -offset 3n |
| 652 | ecdsa-sha2-nistp256-cert-v01@openssh.com, |
| 653 | ecdsa-sha2-nistp384-cert-v01@openssh.com, |
| 654 | ecdsa-sha2-nistp521-cert-v01@openssh.com, |
| 655 | ssh-ed25519-cert-v01@openssh.com, |
| 656 | ssh-rsa-cert-v01@openssh.com, |
| 657 | ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521, |
djm@openbsd.org | 3a13cb5 | 2016-02-17 08:57:34 +0000 | [diff] [blame] | 658 | ssh-ed25519,ssh-rsa |
markus@openbsd.org | 3a1638d | 2015-07-10 06:21:53 +0000 | [diff] [blame] | 659 | .Ed |
| 660 | .Pp |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 661 | The list of available key types may also be obtained using |
| 662 | .Qq ssh -Q key . |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 663 | .It Cm HostbasedAuthentication |
| 664 | Specifies whether rhosts or /etc/hosts.equiv authentication together |
| 665 | with successful public key client host authentication is allowed |
Damien Miller | 1faa713 | 2006-03-15 11:55:31 +1100 | [diff] [blame] | 666 | (host-based authentication). |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 667 | The default is |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 668 | .Cm no . |
Damien Miller | b594f38 | 2006-08-30 11:06:34 +1000 | [diff] [blame] | 669 | .It Cm HostbasedUsesNameFromPacketOnly |
| 670 | Specifies whether or not the server will attempt to perform a reverse |
| 671 | name lookup when matching the name in the |
| 672 | .Pa ~/.shosts , |
| 673 | .Pa ~/.rhosts , |
| 674 | and |
| 675 | .Pa /etc/hosts.equiv |
| 676 | files during |
| 677 | .Cm HostbasedAuthentication . |
| 678 | A setting of |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 679 | .Cm yes |
Damien Miller | b594f38 | 2006-08-30 11:06:34 +1000 | [diff] [blame] | 680 | means that |
| 681 | .Xr sshd 8 |
| 682 | uses the name supplied by the client rather than |
| 683 | attempting to resolve the name from the TCP connection itself. |
| 684 | The default is |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 685 | .Cm no . |
Damien Miller | 0a80ca1 | 2010-02-27 07:55:05 +1100 | [diff] [blame] | 686 | .It Cm HostCertificate |
| 687 | Specifies a file containing a public host certificate. |
| 688 | The certificate's public key must match a private host key already specified |
| 689 | by |
| 690 | .Cm HostKey . |
| 691 | The default behaviour of |
| 692 | .Xr sshd 8 |
| 693 | is not to load any certificates. |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 694 | .It Cm HostKey |
| 695 | Specifies a file containing a private host key |
| 696 | used by SSH. |
naddy@openbsd.org | ffe6549 | 2016-08-15 12:32:04 +0000 | [diff] [blame] | 697 | The defaults are |
Damien Miller | eb8b60e | 2010-08-31 22:41:14 +1000 | [diff] [blame] | 698 | .Pa /etc/ssh/ssh_host_dsa_key , |
Damien Miller | 8ba0ead | 2013-12-18 17:46:27 +1100 | [diff] [blame] | 699 | .Pa /etc/ssh/ssh_host_ecdsa_key , |
| 700 | .Pa /etc/ssh/ssh_host_ed25519_key |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 701 | and |
naddy@openbsd.org | ffe6549 | 2016-08-15 12:32:04 +0000 | [diff] [blame] | 702 | .Pa /etc/ssh/ssh_host_rsa_key . |
markus@openbsd.org | 3a1638d | 2015-07-10 06:21:53 +0000 | [diff] [blame] | 703 | .Pp |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 704 | Note that |
Damien Miller | 5b0d63f | 2006-03-15 11:56:56 +1100 | [diff] [blame] | 705 | .Xr sshd 8 |
markus@openbsd.org | 3a1638d | 2015-07-10 06:21:53 +0000 | [diff] [blame] | 706 | will refuse to use a file if it is group/world-accessible |
| 707 | and that the |
| 708 | .Cm HostKeyAlgorithms |
| 709 | option restricts which of the keys are actually used by |
| 710 | .Xr sshd 8 . |
| 711 | .Pp |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 712 | It is possible to have multiple host key files. |
Damien Miller | 85b45e0 | 2013-07-20 13:21:52 +1000 | [diff] [blame] | 713 | It is also possible to specify public host key files instead. |
| 714 | In this case operations on the private key will be delegated |
| 715 | to an |
| 716 | .Xr ssh-agent 1 . |
| 717 | .It Cm HostKeyAgent |
| 718 | Identifies the UNIX-domain socket used to communicate |
| 719 | with an agent that has access to the private host keys. |
markus@openbsd.org | 1a75d14 | 2016-05-04 14:29:58 +0000 | [diff] [blame] | 720 | If the string |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 721 | .Qq SSH_AUTH_SOCK |
Damien Miller | 85b45e0 | 2013-07-20 13:21:52 +1000 | [diff] [blame] | 722 | is specified, the location of the socket will be read from the |
| 723 | .Ev SSH_AUTH_SOCK |
| 724 | environment variable. |
markus@openbsd.org | 3a1638d | 2015-07-10 06:21:53 +0000 | [diff] [blame] | 725 | .It Cm HostKeyAlgorithms |
jmc@openbsd.org | a685ae8 | 2016-02-17 07:38:19 +0000 | [diff] [blame] | 726 | Specifies the host key algorithms |
markus@openbsd.org | 3a1638d | 2015-07-10 06:21:53 +0000 | [diff] [blame] | 727 | that the server offers. |
| 728 | The default for this option is: |
| 729 | .Bd -literal -offset 3n |
| 730 | ecdsa-sha2-nistp256-cert-v01@openssh.com, |
| 731 | ecdsa-sha2-nistp384-cert-v01@openssh.com, |
| 732 | ecdsa-sha2-nistp521-cert-v01@openssh.com, |
| 733 | ssh-ed25519-cert-v01@openssh.com, |
| 734 | ssh-rsa-cert-v01@openssh.com, |
| 735 | ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521, |
djm@openbsd.org | 3a13cb5 | 2016-02-17 08:57:34 +0000 | [diff] [blame] | 736 | ssh-ed25519,ssh-rsa |
markus@openbsd.org | 3a1638d | 2015-07-10 06:21:53 +0000 | [diff] [blame] | 737 | .Ed |
| 738 | .Pp |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 739 | The list of available key types may also be obtained using |
| 740 | .Qq ssh -Q key . |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 741 | .It Cm IgnoreRhosts |
| 742 | Specifies that |
| 743 | .Pa .rhosts |
| 744 | and |
| 745 | .Pa .shosts |
| 746 | files will not be used in |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 747 | .Cm HostbasedAuthentication . |
| 748 | .Pp |
| 749 | .Pa /etc/hosts.equiv |
| 750 | and |
| 751 | .Pa /etc/shosts.equiv |
| 752 | are still used. |
| 753 | The default is |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 754 | .Cm yes . |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 755 | .It Cm IgnoreUserKnownHosts |
| 756 | Specifies whether |
Damien Miller | 5b0d63f | 2006-03-15 11:56:56 +1100 | [diff] [blame] | 757 | .Xr sshd 8 |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 758 | should ignore the user's |
Damien Miller | 167ea5d | 2005-05-26 12:04:02 +1000 | [diff] [blame] | 759 | .Pa ~/.ssh/known_hosts |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 760 | during |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 761 | .Cm HostbasedAuthentication . |
| 762 | The default is |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 763 | .Cm no . |
Damien Miller | 0dac6fb | 2010-11-20 15:19:38 +1100 | [diff] [blame] | 764 | .It Cm IPQoS |
| 765 | Specifies the IPv4 type-of-service or DSCP class for the connection. |
| 766 | Accepted values are |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 767 | .Cm af11 , |
| 768 | .Cm af12 , |
| 769 | .Cm af13 , |
| 770 | .Cm af21 , |
| 771 | .Cm af22 , |
| 772 | .Cm af23 , |
| 773 | .Cm af31 , |
| 774 | .Cm af32 , |
| 775 | .Cm af33 , |
| 776 | .Cm af41 , |
| 777 | .Cm af42 , |
| 778 | .Cm af43 , |
| 779 | .Cm cs0 , |
| 780 | .Cm cs1 , |
| 781 | .Cm cs2 , |
| 782 | .Cm cs3 , |
| 783 | .Cm cs4 , |
| 784 | .Cm cs5 , |
| 785 | .Cm cs6 , |
| 786 | .Cm cs7 , |
| 787 | .Cm ef , |
| 788 | .Cm lowdelay , |
| 789 | .Cm throughput , |
| 790 | .Cm reliability , |
Damien Miller | 0dac6fb | 2010-11-20 15:19:38 +1100 | [diff] [blame] | 791 | or a numeric value. |
Damien Miller | 928362d | 2010-12-26 14:26:45 +1100 | [diff] [blame] | 792 | This option may take one or two arguments, separated by whitespace. |
Damien Miller | 0dac6fb | 2010-11-20 15:19:38 +1100 | [diff] [blame] | 793 | If one argument is specified, it is used as the packet class unconditionally. |
| 794 | If two values are specified, the first is automatically selected for |
| 795 | interactive sessions and the second for non-interactive sessions. |
| 796 | The default is |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 797 | .Cm lowdelay |
Damien Miller | 0dac6fb | 2010-11-20 15:19:38 +1100 | [diff] [blame] | 798 | for interactive sessions and |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 799 | .Cm throughput |
Damien Miller | 0dac6fb | 2010-11-20 15:19:38 +1100 | [diff] [blame] | 800 | for non-interactive sessions. |
Damien Miller | e1e480a | 2014-02-04 11:13:17 +1100 | [diff] [blame] | 801 | .It Cm KbdInteractiveAuthentication |
| 802 | Specifies whether to allow keyboard-interactive authentication. |
| 803 | The argument to this keyword must be |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 804 | .Cm yes |
Damien Miller | e1e480a | 2014-02-04 11:13:17 +1100 | [diff] [blame] | 805 | or |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 806 | .Cm no . |
Damien Miller | e1e480a | 2014-02-04 11:13:17 +1100 | [diff] [blame] | 807 | The default is to use whatever value |
| 808 | .Cm ChallengeResponseAuthentication |
| 809 | is set to |
| 810 | (by default |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 811 | .Cm yes ) . |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 812 | .It Cm KerberosAuthentication |
Damien Miller | 1a0c0b9 | 2003-09-02 22:51:17 +1000 | [diff] [blame] | 813 | Specifies whether the password provided by the user for |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 814 | .Cm PasswordAuthentication |
Damien Miller | 1a0c0b9 | 2003-09-02 22:51:17 +1000 | [diff] [blame] | 815 | will be validated through the Kerberos KDC. |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 816 | To use this option, the server needs a |
| 817 | Kerberos servtab which allows the verification of the KDC's identity. |
Damien Miller | 5b0d63f | 2006-03-15 11:56:56 +1100 | [diff] [blame] | 818 | The default is |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 819 | .Cm no . |
Damien Miller | 8448e66 | 2004-03-08 23:13:15 +1100 | [diff] [blame] | 820 | .It Cm KerberosGetAFSToken |
Darren Tucker | e2dd2d5 | 2005-10-03 18:19:06 +1000 | [diff] [blame] | 821 | 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] | 822 | an AFS token before accessing the user's home directory. |
Damien Miller | 5b0d63f | 2006-03-15 11:56:56 +1100 | [diff] [blame] | 823 | The default is |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 824 | .Cm no . |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 825 | .It Cm KerberosOrLocalPasswd |
Damien Miller | 5b0d63f | 2006-03-15 11:56:56 +1100 | [diff] [blame] | 826 | If password authentication through Kerberos fails then |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 827 | the password will be validated via any additional local mechanism |
| 828 | such as |
| 829 | .Pa /etc/passwd . |
Damien Miller | 5b0d63f | 2006-03-15 11:56:56 +1100 | [diff] [blame] | 830 | The default is |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 831 | .Cm yes . |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 832 | .It Cm KerberosTicketCleanup |
| 833 | Specifies whether to automatically destroy the user's ticket cache |
| 834 | file on logout. |
Damien Miller | 5b0d63f | 2006-03-15 11:56:56 +1100 | [diff] [blame] | 835 | The default is |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 836 | .Cm yes . |
Damien Miller | d5f62bf | 2010-09-24 22:11:14 +1000 | [diff] [blame] | 837 | .It Cm KexAlgorithms |
| 838 | Specifies the available KEX (Key Exchange) algorithms. |
| 839 | Multiple algorithms must be comma-separated. |
djm@openbsd.org | f9eca24 | 2015-07-30 00:01:34 +0000 | [diff] [blame] | 840 | Alternately if the specified value begins with a |
| 841 | .Sq + |
| 842 | character, then the specified methods will be appended to the default set |
| 843 | instead of replacing them. |
djm@openbsd.org | 68bc8cf | 2017-02-03 23:01:19 +0000 | [diff] [blame] | 844 | If the specified value begins with a |
| 845 | .Sq - |
| 846 | character, then the specified methods (including wildcards) will be removed |
| 847 | from the default set instead of replacing them. |
Damien Miller | c1621c8 | 2014-04-20 13:22:46 +1000 | [diff] [blame] | 848 | The supported algorithms are: |
| 849 | .Pp |
| 850 | .Bl -item -compact -offset indent |
| 851 | .It |
djm@openbsd.org | 16277fc | 2016-09-22 17:55:13 +0000 | [diff] [blame] | 852 | curve25519-sha256 |
| 853 | .It |
Damien Miller | c1621c8 | 2014-04-20 13:22:46 +1000 | [diff] [blame] | 854 | curve25519-sha256@libssh.org |
| 855 | .It |
| 856 | diffie-hellman-group1-sha1 |
| 857 | .It |
| 858 | diffie-hellman-group14-sha1 |
| 859 | .It |
| 860 | diffie-hellman-group-exchange-sha1 |
| 861 | .It |
| 862 | diffie-hellman-group-exchange-sha256 |
| 863 | .It |
| 864 | ecdh-sha2-nistp256 |
| 865 | .It |
| 866 | ecdh-sha2-nistp384 |
| 867 | .It |
| 868 | ecdh-sha2-nistp521 |
| 869 | .El |
| 870 | .Pp |
| 871 | The default is: |
Damien Miller | 6575c3a | 2013-12-18 17:47:02 +1100 | [diff] [blame] | 872 | .Bd -literal -offset indent |
djm@openbsd.org | 16277fc | 2016-09-22 17:55:13 +0000 | [diff] [blame] | 873 | curve25519-sha256,curve25519-sha256@libssh.org, |
Damien Miller | 6575c3a | 2013-12-18 17:47:02 +1100 | [diff] [blame] | 874 | ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521, |
| 875 | diffie-hellman-group-exchange-sha256, |
Damien Miller | c1621c8 | 2014-04-20 13:22:46 +1000 | [diff] [blame] | 876 | diffie-hellman-group14-sha1 |
Damien Miller | 6575c3a | 2013-12-18 17:47:02 +1100 | [diff] [blame] | 877 | .Ed |
djm@openbsd.org | 8f6784f | 2014-12-22 09:05:17 +0000 | [diff] [blame] | 878 | .Pp |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 879 | The list of available key exchange algorithms may also be obtained using |
| 880 | .Qq ssh -Q kex . |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 881 | .It Cm ListenAddress |
| 882 | Specifies the local addresses |
Damien Miller | 5b0d63f | 2006-03-15 11:56:56 +1100 | [diff] [blame] | 883 | .Xr sshd 8 |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 884 | should listen on. |
| 885 | The following forms may be used: |
| 886 | .Pp |
| 887 | .Bl -item -offset indent -compact |
| 888 | .It |
| 889 | .Cm ListenAddress |
| 890 | .Sm off |
jmc@openbsd.org | 08c0eeb | 2014-11-22 19:21:03 +0000 | [diff] [blame] | 891 | .Ar host | Ar IPv4_addr | Ar IPv6_addr |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 892 | .Sm on |
| 893 | .It |
| 894 | .Cm ListenAddress |
| 895 | .Sm off |
jmc@openbsd.org | 08c0eeb | 2014-11-22 19:21:03 +0000 | [diff] [blame] | 896 | .Ar host | Ar IPv4_addr : Ar port |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 897 | .Sm on |
| 898 | .It |
| 899 | .Cm ListenAddress |
| 900 | .Sm off |
| 901 | .Oo |
jmc@openbsd.org | 08c0eeb | 2014-11-22 19:21:03 +0000 | [diff] [blame] | 902 | .Ar host | Ar IPv6_addr Oc : Ar port |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 903 | .Sm on |
| 904 | .El |
| 905 | .Pp |
| 906 | If |
| 907 | .Ar port |
| 908 | is not specified, |
dtucker@openbsd.org | 531a57a | 2015-04-29 03:48:56 +0000 | [diff] [blame] | 909 | sshd will listen on the address and all |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 910 | .Cm Port |
Damien Miller | fbf486b | 2003-05-23 18:44:23 +1000 | [diff] [blame] | 911 | options specified. |
| 912 | The default is to listen on all local addresses. |
Damien Miller | 495dca3 | 2003-04-01 21:42:14 +1000 | [diff] [blame] | 913 | Multiple |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 914 | .Cm ListenAddress |
Damien Miller | fbf486b | 2003-05-23 18:44:23 +1000 | [diff] [blame] | 915 | options are permitted. |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 916 | .It Cm LoginGraceTime |
| 917 | The server disconnects after this time if the user has not |
| 918 | successfully logged in. |
| 919 | If the value is 0, there is no time limit. |
Damien Miller | c134863 | 2002-09-05 14:35:14 +1000 | [diff] [blame] | 920 | The default is 120 seconds. |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 921 | .It Cm LogLevel |
| 922 | Gives the verbosity level that is used when logging messages from |
Damien Miller | f4f22b5 | 2006-03-15 11:57:25 +1100 | [diff] [blame] | 923 | .Xr sshd 8 . |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 924 | The possible values are: |
Damien Miller | 5b0d63f | 2006-03-15 11:56:56 +1100 | [diff] [blame] | 925 | QUIET, FATAL, ERROR, INFO, VERBOSE, DEBUG, DEBUG1, DEBUG2, and DEBUG3. |
Damien Miller | 495dca3 | 2003-04-01 21:42:14 +1000 | [diff] [blame] | 926 | The default is INFO. |
| 927 | DEBUG and DEBUG1 are equivalent. |
| 928 | DEBUG2 and DEBUG3 each specify higher levels of debugging output. |
| 929 | 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] | 930 | .It Cm MACs |
| 931 | Specifies the available MAC (message authentication code) algorithms. |
jmc@openbsd.org | a685ae8 | 2016-02-17 07:38:19 +0000 | [diff] [blame] | 932 | The MAC algorithm is used for data integrity protection. |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 933 | Multiple algorithms must be comma-separated. |
djm@openbsd.org | f9eca24 | 2015-07-30 00:01:34 +0000 | [diff] [blame] | 934 | If the specified value begins with a |
| 935 | .Sq + |
| 936 | character, then the specified algorithms will be appended to the default set |
| 937 | instead of replacing them. |
djm@openbsd.org | 68bc8cf | 2017-02-03 23:01:19 +0000 | [diff] [blame] | 938 | If the specified value begins with a |
| 939 | .Sq - |
| 940 | character, then the specified algorithms (including wildcards) will be removed |
| 941 | from the default set instead of replacing them. |
djm@openbsd.org | f9eca24 | 2015-07-30 00:01:34 +0000 | [diff] [blame] | 942 | .Pp |
Damien Miller | af43a7a | 2012-12-12 10:46:31 +1100 | [diff] [blame] | 943 | The algorithms that contain |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 944 | .Qq -etm |
Damien Miller | af43a7a | 2012-12-12 10:46:31 +1100 | [diff] [blame] | 945 | calculate the MAC after encryption (encrypt-then-mac). |
| 946 | These are considered safer and their use recommended. |
Damien Miller | c1621c8 | 2014-04-20 13:22:46 +1000 | [diff] [blame] | 947 | The supported MACs are: |
| 948 | .Pp |
| 949 | .Bl -item -compact -offset indent |
| 950 | .It |
| 951 | hmac-md5 |
| 952 | .It |
| 953 | hmac-md5-96 |
| 954 | .It |
Damien Miller | c1621c8 | 2014-04-20 13:22:46 +1000 | [diff] [blame] | 955 | hmac-sha1 |
| 956 | .It |
| 957 | hmac-sha1-96 |
| 958 | .It |
| 959 | hmac-sha2-256 |
| 960 | .It |
| 961 | hmac-sha2-512 |
| 962 | .It |
| 963 | umac-64@openssh.com |
| 964 | .It |
| 965 | umac-128@openssh.com |
| 966 | .It |
| 967 | hmac-md5-etm@openssh.com |
| 968 | .It |
| 969 | hmac-md5-96-etm@openssh.com |
| 970 | .It |
Damien Miller | c1621c8 | 2014-04-20 13:22:46 +1000 | [diff] [blame] | 971 | hmac-sha1-etm@openssh.com |
| 972 | .It |
| 973 | hmac-sha1-96-etm@openssh.com |
| 974 | .It |
| 975 | hmac-sha2-256-etm@openssh.com |
| 976 | .It |
| 977 | hmac-sha2-512-etm@openssh.com |
| 978 | .It |
| 979 | umac-64-etm@openssh.com |
| 980 | .It |
| 981 | umac-128-etm@openssh.com |
| 982 | .El |
| 983 | .Pp |
Damien Miller | 5b0d63f | 2006-03-15 11:56:56 +1100 | [diff] [blame] | 984 | The default is: |
Damien Miller | 22b7b49 | 2007-06-11 14:07:12 +1000 | [diff] [blame] | 985 | .Bd -literal -offset indent |
Damien Miller | af43a7a | 2012-12-12 10:46:31 +1100 | [diff] [blame] | 986 | umac-64-etm@openssh.com,umac-128-etm@openssh.com, |
| 987 | 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] | 988 | hmac-sha1-etm@openssh.com, |
Damien Miller | c1621c8 | 2014-04-20 13:22:46 +1000 | [diff] [blame] | 989 | umac-64@openssh.com,umac-128@openssh.com, |
djm@openbsd.org | e4c918a | 2016-02-11 02:56:32 +0000 | [diff] [blame] | 990 | hmac-sha2-256,hmac-sha2-512,hmac-sha1 |
Damien Miller | 22b7b49 | 2007-06-11 14:07:12 +1000 | [diff] [blame] | 991 | .Ed |
djm@openbsd.org | 8f6784f | 2014-12-22 09:05:17 +0000 | [diff] [blame] | 992 | .Pp |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 993 | The list of available MAC algorithms may also be obtained using |
| 994 | .Qq ssh -Q mac . |
Darren Tucker | 4515047 | 2006-07-12 22:34:17 +1000 | [diff] [blame] | 995 | .It Cm Match |
Damien Miller | d04f357 | 2006-07-24 13:46:50 +1000 | [diff] [blame] | 996 | Introduces a conditional block. |
Damien Miller | 8c23403 | 2006-07-24 14:05:08 +1000 | [diff] [blame] | 997 | If all of the criteria on the |
Darren Tucker | 4515047 | 2006-07-12 22:34:17 +1000 | [diff] [blame] | 998 | .Cm Match |
Damien Miller | 8c23403 | 2006-07-24 14:05:08 +1000 | [diff] [blame] | 999 | line are satisfied, the keywords on the following lines override those |
| 1000 | set in the global section of the config file, until either another |
Darren Tucker | 4515047 | 2006-07-12 22:34:17 +1000 | [diff] [blame] | 1001 | .Cm Match |
Damien Miller | 8c23403 | 2006-07-24 14:05:08 +1000 | [diff] [blame] | 1002 | line or the end of the file. |
Damien Miller | fc5d675 | 2014-02-28 10:01:28 +1100 | [diff] [blame] | 1003 | If a keyword appears in multiple |
| 1004 | .Cm Match |
sobrado@openbsd.org | 180bcb4 | 2014-08-30 16:32:25 +0000 | [diff] [blame] | 1005 | blocks that are satisfied, only the first instance of the keyword is |
Damien Miller | fc5d675 | 2014-02-28 10:01:28 +1100 | [diff] [blame] | 1006 | applied. |
Darren Tucker | 7a3935d | 2008-06-10 22:59:10 +1000 | [diff] [blame] | 1007 | .Pp |
Damien Miller | d04f357 | 2006-07-24 13:46:50 +1000 | [diff] [blame] | 1008 | The arguments to |
Darren Tucker | 4515047 | 2006-07-12 22:34:17 +1000 | [diff] [blame] | 1009 | .Cm Match |
Damien Miller | cf31f38 | 2013-10-24 21:02:56 +1100 | [diff] [blame] | 1010 | are one or more criteria-pattern pairs or the single token |
| 1011 | .Cm All |
| 1012 | which matches all criteria. |
Darren Tucker | 4515047 | 2006-07-12 22:34:17 +1000 | [diff] [blame] | 1013 | The available criteria are |
| 1014 | .Cm User , |
Damien Miller | 565ca3f | 2006-08-19 00:23:15 +1000 | [diff] [blame] | 1015 | .Cm Group , |
Darren Tucker | 4515047 | 2006-07-12 22:34:17 +1000 | [diff] [blame] | 1016 | .Cm Host , |
Darren Tucker | fbcf827 | 2012-05-19 19:37:01 +1000 | [diff] [blame] | 1017 | .Cm LocalAddress , |
| 1018 | .Cm LocalPort , |
Darren Tucker | 4515047 | 2006-07-12 22:34:17 +1000 | [diff] [blame] | 1019 | and |
| 1020 | .Cm Address . |
Darren Tucker | 7a3935d | 2008-06-10 22:59:10 +1000 | [diff] [blame] | 1021 | The match patterns may consist of single entries or comma-separated |
| 1022 | 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] | 1023 | .Sx PATTERNS |
| 1024 | section of |
Darren Tucker | b06cc4a | 2008-06-10 22:59:53 +1000 | [diff] [blame] | 1025 | .Xr ssh_config 5 . |
Darren Tucker | 7a3935d | 2008-06-10 22:59:10 +1000 | [diff] [blame] | 1026 | .Pp |
| 1027 | The patterns in an |
| 1028 | .Cm Address |
| 1029 | criteria may additionally contain addresses to match in CIDR |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 1030 | address/masklen format, |
| 1031 | such as 192.0.2.0/24 or 2001:db8::/32. |
Darren Tucker | 7a3935d | 2008-06-10 22:59:10 +1000 | [diff] [blame] | 1032 | Note that the mask length provided must be consistent with the address - |
| 1033 | 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] | 1034 | 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] | 1035 | 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] | 1036 | .Pp |
Darren Tucker | 4515047 | 2006-07-12 22:34:17 +1000 | [diff] [blame] | 1037 | Only a subset of keywords may be used on the lines following a |
| 1038 | .Cm Match |
| 1039 | keyword. |
| 1040 | Available keywords are |
Damien Miller | f826850 | 2012-06-20 21:54:15 +1000 | [diff] [blame] | 1041 | .Cm AcceptEnv , |
Damien Miller | 1781901 | 2009-01-28 16:20:17 +1100 | [diff] [blame] | 1042 | .Cm AllowAgentForwarding , |
Damien Miller | f826850 | 2012-06-20 21:54:15 +1000 | [diff] [blame] | 1043 | .Cm AllowGroups , |
djm@openbsd.org | 18a208d | 2015-02-20 22:40:32 +0000 | [diff] [blame] | 1044 | .Cm AllowStreamLocalForwarding , |
Damien Miller | 9b439df | 2006-07-24 14:04:00 +1000 | [diff] [blame] | 1045 | .Cm AllowTcpForwarding , |
Damien Miller | c24da77 | 2012-06-20 21:53:58 +1000 | [diff] [blame] | 1046 | .Cm AllowUsers , |
Damien Miller | a6e3f01 | 2012-11-04 23:21:40 +1100 | [diff] [blame] | 1047 | .Cm AuthenticationMethods , |
Damien Miller | 09d3e12 | 2012-10-31 08:58:58 +1100 | [diff] [blame] | 1048 | .Cm AuthorizedKeysCommand , |
| 1049 | .Cm AuthorizedKeysCommandUser , |
Damien Miller | f33580e | 2012-11-04 22:22:52 +1100 | [diff] [blame] | 1050 | .Cm AuthorizedKeysFile , |
djm@openbsd.org | b6b9108 | 2015-11-13 02:57:46 +0000 | [diff] [blame] | 1051 | .Cm AuthorizedPrincipalsCommand , |
| 1052 | .Cm AuthorizedPrincipalsCommandUser , |
Damien Miller | ab6de35 | 2010-06-26 09:38:45 +1000 | [diff] [blame] | 1053 | .Cm AuthorizedPrincipalsFile , |
Darren Tucker | 1629c07 | 2007-02-19 22:25:37 +1100 | [diff] [blame] | 1054 | .Cm Banner , |
Damien Miller | 797e3d1 | 2008-05-19 14:27:42 +1000 | [diff] [blame] | 1055 | .Cm ChrootDirectory , |
markus@openbsd.org | f0ddede | 2016-11-23 23:14:15 +0000 | [diff] [blame] | 1056 | .Cm ClientAliveCountMax , |
| 1057 | .Cm ClientAliveInterval , |
Damien Miller | c24da77 | 2012-06-20 21:53:58 +1000 | [diff] [blame] | 1058 | .Cm DenyGroups , |
| 1059 | .Cm DenyUsers , |
Damien Miller | e275443 | 2006-07-24 14:06:47 +1000 | [diff] [blame] | 1060 | .Cm ForceCommand , |
djm@openbsd.org | 18a208d | 2015-02-20 22:40:32 +0000 | [diff] [blame] | 1061 | .Cm GatewayPorts , |
djm@openbsd.org | bd49da2 | 2015-02-20 23:46:01 +0000 | [diff] [blame] | 1062 | .Cm GSSAPIAuthentication , |
djm@openbsd.org | 1f729f0 | 2015-01-13 07:39:19 +0000 | [diff] [blame] | 1063 | .Cm HostbasedAcceptedKeyTypes , |
Damien Miller | 25434de | 2008-05-19 14:29:08 +1000 | [diff] [blame] | 1064 | .Cm HostbasedAuthentication , |
Damien Miller | ab6de35 | 2010-06-26 09:38:45 +1000 | [diff] [blame] | 1065 | .Cm HostbasedUsesNameFromPacketOnly , |
djm@openbsd.org | 18a208d | 2015-02-20 22:40:32 +0000 | [diff] [blame] | 1066 | .Cm IPQoS , |
Darren Tucker | 1d75f22 | 2007-03-01 21:31:28 +1100 | [diff] [blame] | 1067 | .Cm KbdInteractiveAuthentication , |
Damien Miller | 5737e36 | 2007-03-06 21:21:18 +1100 | [diff] [blame] | 1068 | .Cm KerberosAuthentication , |
Damien Miller | 307c1d1 | 2008-06-16 07:56:20 +1000 | [diff] [blame] | 1069 | .Cm MaxAuthTries , |
Damien Miller | c62a5af | 2008-06-16 07:55:46 +1000 | [diff] [blame] | 1070 | .Cm MaxSessions , |
Darren Tucker | 1629c07 | 2007-02-19 22:25:37 +1100 | [diff] [blame] | 1071 | .Cm PasswordAuthentication , |
Damien Miller | 51bde60 | 2008-11-03 19:23:10 +1100 | [diff] [blame] | 1072 | .Cm PermitEmptyPasswords , |
Damien Miller | d1de995 | 2006-07-24 14:05:48 +1000 | [diff] [blame] | 1073 | .Cm PermitOpen , |
Darren Tucker | 15f9427 | 2008-01-01 20:36:56 +1100 | [diff] [blame] | 1074 | .Cm PermitRootLogin , |
Damien Miller | 5ff30c6 | 2013-10-30 22:21:50 +1100 | [diff] [blame] | 1075 | .Cm PermitTTY , |
Damien Miller | ab6de35 | 2010-06-26 09:38:45 +1000 | [diff] [blame] | 1076 | .Cm PermitTunnel , |
Damien Miller | 72e6b5c | 2014-07-04 09:00:04 +1000 | [diff] [blame] | 1077 | .Cm PermitUserRC , |
djm@openbsd.org | 1f729f0 | 2015-01-13 07:39:19 +0000 | [diff] [blame] | 1078 | .Cm PubkeyAcceptedKeyTypes , |
Darren Tucker | 1477ea1 | 2009-10-07 08:36:05 +1100 | [diff] [blame] | 1079 | .Cm PubkeyAuthentication , |
djm@openbsd.org | 18a208d | 2015-02-20 22:40:32 +0000 | [diff] [blame] | 1080 | .Cm RekeyLimit , |
| 1081 | .Cm RevokedKeys , |
djm@openbsd.org | 18a208d | 2015-02-20 22:40:32 +0000 | [diff] [blame] | 1082 | .Cm StreamLocalBindMask , |
| 1083 | .Cm StreamLocalBindUnlink , |
| 1084 | .Cm TrustedUserCAKeys , |
Damien Miller | d1de995 | 2006-07-24 14:05:48 +1000 | [diff] [blame] | 1085 | .Cm X11DisplayOffset , |
Damien Miller | 1991384 | 2009-02-23 10:53:58 +1100 | [diff] [blame] | 1086 | .Cm X11Forwarding |
Darren Tucker | 4515047 | 2006-07-12 22:34:17 +1000 | [diff] [blame] | 1087 | and |
Damien Miller | 0296ae8 | 2009-02-23 11:00:24 +1100 | [diff] [blame] | 1088 | .Cm X11UseLocalHost . |
Darren Tucker | 89413db | 2004-05-24 10:36:23 +1000 | [diff] [blame] | 1089 | .It Cm MaxAuthTries |
| 1090 | Specifies the maximum number of authentication attempts permitted per |
Damien Miller | 26213e5 | 2004-06-30 22:39:34 +1000 | [diff] [blame] | 1091 | connection. |
| 1092 | Once the number of failures reaches half this value, |
| 1093 | additional failures are logged. |
| 1094 | The default is 6. |
Damien Miller | 7207f64 | 2008-05-19 15:34:50 +1000 | [diff] [blame] | 1095 | .It Cm MaxSessions |
djm@openbsd.org | cac3b66 | 2016-02-05 02:37:56 +0000 | [diff] [blame] | 1096 | Specifies the maximum number of open shell, login or subsystem (e.g. sftp) |
| 1097 | sessions permitted per network connection. |
| 1098 | Multiple sessions may be established by clients that support connection |
| 1099 | multiplexing. |
| 1100 | Setting |
| 1101 | .Cm MaxSessions |
| 1102 | to 1 will effectively disable session multiplexing, whereas setting it to 0 |
| 1103 | will prevent all shell, login and subsystem sessions while still permitting |
| 1104 | forwarding. |
Damien Miller | 7207f64 | 2008-05-19 15:34:50 +1000 | [diff] [blame] | 1105 | The default is 10. |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 1106 | .It Cm MaxStartups |
| 1107 | Specifies the maximum number of concurrent unauthenticated connections to the |
Damien Miller | 5b0d63f | 2006-03-15 11:56:56 +1100 | [diff] [blame] | 1108 | SSH daemon. |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 1109 | Additional connections will be dropped until authentication succeeds or the |
| 1110 | .Cm LoginGraceTime |
| 1111 | expires for a connection. |
Damien Miller | 1f583df | 2013-02-12 11:02:08 +1100 | [diff] [blame] | 1112 | The default is 10:30:100. |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 1113 | .Pp |
| 1114 | Alternatively, random early drop can be enabled by specifying |
| 1115 | the three colon separated values |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 1116 | start:rate:full (e.g. "10:30:60"). |
Damien Miller | f4f22b5 | 2006-03-15 11:57:25 +1100 | [diff] [blame] | 1117 | .Xr sshd 8 |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 1118 | will refuse connection attempts with a probability of rate/100 (30%) |
| 1119 | if there are currently start (10) unauthenticated connections. |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 1120 | The probability increases linearly and all connection attempts |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 1121 | are refused if the number of unauthenticated connections reaches full (60). |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 1122 | .It Cm PasswordAuthentication |
| 1123 | Specifies whether password authentication is allowed. |
| 1124 | The default is |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 1125 | .Cm yes . |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 1126 | .It Cm PermitEmptyPasswords |
| 1127 | When password authentication is allowed, it specifies whether the |
| 1128 | server allows login to accounts with empty password strings. |
| 1129 | The default is |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 1130 | .Cm no . |
Damien Miller | 9b439df | 2006-07-24 14:04:00 +1000 | [diff] [blame] | 1131 | .It Cm PermitOpen |
| 1132 | Specifies the destinations to which TCP port forwarding is permitted. |
| 1133 | The forwarding specification must be one of the following forms: |
| 1134 | .Pp |
| 1135 | .Bl -item -offset indent -compact |
| 1136 | .It |
| 1137 | .Cm PermitOpen |
| 1138 | .Sm off |
| 1139 | .Ar host : port |
| 1140 | .Sm on |
| 1141 | .It |
| 1142 | .Cm PermitOpen |
| 1143 | .Sm off |
| 1144 | .Ar IPv4_addr : port |
| 1145 | .Sm on |
| 1146 | .It |
| 1147 | .Cm PermitOpen |
| 1148 | .Sm off |
| 1149 | .Ar \&[ IPv6_addr \&] : port |
| 1150 | .Sm on |
| 1151 | .El |
| 1152 | .Pp |
Damien Miller | a765cf4 | 2006-07-24 14:08:13 +1000 | [diff] [blame] | 1153 | Multiple forwards may be specified by separating them with whitespace. |
Damien Miller | 9b439df | 2006-07-24 14:04:00 +1000 | [diff] [blame] | 1154 | An argument of |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 1155 | .Cm any |
Damien Miller | 9b439df | 2006-07-24 14:04:00 +1000 | [diff] [blame] | 1156 | can be used to remove all restrictions and permit any forwarding requests. |
Darren Tucker | ba9ea32 | 2012-05-19 19:37:33 +1000 | [diff] [blame] | 1157 | An argument of |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 1158 | .Cm none |
Darren Tucker | ba9ea32 | 2012-05-19 19:37:33 +1000 | [diff] [blame] | 1159 | can be used to prohibit all forwarding requests. |
jmc@openbsd.org | 32d921c | 2016-07-19 12:59:16 +0000 | [diff] [blame] | 1160 | The wildcard |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 1161 | .Sq * |
jmc@openbsd.org | 32d921c | 2016-07-19 12:59:16 +0000 | [diff] [blame] | 1162 | 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] | 1163 | By default all port forwarding requests are permitted. |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 1164 | .It Cm PermitRootLogin |
Darren Tucker | b350901 | 2005-01-20 11:01:46 +1100 | [diff] [blame] | 1165 | Specifies whether root can log in using |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 1166 | .Xr ssh 1 . |
| 1167 | The argument must be |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 1168 | .Cm yes , |
| 1169 | .Cm prohibit-password , |
| 1170 | .Cm without-password , |
| 1171 | .Cm forced-commands-only , |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 1172 | or |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 1173 | .Cm no . |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 1174 | The default is |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 1175 | .Cm prohibit-password . |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 1176 | .Pp |
| 1177 | If this option is set to |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 1178 | .Cm prohibit-password |
deraadt@openbsd.org | 1dc8d93 | 2015-08-06 14:53:21 +0000 | [diff] [blame] | 1179 | or |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 1180 | .Cm without-password , |
deraadt@openbsd.org | 1dc8d93 | 2015-08-06 14:53:21 +0000 | [diff] [blame] | 1181 | password and keyboard-interactive authentication 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 forced-commands-only , |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 1185 | root login with public key authentication will be allowed, |
| 1186 | but only if the |
| 1187 | .Ar command |
| 1188 | option has been specified |
| 1189 | (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] | 1190 | normally not allowed). |
| 1191 | All other authentication methods are disabled for root. |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 1192 | .Pp |
| 1193 | If this option is set to |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 1194 | .Cm no , |
Darren Tucker | b350901 | 2005-01-20 11:01:46 +1100 | [diff] [blame] | 1195 | root is not allowed to log in. |
jmc@openbsd.org | f219fc8 | 2016-09-07 18:39:24 +0000 | [diff] [blame] | 1196 | .It Cm PermitTTY |
| 1197 | Specifies whether |
| 1198 | .Xr pty 4 |
| 1199 | allocation is permitted. |
| 1200 | The default is |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 1201 | .Cm yes . |
Damien Miller | d27b947 | 2005-12-13 19:29:02 +1100 | [diff] [blame] | 1202 | .It Cm PermitTunnel |
| 1203 | Specifies whether |
| 1204 | .Xr tun 4 |
| 1205 | device forwarding is allowed. |
Damien Miller | 7b58e80 | 2005-12-13 19:33:19 +1100 | [diff] [blame] | 1206 | The argument must be |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 1207 | .Cm yes , |
| 1208 | .Cm point-to-point |
Damien Miller | 991dba4 | 2006-07-10 20:16:27 +1000 | [diff] [blame] | 1209 | (layer 3), |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 1210 | .Cm ethernet |
Damien Miller | 991dba4 | 2006-07-10 20:16:27 +1000 | [diff] [blame] | 1211 | (layer 2), or |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 1212 | .Cm no . |
Damien Miller | 991dba4 | 2006-07-10 20:16:27 +1000 | [diff] [blame] | 1213 | Specifying |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 1214 | .Cm yes |
Damien Miller | 991dba4 | 2006-07-10 20:16:27 +1000 | [diff] [blame] | 1215 | permits both |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 1216 | .Cm point-to-point |
Damien Miller | 991dba4 | 2006-07-10 20:16:27 +1000 | [diff] [blame] | 1217 | and |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 1218 | .Cm ethernet . |
Damien Miller | d27b947 | 2005-12-13 19:29:02 +1100 | [diff] [blame] | 1219 | The default is |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 1220 | .Cm no . |
djm@openbsd.org | 48dffd5 | 2014-09-09 09:45:36 +0000 | [diff] [blame] | 1221 | .Pp |
| 1222 | Independent of this setting, the permissions of the selected |
| 1223 | .Xr tun 4 |
| 1224 | device must allow access to the user. |
Ben Lindstrom | 5d860f0 | 2002-08-01 01:28:38 +0000 | [diff] [blame] | 1225 | .It Cm PermitUserEnvironment |
| 1226 | Specifies whether |
| 1227 | .Pa ~/.ssh/environment |
Ben Lindstrom | bd9bf38 | 2002-08-20 18:54:20 +0000 | [diff] [blame] | 1228 | and |
Ben Lindstrom | 5d860f0 | 2002-08-01 01:28:38 +0000 | [diff] [blame] | 1229 | .Cm environment= |
| 1230 | options in |
| 1231 | .Pa ~/.ssh/authorized_keys |
Ben Lindstrom | bd9bf38 | 2002-08-20 18:54:20 +0000 | [diff] [blame] | 1232 | are processed by |
Damien Miller | 5b0d63f | 2006-03-15 11:56:56 +1100 | [diff] [blame] | 1233 | .Xr sshd 8 . |
Ben Lindstrom | 5d860f0 | 2002-08-01 01:28:38 +0000 | [diff] [blame] | 1234 | The default is |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 1235 | .Cm no . |
Ben Lindstrom | bd9bf38 | 2002-08-20 18:54:20 +0000 | [diff] [blame] | 1236 | Enabling environment processing may enable users to bypass access |
| 1237 | restrictions in some configurations using mechanisms such as |
| 1238 | .Ev LD_PRELOAD . |
Damien Miller | 72e6b5c | 2014-07-04 09:00:04 +1000 | [diff] [blame] | 1239 | .It Cm PermitUserRC |
| 1240 | Specifies whether any |
| 1241 | .Pa ~/.ssh/rc |
| 1242 | file is executed. |
| 1243 | The default is |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 1244 | .Cm yes . |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 1245 | .It Cm PidFile |
Ben Lindstrom | 959de99 | 2002-06-23 00:35:25 +0000 | [diff] [blame] | 1246 | Specifies the file that contains the process ID of the |
dtucker@openbsd.org | 6cc7cfa | 2015-04-16 23:25:50 +0000 | [diff] [blame] | 1247 | SSH daemon, or |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 1248 | .Cm none |
dtucker@openbsd.org | 6cc7cfa | 2015-04-16 23:25:50 +0000 | [diff] [blame] | 1249 | to not write one. |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 1250 | The default is |
| 1251 | .Pa /var/run/sshd.pid . |
| 1252 | .It Cm Port |
| 1253 | Specifies the port number that |
Damien Miller | 5b0d63f | 2006-03-15 11:56:56 +1100 | [diff] [blame] | 1254 | .Xr sshd 8 |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 1255 | listens on. |
| 1256 | The default is 22. |
| 1257 | Multiple options of this type are permitted. |
| 1258 | See also |
| 1259 | .Cm ListenAddress . |
| 1260 | .It Cm PrintLastLog |
| 1261 | Specifies whether |
Damien Miller | 5b0d63f | 2006-03-15 11:56:56 +1100 | [diff] [blame] | 1262 | .Xr sshd 8 |
Darren Tucker | 7cc5c23 | 2004-11-05 20:06:59 +1100 | [diff] [blame] | 1263 | should print the date and time of the last user login when a user logs |
| 1264 | in interactively. |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 1265 | The default is |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 1266 | .Cm yes . |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 1267 | .It Cm PrintMotd |
| 1268 | Specifies whether |
Damien Miller | 5b0d63f | 2006-03-15 11:56:56 +1100 | [diff] [blame] | 1269 | .Xr sshd 8 |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 1270 | should print |
| 1271 | .Pa /etc/motd |
| 1272 | when a user logs in interactively. |
| 1273 | (On some systems it is also printed by the shell, |
| 1274 | .Pa /etc/profile , |
| 1275 | or equivalent.) |
| 1276 | The default is |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 1277 | .Cm yes . |
djm@openbsd.org | 1f729f0 | 2015-01-13 07:39:19 +0000 | [diff] [blame] | 1278 | .It Cm PubkeyAcceptedKeyTypes |
| 1279 | Specifies the key types that will be accepted for public key authentication |
| 1280 | as a comma-separated pattern list. |
djm@openbsd.org | f9eca24 | 2015-07-30 00:01:34 +0000 | [diff] [blame] | 1281 | Alternately if the specified value begins with a |
| 1282 | .Sq + |
| 1283 | character, then the specified key types will be appended to the default set |
| 1284 | instead of replacing them. |
djm@openbsd.org | 68bc8cf | 2017-02-03 23:01:19 +0000 | [diff] [blame] | 1285 | If the specified value begins with a |
| 1286 | .Sq - |
| 1287 | character, then the specified key types (including wildcards) will be removed |
| 1288 | from the default set instead of replacing them. |
markus@openbsd.org | 3a1638d | 2015-07-10 06:21:53 +0000 | [diff] [blame] | 1289 | The default for this option is: |
| 1290 | .Bd -literal -offset 3n |
| 1291 | ecdsa-sha2-nistp256-cert-v01@openssh.com, |
| 1292 | ecdsa-sha2-nistp384-cert-v01@openssh.com, |
| 1293 | ecdsa-sha2-nistp521-cert-v01@openssh.com, |
| 1294 | ssh-ed25519-cert-v01@openssh.com, |
| 1295 | ssh-rsa-cert-v01@openssh.com, |
| 1296 | ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521, |
djm@openbsd.org | 3a13cb5 | 2016-02-17 08:57:34 +0000 | [diff] [blame] | 1297 | ssh-ed25519,ssh-rsa |
markus@openbsd.org | 3a1638d | 2015-07-10 06:21:53 +0000 | [diff] [blame] | 1298 | .Ed |
| 1299 | .Pp |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 1300 | The list of available key types may also be obtained using |
| 1301 | .Qq ssh -Q key . |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 1302 | .It Cm PubkeyAuthentication |
| 1303 | Specifies whether public key authentication is allowed. |
| 1304 | The default is |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 1305 | .Cm yes . |
Darren Tucker | 5f96f3b | 2013-05-16 20:29:28 +1000 | [diff] [blame] | 1306 | .It Cm RekeyLimit |
| 1307 | Specifies the maximum amount of data that may be transmitted before the |
| 1308 | session key is renegotiated, optionally followed a maximum amount of |
| 1309 | time that may pass before the session key is renegotiated. |
| 1310 | The first argument is specified in bytes and may have a suffix of |
| 1311 | .Sq K , |
| 1312 | .Sq M , |
| 1313 | or |
| 1314 | .Sq G |
| 1315 | to indicate Kilobytes, Megabytes, or Gigabytes, respectively. |
| 1316 | The default is between |
| 1317 | .Sq 1G |
| 1318 | and |
| 1319 | .Sq 4G , |
| 1320 | depending on the cipher. |
| 1321 | The optional second value is specified in seconds and may use any of the |
| 1322 | units documented in the |
| 1323 | .Sx TIME FORMATS |
Darren Tucker | 64d2294 | 2013-05-16 20:31:29 +1000 | [diff] [blame] | 1324 | section. |
Darren Tucker | 5f96f3b | 2013-05-16 20:29:28 +1000 | [diff] [blame] | 1325 | The default value for |
| 1326 | .Cm RekeyLimit |
| 1327 | is |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 1328 | .Cm default none , |
Darren Tucker | 5f96f3b | 2013-05-16 20:29:28 +1000 | [diff] [blame] | 1329 | which means that rekeying is performed after the cipher's default amount |
| 1330 | 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] | 1331 | .It Cm RevokedKeys |
dtucker@openbsd.org | 6cc7cfa | 2015-04-16 23:25:50 +0000 | [diff] [blame] | 1332 | Specifies revoked public keys file, or |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 1333 | .Cm none |
dtucker@openbsd.org | 6cc7cfa | 2015-04-16 23:25:50 +0000 | [diff] [blame] | 1334 | to not use one. |
Damien Miller | 1aed65e | 2010-03-04 21:53:35 +1100 | [diff] [blame] | 1335 | Keys listed in this file will be refused for public key authentication. |
| 1336 | Note that if this file is not readable, then public key authentication will |
| 1337 | be refused for all users. |
Damien Miller | f3747bf | 2013-01-18 11:44:04 +1100 | [diff] [blame] | 1338 | Keys may be specified as a text file, listing one public key per line, or as |
| 1339 | an OpenSSH Key Revocation List (KRL) as generated by |
Damien Miller | 72abeb7 | 2013-01-20 22:33:44 +1100 | [diff] [blame] | 1340 | .Xr ssh-keygen 1 . |
Damien Miller | fecfd11 | 2013-07-18 16:11:50 +1000 | [diff] [blame] | 1341 | For more information on KRLs, see the KEY REVOCATION LISTS section in |
Damien Miller | f3747bf | 2013-01-18 11:44:04 +1100 | [diff] [blame] | 1342 | .Xr ssh-keygen 1 . |
Damien Miller | 7acefbb | 2014-07-18 14:11:24 +1000 | [diff] [blame] | 1343 | .It Cm StreamLocalBindMask |
| 1344 | Sets the octal file creation mode mask |
| 1345 | .Pq umask |
| 1346 | used when creating a Unix-domain socket file for local or remote |
| 1347 | port forwarding. |
| 1348 | This option is only used for port forwarding to a Unix-domain socket file. |
| 1349 | .Pp |
| 1350 | The default value is 0177, which creates a Unix-domain socket file that is |
| 1351 | readable and writable only by the owner. |
| 1352 | Note that not all operating systems honor the file mode on Unix-domain |
| 1353 | socket files. |
| 1354 | .It Cm StreamLocalBindUnlink |
| 1355 | Specifies whether to remove an existing Unix-domain socket file for local |
| 1356 | or remote port forwarding before creating a new one. |
| 1357 | If the socket file already exists and |
| 1358 | .Cm StreamLocalBindUnlink |
| 1359 | is not enabled, |
| 1360 | .Nm sshd |
| 1361 | will be unable to forward the port to the Unix-domain socket file. |
| 1362 | This option is only used for port forwarding to a Unix-domain socket file. |
| 1363 | .Pp |
| 1364 | The argument must be |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 1365 | .Cm yes |
Damien Miller | 7acefbb | 2014-07-18 14:11:24 +1000 | [diff] [blame] | 1366 | or |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 1367 | .Cm no . |
Damien Miller | 7acefbb | 2014-07-18 14:11:24 +1000 | [diff] [blame] | 1368 | The default is |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 1369 | .Cm no . |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 1370 | .It Cm StrictModes |
| 1371 | Specifies whether |
Damien Miller | 5b0d63f | 2006-03-15 11:56:56 +1100 | [diff] [blame] | 1372 | .Xr sshd 8 |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 1373 | should check file modes and ownership of the |
| 1374 | user's files and home directory before accepting login. |
| 1375 | This is normally desirable because novices sometimes accidentally leave their |
| 1376 | directory or files world-writable. |
| 1377 | The default is |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 1378 | .Cm yes . |
Darren Tucker | f788a91 | 2010-01-08 17:06:47 +1100 | [diff] [blame] | 1379 | Note that this does not apply to |
| 1380 | .Cm ChrootDirectory , |
| 1381 | whose permissions and ownership are checked unconditionally. |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 1382 | .It Cm Subsystem |
Damien Miller | 208f1ed | 2006-03-15 11:56:03 +1100 | [diff] [blame] | 1383 | Configures an external subsystem (e.g. file transfer daemon). |
Damien Miller | 917f9b6 | 2006-07-10 20:36:47 +1000 | [diff] [blame] | 1384 | Arguments should be a subsystem name and a command (with optional arguments) |
| 1385 | to execute upon subsystem request. |
Damien Miller | d8cb1f1 | 2008-02-10 22:40:12 +1100 | [diff] [blame] | 1386 | .Pp |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 1387 | The command |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 1388 | .Cm sftp-server |
| 1389 | implements the SFTP file transfer subsystem. |
Damien Miller | d8cb1f1 | 2008-02-10 22:40:12 +1100 | [diff] [blame] | 1390 | .Pp |
| 1391 | Alternately the name |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 1392 | .Cm internal-sftp |
| 1393 | implements an in-process SFTP server. |
Damien Miller | d8cb1f1 | 2008-02-10 22:40:12 +1100 | [diff] [blame] | 1394 | This may simplify configurations using |
| 1395 | .Cm ChrootDirectory |
| 1396 | to force a different filesystem root on clients. |
| 1397 | .Pp |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 1398 | By default no subsystems are defined. |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 1399 | .It Cm SyslogFacility |
| 1400 | Gives the facility code that is used when logging messages from |
Damien Miller | f4f22b5 | 2006-03-15 11:57:25 +1100 | [diff] [blame] | 1401 | .Xr sshd 8 . |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 1402 | The possible values are: DAEMON, USER, AUTH, LOCAL0, LOCAL1, LOCAL2, |
| 1403 | LOCAL3, LOCAL4, LOCAL5, LOCAL6, LOCAL7. |
| 1404 | The default is AUTH. |
Damien Miller | 12c150e | 2003-12-17 16:31:10 +1100 | [diff] [blame] | 1405 | .It Cm TCPKeepAlive |
| 1406 | Specifies whether the system should send TCP keepalive messages to the |
| 1407 | other side. |
| 1408 | If they are sent, death of the connection or crash of one |
| 1409 | of the machines will be properly noticed. |
| 1410 | However, this means that |
| 1411 | connections will die if the route is down temporarily, and some people |
| 1412 | find it annoying. |
| 1413 | On the other hand, if TCP keepalives are not sent, |
| 1414 | sessions may hang indefinitely on the server, leaving |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 1415 | .Qq ghost |
Damien Miller | 12c150e | 2003-12-17 16:31:10 +1100 | [diff] [blame] | 1416 | users and consuming server resources. |
| 1417 | .Pp |
| 1418 | The default is |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 1419 | .Cm yes |
Damien Miller | 12c150e | 2003-12-17 16:31:10 +1100 | [diff] [blame] | 1420 | (to send TCP keepalive messages), and the server will notice |
| 1421 | if the network goes down or the client host crashes. |
| 1422 | This avoids infinitely hanging sessions. |
| 1423 | .Pp |
| 1424 | To disable TCP keepalive messages, the value should be set to |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 1425 | .Cm no . |
Damien Miller | 1aed65e | 2010-03-04 21:53:35 +1100 | [diff] [blame] | 1426 | .It Cm TrustedUserCAKeys |
| 1427 | Specifies a file containing public keys of certificate authorities that are |
dtucker@openbsd.org | 6cc7cfa | 2015-04-16 23:25:50 +0000 | [diff] [blame] | 1428 | trusted to sign user certificates for authentication, or |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 1429 | .Cm none |
dtucker@openbsd.org | 6cc7cfa | 2015-04-16 23:25:50 +0000 | [diff] [blame] | 1430 | to not use one. |
Damien Miller | 72b3382 | 2010-03-05 07:39:01 +1100 | [diff] [blame] | 1431 | Keys are listed one per line; empty lines and comments starting with |
Damien Miller | 1aed65e | 2010-03-04 21:53:35 +1100 | [diff] [blame] | 1432 | .Ql # |
| 1433 | are allowed. |
| 1434 | If a certificate is presented for authentication and has its signing CA key |
| 1435 | listed in this file, then it may be used for authentication for any user |
| 1436 | listed in the certificate's principals list. |
| 1437 | Note that certificates that lack a list of principals will not be permitted |
| 1438 | for authentication using |
| 1439 | .Cm TrustedUserCAKeys . |
Damien Miller | fecfd11 | 2013-07-18 16:11:50 +1000 | [diff] [blame] | 1440 | For more details on certificates, see the CERTIFICATES section in |
Damien Miller | 1aed65e | 2010-03-04 21:53:35 +1100 | [diff] [blame] | 1441 | .Xr ssh-keygen 1 . |
Damien Miller | 3a961dc | 2003-06-03 10:25:48 +1000 | [diff] [blame] | 1442 | .It Cm UseDNS |
| 1443 | Specifies whether |
Damien Miller | 5b0d63f | 2006-03-15 11:56:56 +1100 | [diff] [blame] | 1444 | .Xr sshd 8 |
djm@openbsd.org | c63c9a6 | 2015-07-20 00:30:01 +0000 | [diff] [blame] | 1445 | should look up the remote host name, and to check that |
Damien Miller | 3a961dc | 2003-06-03 10:25:48 +1000 | [diff] [blame] | 1446 | the resolved host name for the remote IP address maps back to the |
| 1447 | very same IP address. |
djm@openbsd.org | c63c9a6 | 2015-07-20 00:30:01 +0000 | [diff] [blame] | 1448 | .Pp |
| 1449 | If this option is set to |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 1450 | .Cm no |
djm@openbsd.org | c63c9a6 | 2015-07-20 00:30:01 +0000 | [diff] [blame] | 1451 | (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] | 1452 | .Pa ~/.ssh/authorized_keys |
djm@openbsd.org | c63c9a6 | 2015-07-20 00:30:01 +0000 | [diff] [blame] | 1453 | .Cm from |
| 1454 | and |
jmc@openbsd.org | 1f8d3d6 | 2015-08-14 15:32:41 +0000 | [diff] [blame] | 1455 | .Nm |
djm@openbsd.org | c63c9a6 | 2015-07-20 00:30:01 +0000 | [diff] [blame] | 1456 | .Cm Match |
| 1457 | .Cm Host |
| 1458 | directives. |
Damien Miller | 2e193e2 | 2003-05-14 15:13:03 +1000 | [diff] [blame] | 1459 | .It Cm UsePAM |
Darren Tucker | 1dcff9a | 2004-05-13 16:51:40 +1000 | [diff] [blame] | 1460 | Enables the Pluggable Authentication Module interface. |
| 1461 | If set to |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 1462 | .Cm yes |
Darren Tucker | 1dcff9a | 2004-05-13 16:51:40 +1000 | [diff] [blame] | 1463 | this will enable PAM authentication using |
| 1464 | .Cm ChallengeResponseAuthentication |
Darren Tucker | a4904f7 | 2006-02-23 21:35:30 +1100 | [diff] [blame] | 1465 | and |
| 1466 | .Cm PasswordAuthentication |
| 1467 | in addition to PAM account and session module processing for all |
| 1468 | authentication types. |
Darren Tucker | 1dcff9a | 2004-05-13 16:51:40 +1000 | [diff] [blame] | 1469 | .Pp |
| 1470 | Because PAM challenge-response authentication usually serves an equivalent |
| 1471 | role to password authentication, you should disable either |
| 1472 | .Cm PasswordAuthentication |
| 1473 | or |
| 1474 | .Cm ChallengeResponseAuthentication. |
| 1475 | .Pp |
| 1476 | If |
| 1477 | .Cm UsePAM |
| 1478 | is enabled, you will not be able to run |
| 1479 | .Xr sshd 8 |
| 1480 | as a non-root user. |
| 1481 | The default is |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 1482 | .Cm no . |
Damien Miller | 2352881 | 2012-04-22 11:24:43 +1000 | [diff] [blame] | 1483 | .It Cm VersionAddendum |
| 1484 | Optionally specifies additional text to append to the SSH protocol banner |
| 1485 | sent by the server upon connection. |
| 1486 | The default is |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 1487 | .Cm none . |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 1488 | .It Cm X11DisplayOffset |
| 1489 | Specifies the first display number available for |
Damien Miller | 5b0d63f | 2006-03-15 11:56:56 +1100 | [diff] [blame] | 1490 | .Xr sshd 8 Ns 's |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 1491 | X11 forwarding. |
Damien Miller | 5b0d63f | 2006-03-15 11:56:56 +1100 | [diff] [blame] | 1492 | This prevents sshd from interfering with real X11 servers. |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 1493 | The default is 10. |
| 1494 | .It Cm X11Forwarding |
| 1495 | Specifies whether X11 forwarding is permitted. |
Damien Miller | 101c4a7 | 2002-09-19 11:51:21 +1000 | [diff] [blame] | 1496 | The argument must be |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 1497 | .Cm yes |
Damien Miller | 101c4a7 | 2002-09-19 11:51:21 +1000 | [diff] [blame] | 1498 | or |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 1499 | .Cm no . |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 1500 | The default is |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 1501 | .Cm no . |
Damien Miller | 101c4a7 | 2002-09-19 11:51:21 +1000 | [diff] [blame] | 1502 | .Pp |
| 1503 | When X11 forwarding is enabled, there may be additional exposure to |
| 1504 | the server and to client displays if the |
Damien Miller | 5b0d63f | 2006-03-15 11:56:56 +1100 | [diff] [blame] | 1505 | .Xr sshd 8 |
Damien Miller | 101c4a7 | 2002-09-19 11:51:21 +1000 | [diff] [blame] | 1506 | proxy display is configured to listen on the wildcard address (see |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 1507 | .Cm X11UseLocalhost ) , |
| 1508 | though this is not the default. |
Damien Miller | 101c4a7 | 2002-09-19 11:51:21 +1000 | [diff] [blame] | 1509 | Additionally, the authentication spoofing and authentication data |
| 1510 | verification and substitution occur on the client side. |
| 1511 | 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] | 1512 | display server may be exposed to attack when the SSH client requests |
Damien Miller | 101c4a7 | 2002-09-19 11:51:21 +1000 | [diff] [blame] | 1513 | forwarding (see the warnings for |
| 1514 | .Cm ForwardX11 |
| 1515 | in |
Damien Miller | f1ce505 | 2003-06-11 22:04:39 +1000 | [diff] [blame] | 1516 | .Xr ssh_config 5 ) . |
Damien Miller | 101c4a7 | 2002-09-19 11:51:21 +1000 | [diff] [blame] | 1517 | A system administrator may have a stance in which they want to |
| 1518 | protect clients that may expose themselves to attack by unwittingly |
| 1519 | requesting X11 forwarding, which can warrant a |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 1520 | .Cm no |
Damien Miller | 101c4a7 | 2002-09-19 11:51:21 +1000 | [diff] [blame] | 1521 | setting. |
| 1522 | .Pp |
| 1523 | Note that disabling X11 forwarding does not prevent users from |
| 1524 | forwarding X11 traffic, as users can always install their own forwarders. |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 1525 | .It Cm X11UseLocalhost |
| 1526 | Specifies whether |
Damien Miller | 5b0d63f | 2006-03-15 11:56:56 +1100 | [diff] [blame] | 1527 | .Xr sshd 8 |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 1528 | should bind the X11 forwarding server to the loopback address or to |
Damien Miller | 495dca3 | 2003-04-01 21:42:14 +1000 | [diff] [blame] | 1529 | the wildcard address. |
| 1530 | By default, |
Damien Miller | 5b0d63f | 2006-03-15 11:56:56 +1100 | [diff] [blame] | 1531 | sshd binds the forwarding server to the loopback address and sets the |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 1532 | hostname part of the |
| 1533 | .Ev DISPLAY |
| 1534 | environment variable to |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 1535 | .Cm localhost . |
Ben Lindstrom | 15b6120 | 2002-08-20 18:44:24 +0000 | [diff] [blame] | 1536 | This prevents remote hosts from connecting to the proxy display. |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 1537 | However, some older X11 clients may not function with this |
| 1538 | configuration. |
| 1539 | .Cm X11UseLocalhost |
| 1540 | may be set to |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 1541 | .Cm no |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 1542 | to specify that the forwarding server should be bound to the wildcard |
| 1543 | address. |
| 1544 | The argument must be |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 1545 | .Cm yes |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 1546 | or |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 1547 | .Cm no . |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 1548 | The default is |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 1549 | .Cm yes . |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 1550 | .It Cm XAuthLocation |
Damien Miller | 05913ba | 2002-09-04 16:51:03 +1000 | [diff] [blame] | 1551 | Specifies the full pathname of the |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 1552 | .Xr xauth 1 |
dtucker@openbsd.org | 6cc7cfa | 2015-04-16 23:25:50 +0000 | [diff] [blame] | 1553 | program, or |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 1554 | .Cm none |
dtucker@openbsd.org | 6cc7cfa | 2015-04-16 23:25:50 +0000 | [diff] [blame] | 1555 | to not use one. |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 1556 | The default is |
| 1557 | .Pa /usr/X11R6/bin/xauth . |
| 1558 | .El |
Damien Miller | e3beba2 | 2006-03-15 11:59:25 +1100 | [diff] [blame] | 1559 | .Sh TIME FORMATS |
Damien Miller | f4f22b5 | 2006-03-15 11:57:25 +1100 | [diff] [blame] | 1560 | .Xr sshd 8 |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 1561 | command-line arguments and configuration file options that specify time |
| 1562 | may be expressed using a sequence of the form: |
| 1563 | .Sm off |
Ben Lindstrom | 1f8cf4f | 2002-08-20 18:43:27 +0000 | [diff] [blame] | 1564 | .Ar time Op Ar qualifier , |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 1565 | .Sm on |
| 1566 | where |
| 1567 | .Ar time |
| 1568 | is a positive integer value and |
| 1569 | .Ar qualifier |
| 1570 | is one of the following: |
| 1571 | .Pp |
| 1572 | .Bl -tag -width Ds -compact -offset indent |
Damien Miller | 393821a | 2006-07-24 14:04:53 +1000 | [diff] [blame] | 1573 | .It Aq Cm none |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 1574 | seconds |
| 1575 | .It Cm s | Cm S |
| 1576 | seconds |
| 1577 | .It Cm m | Cm M |
| 1578 | minutes |
| 1579 | .It Cm h | Cm H |
| 1580 | hours |
| 1581 | .It Cm d | Cm D |
| 1582 | days |
| 1583 | .It Cm w | Cm W |
| 1584 | weeks |
| 1585 | .El |
| 1586 | .Pp |
| 1587 | Each member of the sequence is added together to calculate |
| 1588 | the total time value. |
| 1589 | .Pp |
| 1590 | Time format examples: |
| 1591 | .Pp |
| 1592 | .Bl -tag -width Ds -compact -offset indent |
| 1593 | .It 600 |
| 1594 | 600 seconds (10 minutes) |
| 1595 | .It 10m |
| 1596 | 10 minutes |
| 1597 | .It 1h30m |
| 1598 | 1 hour 30 minutes (90 minutes) |
| 1599 | .El |
jmc@openbsd.org | de6a175 | 2016-09-22 19:19:01 +0000 | [diff] [blame] | 1600 | .Sh TOKENS |
| 1601 | Arguments to some keywords can make use of tokens, |
| 1602 | which are expanded at runtime: |
| 1603 | .Pp |
| 1604 | .Bl -tag -width XXXX -offset indent -compact |
| 1605 | .It %% |
| 1606 | A literal |
| 1607 | .Sq % . |
| 1608 | .It %F |
| 1609 | The fingerprint of the CA key. |
| 1610 | .It %f |
| 1611 | The fingerprint of the key or certificate. |
| 1612 | .It %h |
| 1613 | The home directory of the user. |
| 1614 | .It %i |
| 1615 | The key ID in the certificate. |
| 1616 | .It %K |
| 1617 | The base64-encoded CA key. |
| 1618 | .It %k |
| 1619 | The base64-encoded key or certificate for authentication. |
| 1620 | .It %s |
| 1621 | The serial number of the certificate. |
| 1622 | .It \&%T |
| 1623 | The type of the CA key. |
| 1624 | .It %t |
| 1625 | The key or certificate type. |
| 1626 | .It %u |
| 1627 | The username. |
| 1628 | .El |
| 1629 | .Pp |
| 1630 | .Cm AuthorizedKeysCommand |
jmc@openbsd.org | a1187bd | 2017-01-06 16:28:12 +0000 | [diff] [blame] | 1631 | accepts the tokens %%, %f, %h, %k, %t, and %u. |
jmc@openbsd.org | de6a175 | 2016-09-22 19:19:01 +0000 | [diff] [blame] | 1632 | .Pp |
| 1633 | .Cm AuthorizedKeysFile |
| 1634 | accepts the tokens %%, %h, and %u. |
| 1635 | .Pp |
| 1636 | .Cm AuthorizedPrincipalsCommand |
jmc@openbsd.org | a1187bd | 2017-01-06 16:28:12 +0000 | [diff] [blame] | 1637 | accepts the tokens %%, %F, %f, %h, %i, %K, %k, %s, %T, %t, and %u. |
jmc@openbsd.org | de6a175 | 2016-09-22 19:19:01 +0000 | [diff] [blame] | 1638 | .Pp |
| 1639 | .Cm AuthorizedPrincipalsFile |
| 1640 | accepts the tokens %%, %h, and %u. |
| 1641 | .Pp |
| 1642 | .Cm ChrootDirectory |
| 1643 | accepts the tokens %%, %h, and %u. |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 1644 | .Sh FILES |
| 1645 | .Bl -tag -width Ds |
| 1646 | .It Pa /etc/ssh/sshd_config |
| 1647 | Contains configuration data for |
Damien Miller | f4f22b5 | 2006-03-15 11:57:25 +1100 | [diff] [blame] | 1648 | .Xr sshd 8 . |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 1649 | This file should be writable by root only, but it is recommended |
| 1650 | (though not necessary) that it be world-readable. |
| 1651 | .El |
Damien Miller | f1ce505 | 2003-06-11 22:04:39 +1000 | [diff] [blame] | 1652 | .Sh SEE ALSO |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 1653 | .Xr sftp-server 8 , |
Damien Miller | f1ce505 | 2003-06-11 22:04:39 +1000 | [diff] [blame] | 1654 | .Xr sshd 8 |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 1655 | .Sh AUTHORS |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 1656 | .An -nosplit |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 1657 | OpenSSH is a derivative of the original and free |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 1658 | ssh 1.2.12 release by |
| 1659 | .An Tatu Ylonen . |
| 1660 | .An Aaron Campbell , Bob Beck , Markus Friedl , Niels Provos , |
| 1661 | .An Theo de Raadt |
| 1662 | and |
| 1663 | .An Dug Song |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 1664 | removed many bugs, re-added newer features and |
| 1665 | created OpenSSH. |
jmc@openbsd.org | aae4dbd | 2016-10-07 14:41:52 +0000 | [diff] [blame] | 1666 | .An Markus Friedl |
| 1667 | contributed the support for SSH protocol versions 1.5 and 2.0. |
| 1668 | .An Niels Provos |
| 1669 | and |
| 1670 | .An Markus Friedl |
| 1671 | contributed support for privilege separation. |