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 | .\" |
Damien Miller | 72abeb7 | 2013-01-20 22:33:44 +1100 | [diff] [blame] | 36 | .\" $OpenBSD: sshd_config.5,v 1.155 2013/01/18 08:00:49 jmc Exp $ |
| 37 | .Dd $Mdocdate: January 18 2013 $ |
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. |
Darren Tucker | 1e0c9bf | 2004-05-02 22:12:48 +1000 | [diff] [blame] | 73 | Note that environment passing is only supported for protocol 2. |
Darren Tucker | 46bc075 | 2004-05-02 22:11:30 +1000 | [diff] [blame] | 74 | Variables are specified by name, which may contain the wildcard characters |
Damien Miller | 208f1ed | 2006-03-15 11:56:03 +1100 | [diff] [blame] | 75 | .Ql * |
Darren Tucker | 46bc075 | 2004-05-02 22:11:30 +1000 | [diff] [blame] | 76 | and |
| 77 | .Ql \&? . |
Darren Tucker | 1e0c9bf | 2004-05-02 22:12:48 +1000 | [diff] [blame] | 78 | Multiple environment variables may be separated by whitespace or spread |
Darren Tucker | 46bc075 | 2004-05-02 22:11:30 +1000 | [diff] [blame] | 79 | across multiple |
| 80 | .Cm AcceptEnv |
| 81 | directives. |
Darren Tucker | 1e0c9bf | 2004-05-02 22:12:48 +1000 | [diff] [blame] | 82 | Be warned that some environment variables could be used to bypass restricted |
Darren Tucker | 46bc075 | 2004-05-02 22:11:30 +1000 | [diff] [blame] | 83 | user environments. |
| 84 | For this reason, care should be taken in the use of this directive. |
| 85 | The default is not to accept any environment variables. |
Darren Tucker | 0f38323 | 2005-01-20 10:57:56 +1100 | [diff] [blame] | 86 | .It Cm AddressFamily |
| 87 | Specifies which address family should be used by |
Damien Miller | f4f22b5 | 2006-03-15 11:57:25 +1100 | [diff] [blame] | 88 | .Xr sshd 8 . |
Darren Tucker | 0f38323 | 2005-01-20 10:57:56 +1100 | [diff] [blame] | 89 | Valid arguments are |
| 90 | .Dq any , |
| 91 | .Dq inet |
Damien Miller | 5b0d63f | 2006-03-15 11:56:56 +1100 | [diff] [blame] | 92 | (use IPv4 only), or |
Darren Tucker | 0f38323 | 2005-01-20 10:57:56 +1100 | [diff] [blame] | 93 | .Dq inet6 |
| 94 | (use IPv6 only). |
| 95 | The default is |
| 96 | .Dq any . |
Damien Miller | e989019 | 2008-05-19 14:59:02 +1000 | [diff] [blame] | 97 | .It Cm AllowAgentForwarding |
| 98 | Specifies whether |
| 99 | .Xr ssh-agent 1 |
| 100 | forwarding is permitted. |
| 101 | The default is |
| 102 | .Dq yes . |
| 103 | Note that disabling agent forwarding does not improve security |
| 104 | unless users are also denied shell access, as they can always install |
| 105 | their own forwarders. |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 106 | .It Cm AllowGroups |
| 107 | This keyword can be followed by a list of group name patterns, separated |
| 108 | by spaces. |
| 109 | If specified, login is allowed only for users whose primary |
| 110 | group or supplementary group list matches one of the patterns. |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 111 | Only group names are valid; a numerical group ID is not recognized. |
| 112 | By default, login is allowed for all groups. |
Damien Miller | ac73e51 | 2006-03-15 11:58:49 +1100 | [diff] [blame] | 113 | The allow/deny directives are processed in the following order: |
| 114 | .Cm DenyUsers , |
| 115 | .Cm AllowUsers , |
| 116 | .Cm DenyGroups , |
| 117 | and finally |
| 118 | .Cm AllowGroups . |
Damien Miller | 0c2079d | 2006-03-15 11:54:21 +1100 | [diff] [blame] | 119 | .Pp |
| 120 | See |
| 121 | .Sx PATTERNS |
| 122 | in |
| 123 | .Xr ssh_config 5 |
| 124 | for more information on patterns. |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 125 | .It Cm AllowTcpForwarding |
| 126 | Specifies whether TCP forwarding is permitted. |
Damien Miller | aa5b3f8 | 2012-12-03 09:50:54 +1100 | [diff] [blame] | 127 | The available options are |
| 128 | .Dq yes |
| 129 | or |
| 130 | .Dq all |
| 131 | to allow TCP forwarding, |
| 132 | .Dq no |
| 133 | to prevent all TCP forwarding, |
| 134 | .Dq local |
| 135 | to allow local (from the perspective of |
Darren Tucker | f9333d5 | 2012-12-07 13:06:13 +1100 | [diff] [blame] | 136 | .Xr ssh 1 ) |
| 137 | forwarding only or |
Damien Miller | aa5b3f8 | 2012-12-03 09:50:54 +1100 | [diff] [blame] | 138 | .Dq remote |
| 139 | to allow remote forwarding only. |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 140 | The default is |
| 141 | .Dq yes . |
| 142 | Note that disabling TCP forwarding does not improve security unless |
| 143 | users are also denied shell access, as they can always install their |
| 144 | own forwarders. |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 145 | .It Cm AllowUsers |
| 146 | This keyword can be followed by a list of user name patterns, separated |
| 147 | by spaces. |
Damien Miller | 5a93add | 2003-01-24 11:34:52 +1100 | [diff] [blame] | 148 | If specified, login is allowed only for user names that |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 149 | match one of the patterns. |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 150 | Only user names are valid; a numerical user ID is not recognized. |
| 151 | By default, login is allowed for all users. |
| 152 | If the pattern takes the form USER@HOST then USER and HOST |
| 153 | are separately checked, restricting logins to particular |
| 154 | users from particular hosts. |
Damien Miller | ac73e51 | 2006-03-15 11:58:49 +1100 | [diff] [blame] | 155 | The allow/deny directives are processed in the following order: |
| 156 | .Cm DenyUsers , |
| 157 | .Cm AllowUsers , |
| 158 | .Cm DenyGroups , |
| 159 | and finally |
| 160 | .Cm AllowGroups . |
Damien Miller | 0c2079d | 2006-03-15 11:54:21 +1100 | [diff] [blame] | 161 | .Pp |
| 162 | See |
| 163 | .Sx PATTERNS |
| 164 | in |
| 165 | .Xr ssh_config 5 |
| 166 | for more information on patterns. |
Damien Miller | a6e3f01 | 2012-11-04 23:21:40 +1100 | [diff] [blame] | 167 | .It Cm AuthenticationMethods |
| 168 | Specifies the authentication methods that must be successfully completed |
| 169 | for a user to be granted access. |
| 170 | This option must be followed by one or more comma-separated lists of |
| 171 | authentication method names. |
| 172 | Successful authentication requires completion of every method in at least |
| 173 | one of these lists. |
| 174 | .Pp |
| 175 | For example, an argument of |
| 176 | .Dq publickey,password publickey,keyboard-interactive |
| 177 | would require the user to complete public key authentication, followed by |
| 178 | either password or keyboard interactive authentication. |
| 179 | Only methods that are next in one or more lists are offered at each stage, |
| 180 | so for this example, it would not be possible to attempt password or |
| 181 | keyboard-interactive authentication before public key. |
| 182 | .Pp |
| 183 | This option is only available for SSH protocol 2 and will yield a fatal |
| 184 | error if enabled if protocol 1 is also enabled. |
| 185 | Note that each authentication method listed should also be explicitly enabled |
| 186 | in the configuration. |
| 187 | The default is not to require multiple authentication; successful completion |
| 188 | of a single authentication method is sufficient. |
Damien Miller | 09d3e12 | 2012-10-31 08:58:58 +1100 | [diff] [blame] | 189 | .It Cm AuthorizedKeysCommand |
Damien Miller | f33580e | 2012-11-04 22:22:52 +1100 | [diff] [blame] | 190 | Specifies a program to be used to look up the user's public keys. |
Damien Miller | 09d3e12 | 2012-10-31 08:58:58 +1100 | [diff] [blame] | 191 | The program will be invoked with a single argument of the username |
| 192 | being authenticated, and should produce on standard output zero or |
Damien Miller | f33580e | 2012-11-04 22:22:52 +1100 | [diff] [blame] | 193 | more lines of authorized_keys output (see |
| 194 | .Sx AUTHORIZED_KEYS |
| 195 | in |
| 196 | .Xr sshd 8 ) . |
Damien Miller | 09d3e12 | 2012-10-31 08:58:58 +1100 | [diff] [blame] | 197 | If a key supplied by AuthorizedKeysCommand does not successfully authenticate |
| 198 | and authorize the user then public key authentication continues using the usual |
| 199 | .Cm AuthorizedKeysFile |
| 200 | files. |
| 201 | By default, no AuthorizedKeysCommand is run. |
| 202 | .It Cm AuthorizedKeysCommandUser |
| 203 | Specifies the user under whose account the AuthorizedKeysCommand is run. |
Damien Miller | 09d3e12 | 2012-10-31 08:58:58 +1100 | [diff] [blame] | 204 | It is recommended to use a dedicated user that has no other role on the host |
| 205 | than running authorized keys commands. |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 206 | .It Cm AuthorizedKeysFile |
| 207 | Specifies the file that contains the public keys that can be used |
| 208 | for user authentication. |
Damien Miller | 6018a36 | 2010-07-02 13:35:19 +1000 | [diff] [blame] | 209 | The format is described in the |
| 210 | .Sx AUTHORIZED_KEYS FILE FORMAT |
| 211 | section of |
| 212 | .Xr sshd 8 . |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 213 | .Cm AuthorizedKeysFile |
| 214 | may contain tokens of the form %T which are substituted during connection |
Damien Miller | 5b0d63f | 2006-03-15 11:56:56 +1100 | [diff] [blame] | 215 | setup. |
Damien Miller | fbf486b | 2003-05-23 18:44:23 +1000 | [diff] [blame] | 216 | The following tokens are defined: %% is replaced by a literal '%', |
Damien Miller | 5b0d63f | 2006-03-15 11:56:56 +1100 | [diff] [blame] | 217 | %h is replaced by the home directory of the user being authenticated, and |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 218 | %u is replaced by the username of that user. |
| 219 | After expansion, |
| 220 | .Cm AuthorizedKeysFile |
| 221 | is taken to be an absolute path or one relative to the user's home |
| 222 | directory. |
Damien Miller | b9132fc | 2011-05-29 21:41:40 +1000 | [diff] [blame] | 223 | Multiple files may be listed, separated by whitespace. |
| 224 | The default is |
| 225 | .Dq .ssh/authorized_keys .ssh/authorized_keys2 . |
Damien Miller | 30da344 | 2010-05-10 11:58:03 +1000 | [diff] [blame] | 226 | .It Cm AuthorizedPrincipalsFile |
| 227 | Specifies a file that lists principal names that are accepted for |
| 228 | certificate authentication. |
| 229 | When using certificates signed by a key listed in |
| 230 | .Cm TrustedUserCAKeys , |
| 231 | this file lists names, one of which must appear in the certificate for it |
| 232 | to be accepted for authentication. |
Damien Miller | d59dab8 | 2010-07-02 13:37:17 +1000 | [diff] [blame] | 233 | Names are listed one per line preceded by key options (as described |
Damien Miller | 6018a36 | 2010-07-02 13:35:19 +1000 | [diff] [blame] | 234 | in |
| 235 | .Sx AUTHORIZED_KEYS FILE FORMAT |
| 236 | in |
Damien Miller | d59dab8 | 2010-07-02 13:37:17 +1000 | [diff] [blame] | 237 | .Xr sshd 8 ) . |
Damien Miller | 6018a36 | 2010-07-02 13:35:19 +1000 | [diff] [blame] | 238 | Empty lines and comments starting with |
Damien Miller | 30da344 | 2010-05-10 11:58:03 +1000 | [diff] [blame] | 239 | .Ql # |
| 240 | are ignored. |
| 241 | .Pp |
| 242 | .Cm AuthorizedPrincipalsFile |
| 243 | may contain tokens of the form %T which are substituted during connection |
| 244 | setup. |
| 245 | The following tokens are defined: %% is replaced by a literal '%', |
| 246 | %h is replaced by the home directory of the user being authenticated, and |
| 247 | %u is replaced by the username of that user. |
| 248 | After expansion, |
| 249 | .Cm AuthorizedPrincipalsFile |
| 250 | is taken to be an absolute path or one relative to the user's home |
| 251 | directory. |
| 252 | .Pp |
Damien Miller | 8fef9eb | 2012-04-22 11:25:10 +1000 | [diff] [blame] | 253 | The default is |
| 254 | .Dq none , |
| 255 | 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] | 256 | of the user must appear in a certificate's principals list for it to be |
| 257 | accepted. |
| 258 | Note that |
| 259 | .Cm AuthorizedPrincipalsFile |
| 260 | is only used when authentication proceeds using a CA listed in |
| 261 | .Cm TrustedUserCAKeys |
| 262 | and is not consulted for certification authorities trusted via |
| 263 | .Pa ~/.ssh/authorized_keys , |
| 264 | though the |
| 265 | .Cm principals= |
| 266 | key option offers a similar facility (see |
| 267 | .Xr sshd 8 |
| 268 | for details). |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 269 | .It Cm Banner |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 270 | The contents of the specified file are sent to the remote user before |
| 271 | authentication is allowed. |
Damien Miller | 4890e53 | 2007-09-17 11:57:38 +1000 | [diff] [blame] | 272 | If the argument is |
| 273 | .Dq none |
| 274 | then no banner is displayed. |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 275 | This option is only available for protocol version 2. |
| 276 | By default, no banner is displayed. |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 277 | .It Cm ChallengeResponseAuthentication |
Damien Miller | 9c7bf8d | 2009-08-28 10:27:08 +1000 | [diff] [blame] | 278 | Specifies whether challenge-response authentication is allowed (e.g. via |
| 279 | PAM or though authentication styles supported in |
| 280 | .Xr login.conf 5 ) |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 281 | The default is |
| 282 | .Dq yes . |
Damien Miller | d8cb1f1 | 2008-02-10 22:40:12 +1100 | [diff] [blame] | 283 | .It Cm ChrootDirectory |
Darren Tucker | b8c884a | 2010-01-08 18:53:43 +1100 | [diff] [blame] | 284 | Specifies the pathname of a directory to |
Damien Miller | d8cb1f1 | 2008-02-10 22:40:12 +1100 | [diff] [blame] | 285 | .Xr chroot 2 |
| 286 | to after authentication. |
Darren Tucker | b8c884a | 2010-01-08 18:53:43 +1100 | [diff] [blame] | 287 | All components of the pathname must be root-owned directories that are |
Damien Miller | d8cb1f1 | 2008-02-10 22:40:12 +1100 | [diff] [blame] | 288 | not writable by any other user or group. |
Darren Tucker | 51dbe50 | 2009-06-21 17:56:51 +1000 | [diff] [blame] | 289 | After the chroot, |
| 290 | .Xr sshd 8 |
| 291 | changes the working directory to the user's home directory. |
Damien Miller | d8cb1f1 | 2008-02-10 22:40:12 +1100 | [diff] [blame] | 292 | .Pp |
Darren Tucker | b8c884a | 2010-01-08 18:53:43 +1100 | [diff] [blame] | 293 | The pathname may contain the following tokens that are expanded at runtime once |
Damien Miller | d8cb1f1 | 2008-02-10 22:40:12 +1100 | [diff] [blame] | 294 | the connecting user has been authenticated: %% is replaced by a literal '%', |
| 295 | %h is replaced by the home directory of the user being authenticated, and |
| 296 | %u is replaced by the username of that user. |
| 297 | .Pp |
| 298 | The |
| 299 | .Cm ChrootDirectory |
| 300 | must contain the necessary files and directories to support the |
Darren Tucker | af501cf | 2009-06-21 17:53:04 +1000 | [diff] [blame] | 301 | user's session. |
Damien Miller | d8cb1f1 | 2008-02-10 22:40:12 +1100 | [diff] [blame] | 302 | For an interactive session this requires at least a shell, typically |
| 303 | .Xr sh 1 , |
| 304 | and basic |
| 305 | .Pa /dev |
| 306 | nodes such as |
| 307 | .Xr null 4 , |
| 308 | .Xr zero 4 , |
| 309 | .Xr stdin 4 , |
| 310 | .Xr stdout 4 , |
| 311 | .Xr stderr 4 , |
| 312 | .Xr arandom 4 |
| 313 | and |
| 314 | .Xr tty 4 |
| 315 | devices. |
| 316 | For file transfer sessions using |
Darren Tucker | f92077f | 2009-06-21 17:56:25 +1000 | [diff] [blame] | 317 | .Dq sftp , |
Damien Miller | d8cb1f1 | 2008-02-10 22:40:12 +1100 | [diff] [blame] | 318 | no additional configuration of the environment is necessary if the |
Darren Tucker | f92077f | 2009-06-21 17:56:25 +1000 | [diff] [blame] | 319 | in-process sftp server is used, |
| 320 | though sessions which use logging do require |
Darren Tucker | 00fcd71 | 2009-06-21 17:56:00 +1000 | [diff] [blame] | 321 | .Pa /dev/log |
| 322 | inside the chroot directory (see |
| 323 | .Xr sftp-server 8 |
| 324 | for details). |
Damien Miller | d8cb1f1 | 2008-02-10 22:40:12 +1100 | [diff] [blame] | 325 | .Pp |
| 326 | The default is not to |
| 327 | .Xr chroot 2 . |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 328 | .It Cm Ciphers |
| 329 | Specifies the ciphers allowed for protocol version 2. |
| 330 | Multiple ciphers must be comma-separated. |
Damien Miller | 05202ff | 2004-06-15 10:30:39 +1000 | [diff] [blame] | 331 | The supported ciphers are |
| 332 | .Dq 3des-cbc , |
| 333 | .Dq aes128-cbc , |
| 334 | .Dq aes192-cbc , |
| 335 | .Dq aes256-cbc , |
| 336 | .Dq aes128-ctr , |
| 337 | .Dq aes192-ctr , |
| 338 | .Dq aes256-ctr , |
Damien Miller | 1d75abf | 2013-01-09 16:12:19 +1100 | [diff] [blame] | 339 | .Dq aes128-gcm@openssh.com , |
| 340 | .Dq aes256-gcm@openssh.com , |
Damien Miller | 3710f27 | 2005-05-26 12:19:17 +1000 | [diff] [blame] | 341 | .Dq arcfour128 , |
| 342 | .Dq arcfour256 , |
Damien Miller | 05202ff | 2004-06-15 10:30:39 +1000 | [diff] [blame] | 343 | .Dq arcfour , |
| 344 | .Dq blowfish-cbc , |
| 345 | and |
| 346 | .Dq cast128-cbc . |
Damien Miller | 5b0d63f | 2006-03-15 11:56:56 +1100 | [diff] [blame] | 347 | The default is: |
| 348 | .Bd -literal -offset 3n |
Damien Miller | 9aa72ba | 2009-01-28 16:34:00 +1100 | [diff] [blame] | 349 | aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128, |
Damien Miller | 1d75abf | 2013-01-09 16:12:19 +1100 | [diff] [blame] | 350 | aes128-gcm@openssh.com,aes256-gcm@openssh.com, |
Damien Miller | 9aa72ba | 2009-01-28 16:34:00 +1100 | [diff] [blame] | 351 | aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc, |
| 352 | aes256-cbc,arcfour |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 353 | .Ed |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 354 | .It Cm ClientAliveCountMax |
Damien Miller | b797770 | 2006-01-03 18:47:31 +1100 | [diff] [blame] | 355 | Sets the number of client alive messages (see below) which may be |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 356 | sent without |
Damien Miller | 5b0d63f | 2006-03-15 11:56:56 +1100 | [diff] [blame] | 357 | .Xr sshd 8 |
Damien Miller | fbf486b | 2003-05-23 18:44:23 +1000 | [diff] [blame] | 358 | receiving any messages back from the client. |
| 359 | If this threshold is reached while client alive messages are being sent, |
Damien Miller | 5b0d63f | 2006-03-15 11:56:56 +1100 | [diff] [blame] | 360 | sshd will disconnect the client, terminating the session. |
Damien Miller | fbf486b | 2003-05-23 18:44:23 +1000 | [diff] [blame] | 361 | It is important to note that the use of client alive messages is very |
| 362 | different from |
Damien Miller | 12c150e | 2003-12-17 16:31:10 +1100 | [diff] [blame] | 363 | .Cm TCPKeepAlive |
Damien Miller | fbf486b | 2003-05-23 18:44:23 +1000 | [diff] [blame] | 364 | (below). |
| 365 | The client alive messages are sent through the encrypted channel |
| 366 | and therefore will not be spoofable. |
| 367 | The TCP keepalive option enabled by |
Damien Miller | 12c150e | 2003-12-17 16:31:10 +1100 | [diff] [blame] | 368 | .Cm TCPKeepAlive |
Damien Miller | fbf486b | 2003-05-23 18:44:23 +1000 | [diff] [blame] | 369 | is spoofable. |
| 370 | The client alive mechanism is valuable when the client or |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 371 | server depend on knowing when a connection has become inactive. |
| 372 | .Pp |
Damien Miller | fbf486b | 2003-05-23 18:44:23 +1000 | [diff] [blame] | 373 | The default value is 3. |
| 374 | If |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 375 | .Cm ClientAliveInterval |
Damien Miller | b797770 | 2006-01-03 18:47:31 +1100 | [diff] [blame] | 376 | (see below) is set to 15, and |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 377 | .Cm ClientAliveCountMax |
Damien Miller | 5b0d63f | 2006-03-15 11:56:56 +1100 | [diff] [blame] | 378 | is left at the default, unresponsive SSH clients |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 379 | will be disconnected after approximately 45 seconds. |
Damien Miller | cc3e8ba | 2006-03-15 12:06:55 +1100 | [diff] [blame] | 380 | This option applies to protocol version 2 only. |
Damien Miller | 1594ad5 | 2005-05-26 12:12:19 +1000 | [diff] [blame] | 381 | .It Cm ClientAliveInterval |
| 382 | Sets a timeout interval in seconds after which if no data has been received |
| 383 | from the client, |
Damien Miller | 5b0d63f | 2006-03-15 11:56:56 +1100 | [diff] [blame] | 384 | .Xr sshd 8 |
Damien Miller | 1594ad5 | 2005-05-26 12:12:19 +1000 | [diff] [blame] | 385 | will send a message through the encrypted |
| 386 | channel to request a response from the client. |
| 387 | The default |
| 388 | is 0, indicating that these messages will not be sent to the client. |
| 389 | This option applies to protocol version 2 only. |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 390 | .It Cm Compression |
Damien Miller | 9786e6e | 2005-07-26 21:54:56 +1000 | [diff] [blame] | 391 | Specifies whether compression is allowed, or delayed until |
| 392 | the user has authenticated successfully. |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 393 | The argument must be |
Damien Miller | 9786e6e | 2005-07-26 21:54:56 +1000 | [diff] [blame] | 394 | .Dq yes , |
| 395 | .Dq delayed , |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 396 | or |
| 397 | .Dq no . |
| 398 | The default is |
Damien Miller | 9786e6e | 2005-07-26 21:54:56 +1000 | [diff] [blame] | 399 | .Dq delayed . |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 400 | .It Cm DenyGroups |
| 401 | This keyword can be followed by a list of group name patterns, separated |
| 402 | by spaces. |
| 403 | Login is disallowed for users whose primary group or supplementary |
| 404 | group list matches one of the patterns. |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 405 | Only group names are valid; a numerical group ID is not recognized. |
| 406 | By default, login is allowed for all groups. |
Damien Miller | ac73e51 | 2006-03-15 11:58:49 +1100 | [diff] [blame] | 407 | The allow/deny directives are processed in the following order: |
| 408 | .Cm DenyUsers , |
| 409 | .Cm AllowUsers , |
| 410 | .Cm DenyGroups , |
| 411 | and finally |
| 412 | .Cm AllowGroups . |
Damien Miller | 0c2079d | 2006-03-15 11:54:21 +1100 | [diff] [blame] | 413 | .Pp |
| 414 | See |
| 415 | .Sx PATTERNS |
| 416 | in |
| 417 | .Xr ssh_config 5 |
| 418 | for more information on patterns. |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 419 | .It Cm DenyUsers |
| 420 | This keyword can be followed by a list of user name patterns, separated |
| 421 | by spaces. |
| 422 | Login is disallowed for user names that match one of the patterns. |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 423 | Only user names are valid; a numerical user ID is not recognized. |
| 424 | By default, login is allowed for all users. |
| 425 | If the pattern takes the form USER@HOST then USER and HOST |
| 426 | are separately checked, restricting logins to particular |
| 427 | users from particular hosts. |
Damien Miller | ac73e51 | 2006-03-15 11:58:49 +1100 | [diff] [blame] | 428 | The allow/deny directives are processed in the following order: |
| 429 | .Cm DenyUsers , |
| 430 | .Cm AllowUsers , |
| 431 | .Cm DenyGroups , |
| 432 | and finally |
| 433 | .Cm AllowGroups . |
Damien Miller | 0c2079d | 2006-03-15 11:54:21 +1100 | [diff] [blame] | 434 | .Pp |
| 435 | See |
| 436 | .Sx PATTERNS |
| 437 | in |
| 438 | .Xr ssh_config 5 |
| 439 | for more information on patterns. |
Damien Miller | e275443 | 2006-07-24 14:06:47 +1000 | [diff] [blame] | 440 | .It Cm ForceCommand |
| 441 | Forces the execution of the command specified by |
| 442 | .Cm ForceCommand , |
Damien Miller | a1b48cc | 2008-03-27 11:02:02 +1100 | [diff] [blame] | 443 | ignoring any command supplied by the client and |
| 444 | .Pa ~/.ssh/rc |
| 445 | if present. |
Damien Miller | e275443 | 2006-07-24 14:06:47 +1000 | [diff] [blame] | 446 | The command is invoked by using the user's login shell with the -c option. |
| 447 | This applies to shell, command, or subsystem execution. |
| 448 | It is most useful inside a |
| 449 | .Cm Match |
| 450 | block. |
| 451 | The command originally supplied by the client is available in the |
| 452 | .Ev SSH_ORIGINAL_COMMAND |
| 453 | environment variable. |
Damien Miller | cdb6e65 | 2008-02-10 22:47:24 +1100 | [diff] [blame] | 454 | Specifying a command of |
| 455 | .Dq internal-sftp |
| 456 | will force the use of an in-process sftp server that requires no support |
| 457 | files when used with |
| 458 | .Cm ChrootDirectory . |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 459 | .It Cm GatewayPorts |
| 460 | Specifies whether remote hosts are allowed to connect to ports |
| 461 | forwarded for the client. |
| 462 | By default, |
Damien Miller | 5b0d63f | 2006-03-15 11:56:56 +1100 | [diff] [blame] | 463 | .Xr sshd 8 |
Damien Miller | 495dca3 | 2003-04-01 21:42:14 +1000 | [diff] [blame] | 464 | binds remote port forwardings to the loopback address. |
| 465 | This prevents other remote hosts from connecting to forwarded ports. |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 466 | .Cm GatewayPorts |
Damien Miller | 5b0d63f | 2006-03-15 11:56:56 +1100 | [diff] [blame] | 467 | can be used to specify that sshd |
Damien Miller | f91ee4c | 2005-03-01 21:24:33 +1100 | [diff] [blame] | 468 | should allow remote port forwardings to bind to non-loopback addresses, thus |
| 469 | allowing other hosts to connect. |
| 470 | The argument may be |
| 471 | .Dq no |
| 472 | to force remote port forwardings to be available to the local host only, |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 473 | .Dq yes |
Damien Miller | f91ee4c | 2005-03-01 21:24:33 +1100 | [diff] [blame] | 474 | to force remote port forwardings to bind to the wildcard address, or |
| 475 | .Dq clientspecified |
| 476 | 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] | 477 | The default is |
| 478 | .Dq no . |
Darren Tucker | 0efd155 | 2003-08-26 11:49:55 +1000 | [diff] [blame] | 479 | .It Cm GSSAPIAuthentication |
Damien Miller | 9b7b03b | 2003-09-02 22:57:05 +1000 | [diff] [blame] | 480 | Specifies whether user authentication based on GSSAPI is allowed. |
Damien Miller | a8e06ce | 2003-11-21 23:48:55 +1100 | [diff] [blame] | 481 | The default is |
Darren Tucker | 0efd155 | 2003-08-26 11:49:55 +1000 | [diff] [blame] | 482 | .Dq no . |
| 483 | Note that this option applies to protocol version 2 only. |
| 484 | .It Cm GSSAPICleanupCredentials |
| 485 | Specifies whether to automatically destroy the user's credentials cache |
| 486 | on logout. |
| 487 | The default is |
| 488 | .Dq yes . |
| 489 | Note that this option applies to protocol version 2 only. |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 490 | .It Cm HostbasedAuthentication |
| 491 | Specifies whether rhosts or /etc/hosts.equiv authentication together |
| 492 | with successful public key client host authentication is allowed |
Damien Miller | 1faa713 | 2006-03-15 11:55:31 +1100 | [diff] [blame] | 493 | (host-based authentication). |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 494 | This option is similar to |
| 495 | .Cm RhostsRSAAuthentication |
| 496 | and applies to protocol version 2 only. |
| 497 | The default is |
| 498 | .Dq no . |
Damien Miller | b594f38 | 2006-08-30 11:06:34 +1000 | [diff] [blame] | 499 | .It Cm HostbasedUsesNameFromPacketOnly |
| 500 | Specifies whether or not the server will attempt to perform a reverse |
| 501 | name lookup when matching the name in the |
| 502 | .Pa ~/.shosts , |
| 503 | .Pa ~/.rhosts , |
| 504 | and |
| 505 | .Pa /etc/hosts.equiv |
| 506 | files during |
| 507 | .Cm HostbasedAuthentication . |
| 508 | A setting of |
| 509 | .Dq yes |
| 510 | means that |
| 511 | .Xr sshd 8 |
| 512 | uses the name supplied by the client rather than |
| 513 | attempting to resolve the name from the TCP connection itself. |
| 514 | The default is |
| 515 | .Dq no . |
Damien Miller | 0a80ca1 | 2010-02-27 07:55:05 +1100 | [diff] [blame] | 516 | .It Cm HostCertificate |
| 517 | Specifies a file containing a public host certificate. |
| 518 | The certificate's public key must match a private host key already specified |
| 519 | by |
| 520 | .Cm HostKey . |
| 521 | The default behaviour of |
| 522 | .Xr sshd 8 |
| 523 | is not to load any certificates. |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 524 | .It Cm HostKey |
| 525 | Specifies a file containing a private host key |
| 526 | used by SSH. |
| 527 | The default is |
| 528 | .Pa /etc/ssh/ssh_host_key |
| 529 | for protocol version 1, and |
Damien Miller | eb8b60e | 2010-08-31 22:41:14 +1000 | [diff] [blame] | 530 | .Pa /etc/ssh/ssh_host_dsa_key , |
| 531 | .Pa /etc/ssh/ssh_host_ecdsa_key |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 532 | and |
Damien Miller | eb8b60e | 2010-08-31 22:41:14 +1000 | [diff] [blame] | 533 | .Pa /etc/ssh/ssh_host_rsa_key |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 534 | for protocol version 2. |
| 535 | Note that |
Damien Miller | 5b0d63f | 2006-03-15 11:56:56 +1100 | [diff] [blame] | 536 | .Xr sshd 8 |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 537 | will refuse to use a file if it is group/world-accessible. |
| 538 | It is possible to have multiple host key files. |
| 539 | .Dq rsa1 |
| 540 | keys are used for version 1 and |
Damien Miller | eb8b60e | 2010-08-31 22:41:14 +1000 | [diff] [blame] | 541 | .Dq dsa , |
| 542 | .Dq ecdsa |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 543 | or |
| 544 | .Dq rsa |
| 545 | are used for version 2 of the SSH protocol. |
| 546 | .It Cm IgnoreRhosts |
| 547 | Specifies that |
| 548 | .Pa .rhosts |
| 549 | and |
| 550 | .Pa .shosts |
| 551 | files will not be used in |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 552 | .Cm RhostsRSAAuthentication |
| 553 | or |
| 554 | .Cm HostbasedAuthentication . |
| 555 | .Pp |
| 556 | .Pa /etc/hosts.equiv |
| 557 | and |
| 558 | .Pa /etc/shosts.equiv |
| 559 | are still used. |
| 560 | The default is |
| 561 | .Dq yes . |
| 562 | .It Cm IgnoreUserKnownHosts |
| 563 | Specifies whether |
Damien Miller | 5b0d63f | 2006-03-15 11:56:56 +1100 | [diff] [blame] | 564 | .Xr sshd 8 |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 565 | should ignore the user's |
Damien Miller | 167ea5d | 2005-05-26 12:04:02 +1000 | [diff] [blame] | 566 | .Pa ~/.ssh/known_hosts |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 567 | during |
| 568 | .Cm RhostsRSAAuthentication |
| 569 | or |
| 570 | .Cm HostbasedAuthentication . |
| 571 | The default is |
| 572 | .Dq no . |
Damien Miller | 0dac6fb | 2010-11-20 15:19:38 +1100 | [diff] [blame] | 573 | .It Cm IPQoS |
| 574 | Specifies the IPv4 type-of-service or DSCP class for the connection. |
| 575 | Accepted values are |
| 576 | .Dq af11 , |
| 577 | .Dq af12 , |
| 578 | .Dq af13 , |
Damien Miller | f6e758c | 2011-09-22 21:37:13 +1000 | [diff] [blame] | 579 | .Dq af21 , |
Damien Miller | 0dac6fb | 2010-11-20 15:19:38 +1100 | [diff] [blame] | 580 | .Dq af22 , |
| 581 | .Dq af23 , |
| 582 | .Dq af31 , |
| 583 | .Dq af32 , |
| 584 | .Dq af33 , |
| 585 | .Dq af41 , |
| 586 | .Dq af42 , |
| 587 | .Dq af43 , |
| 588 | .Dq cs0 , |
| 589 | .Dq cs1 , |
| 590 | .Dq cs2 , |
| 591 | .Dq cs3 , |
| 592 | .Dq cs4 , |
| 593 | .Dq cs5 , |
| 594 | .Dq cs6 , |
| 595 | .Dq cs7 , |
| 596 | .Dq ef , |
| 597 | .Dq lowdelay , |
| 598 | .Dq throughput , |
| 599 | .Dq reliability , |
| 600 | or a numeric value. |
Damien Miller | 928362d | 2010-12-26 14:26:45 +1100 | [diff] [blame] | 601 | This option may take one or two arguments, separated by whitespace. |
Damien Miller | 0dac6fb | 2010-11-20 15:19:38 +1100 | [diff] [blame] | 602 | If one argument is specified, it is used as the packet class unconditionally. |
| 603 | If two values are specified, the first is automatically selected for |
| 604 | interactive sessions and the second for non-interactive sessions. |
| 605 | The default is |
| 606 | .Dq lowdelay |
| 607 | for interactive sessions and |
| 608 | .Dq throughput |
| 609 | for non-interactive sessions. |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 610 | .It Cm KerberosAuthentication |
Damien Miller | 1a0c0b9 | 2003-09-02 22:51:17 +1000 | [diff] [blame] | 611 | Specifies whether the password provided by the user for |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 612 | .Cm PasswordAuthentication |
Damien Miller | 1a0c0b9 | 2003-09-02 22:51:17 +1000 | [diff] [blame] | 613 | will be validated through the Kerberos KDC. |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 614 | To use this option, the server needs a |
| 615 | Kerberos servtab which allows the verification of the KDC's identity. |
Damien Miller | 5b0d63f | 2006-03-15 11:56:56 +1100 | [diff] [blame] | 616 | The default is |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 617 | .Dq no . |
Damien Miller | 8448e66 | 2004-03-08 23:13:15 +1100 | [diff] [blame] | 618 | .It Cm KerberosGetAFSToken |
Darren Tucker | e2dd2d5 | 2005-10-03 18:19:06 +1000 | [diff] [blame] | 619 | 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] | 620 | an AFS token before accessing the user's home directory. |
Damien Miller | 5b0d63f | 2006-03-15 11:56:56 +1100 | [diff] [blame] | 621 | The default is |
Damien Miller | 8448e66 | 2004-03-08 23:13:15 +1100 | [diff] [blame] | 622 | .Dq no . |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 623 | .It Cm KerberosOrLocalPasswd |
Damien Miller | 5b0d63f | 2006-03-15 11:56:56 +1100 | [diff] [blame] | 624 | If password authentication through Kerberos fails then |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 625 | the password will be validated via any additional local mechanism |
| 626 | such as |
| 627 | .Pa /etc/passwd . |
Damien Miller | 5b0d63f | 2006-03-15 11:56:56 +1100 | [diff] [blame] | 628 | The default is |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 629 | .Dq yes . |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 630 | .It Cm KerberosTicketCleanup |
| 631 | Specifies whether to automatically destroy the user's ticket cache |
| 632 | file on logout. |
Damien Miller | 5b0d63f | 2006-03-15 11:56:56 +1100 | [diff] [blame] | 633 | The default is |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 634 | .Dq yes . |
Damien Miller | d5f62bf | 2010-09-24 22:11:14 +1000 | [diff] [blame] | 635 | .It Cm KexAlgorithms |
| 636 | Specifies the available KEX (Key Exchange) algorithms. |
| 637 | Multiple algorithms must be comma-separated. |
| 638 | The default is |
| 639 | .Dq ecdh-sha2-nistp256 , |
| 640 | .Dq ecdh-sha2-nistp384 , |
| 641 | .Dq ecdh-sha2-nistp521 , |
Damien Miller | 0a18473 | 2010-11-20 15:21:03 +1100 | [diff] [blame] | 642 | .Dq diffie-hellman-group-exchange-sha256 , |
Damien Miller | d5f62bf | 2010-09-24 22:11:14 +1000 | [diff] [blame] | 643 | .Dq diffie-hellman-group-exchange-sha1 , |
| 644 | .Dq diffie-hellman-group14-sha1 , |
| 645 | .Dq diffie-hellman-group1-sha1 . |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 646 | .It Cm KeyRegenerationInterval |
| 647 | In protocol version 1, the ephemeral server key is automatically regenerated |
| 648 | after this many seconds (if it has been used). |
| 649 | The purpose of regeneration is to prevent |
| 650 | decrypting captured sessions by later breaking into the machine and |
| 651 | stealing the keys. |
| 652 | The key is never stored anywhere. |
| 653 | If the value is 0, the key is never regenerated. |
| 654 | The default is 3600 (seconds). |
| 655 | .It Cm ListenAddress |
| 656 | Specifies the local addresses |
Damien Miller | 5b0d63f | 2006-03-15 11:56:56 +1100 | [diff] [blame] | 657 | .Xr sshd 8 |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 658 | should listen on. |
| 659 | The following forms may be used: |
| 660 | .Pp |
| 661 | .Bl -item -offset indent -compact |
| 662 | .It |
| 663 | .Cm ListenAddress |
| 664 | .Sm off |
| 665 | .Ar host No | Ar IPv4_addr No | Ar IPv6_addr |
| 666 | .Sm on |
| 667 | .It |
| 668 | .Cm ListenAddress |
| 669 | .Sm off |
| 670 | .Ar host No | Ar IPv4_addr No : Ar port |
| 671 | .Sm on |
| 672 | .It |
| 673 | .Cm ListenAddress |
| 674 | .Sm off |
| 675 | .Oo |
| 676 | .Ar host No | Ar IPv6_addr Oc : Ar port |
| 677 | .Sm on |
| 678 | .El |
| 679 | .Pp |
| 680 | If |
| 681 | .Ar port |
| 682 | is not specified, |
Damien Miller | 5b0d63f | 2006-03-15 11:56:56 +1100 | [diff] [blame] | 683 | sshd will listen on the address and all prior |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 684 | .Cm Port |
Damien Miller | fbf486b | 2003-05-23 18:44:23 +1000 | [diff] [blame] | 685 | options specified. |
| 686 | The default is to listen on all local addresses. |
Damien Miller | 495dca3 | 2003-04-01 21:42:14 +1000 | [diff] [blame] | 687 | Multiple |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 688 | .Cm ListenAddress |
Damien Miller | fbf486b | 2003-05-23 18:44:23 +1000 | [diff] [blame] | 689 | options are permitted. |
| 690 | Additionally, any |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 691 | .Cm Port |
Damien Miller | 5b0d63f | 2006-03-15 11:56:56 +1100 | [diff] [blame] | 692 | options must precede this option for non-port qualified addresses. |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 693 | .It Cm LoginGraceTime |
| 694 | The server disconnects after this time if the user has not |
| 695 | successfully logged in. |
| 696 | If the value is 0, there is no time limit. |
Damien Miller | c134863 | 2002-09-05 14:35:14 +1000 | [diff] [blame] | 697 | The default is 120 seconds. |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 698 | .It Cm LogLevel |
| 699 | Gives the verbosity level that is used when logging messages from |
Damien Miller | f4f22b5 | 2006-03-15 11:57:25 +1100 | [diff] [blame] | 700 | .Xr sshd 8 . |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 701 | The possible values are: |
Damien Miller | 5b0d63f | 2006-03-15 11:56:56 +1100 | [diff] [blame] | 702 | QUIET, FATAL, ERROR, INFO, VERBOSE, DEBUG, DEBUG1, DEBUG2, and DEBUG3. |
Damien Miller | 495dca3 | 2003-04-01 21:42:14 +1000 | [diff] [blame] | 703 | The default is INFO. |
| 704 | DEBUG and DEBUG1 are equivalent. |
| 705 | DEBUG2 and DEBUG3 each specify higher levels of debugging output. |
| 706 | 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] | 707 | .It Cm MACs |
| 708 | Specifies the available MAC (message authentication code) algorithms. |
| 709 | The MAC algorithm is used in protocol version 2 |
| 710 | for data integrity protection. |
| 711 | Multiple algorithms must be comma-separated. |
Damien Miller | af43a7a | 2012-12-12 10:46:31 +1100 | [diff] [blame] | 712 | The algorithms that contain |
| 713 | .Dq -etm |
| 714 | calculate the MAC after encryption (encrypt-then-mac). |
| 715 | These are considered safer and their use recommended. |
Damien Miller | 5b0d63f | 2006-03-15 11:56:56 +1100 | [diff] [blame] | 716 | The default is: |
Damien Miller | 22b7b49 | 2007-06-11 14:07:12 +1000 | [diff] [blame] | 717 | .Bd -literal -offset indent |
Damien Miller | af43a7a | 2012-12-12 10:46:31 +1100 | [diff] [blame] | 718 | hmac-md5-etm@openssh.com,hmac-sha1-etm@openssh.com, |
| 719 | umac-64-etm@openssh.com,umac-128-etm@openssh.com, |
| 720 | hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com, |
| 721 | hmac-ripemd160-etm@openssh.com,hmac-sha1-96-etm@openssh.com, |
| 722 | hmac-md5-96-etm@openssh.com, |
Darren Tucker | 427e409 | 2012-10-05 11:02:39 +1000 | [diff] [blame] | 723 | hmac-md5,hmac-sha1,umac-64@openssh.com,umac-128@openssh.com, |
Darren Tucker | ecbf14a | 2012-07-02 18:53:37 +1000 | [diff] [blame] | 724 | hmac-sha2-256,hmac-sha2-512,hmac-ripemd160, |
| 725 | hmac-sha1-96,hmac-md5-96 |
Damien Miller | 22b7b49 | 2007-06-11 14:07:12 +1000 | [diff] [blame] | 726 | .Ed |
Darren Tucker | 4515047 | 2006-07-12 22:34:17 +1000 | [diff] [blame] | 727 | .It Cm Match |
Damien Miller | d04f357 | 2006-07-24 13:46:50 +1000 | [diff] [blame] | 728 | Introduces a conditional block. |
Damien Miller | 8c23403 | 2006-07-24 14:05:08 +1000 | [diff] [blame] | 729 | If all of the criteria on the |
Darren Tucker | 4515047 | 2006-07-12 22:34:17 +1000 | [diff] [blame] | 730 | .Cm Match |
Damien Miller | 8c23403 | 2006-07-24 14:05:08 +1000 | [diff] [blame] | 731 | line are satisfied, the keywords on the following lines override those |
| 732 | set in the global section of the config file, until either another |
Darren Tucker | 4515047 | 2006-07-12 22:34:17 +1000 | [diff] [blame] | 733 | .Cm Match |
Damien Miller | 8c23403 | 2006-07-24 14:05:08 +1000 | [diff] [blame] | 734 | line or the end of the file. |
Darren Tucker | 7a3935d | 2008-06-10 22:59:10 +1000 | [diff] [blame] | 735 | .Pp |
Damien Miller | d04f357 | 2006-07-24 13:46:50 +1000 | [diff] [blame] | 736 | The arguments to |
Darren Tucker | 4515047 | 2006-07-12 22:34:17 +1000 | [diff] [blame] | 737 | .Cm Match |
Damien Miller | 8c23403 | 2006-07-24 14:05:08 +1000 | [diff] [blame] | 738 | are one or more criteria-pattern pairs. |
Darren Tucker | 4515047 | 2006-07-12 22:34:17 +1000 | [diff] [blame] | 739 | The available criteria are |
| 740 | .Cm User , |
Damien Miller | 565ca3f | 2006-08-19 00:23:15 +1000 | [diff] [blame] | 741 | .Cm Group , |
Darren Tucker | 4515047 | 2006-07-12 22:34:17 +1000 | [diff] [blame] | 742 | .Cm Host , |
Darren Tucker | fbcf827 | 2012-05-19 19:37:01 +1000 | [diff] [blame] | 743 | .Cm LocalAddress , |
| 744 | .Cm LocalPort , |
Darren Tucker | 4515047 | 2006-07-12 22:34:17 +1000 | [diff] [blame] | 745 | and |
| 746 | .Cm Address . |
Darren Tucker | 7a3935d | 2008-06-10 22:59:10 +1000 | [diff] [blame] | 747 | The match patterns may consist of single entries or comma-separated |
| 748 | lists and may use the wildcard and negation operators described in the |
Darren Tucker | b06cc4a | 2008-06-10 22:59:53 +1000 | [diff] [blame] | 749 | .Sx PATTERNS |
Darren Tucker | 7a3935d | 2008-06-10 22:59:10 +1000 | [diff] [blame] | 750 | section of |
Darren Tucker | b06cc4a | 2008-06-10 22:59:53 +1000 | [diff] [blame] | 751 | .Xr ssh_config 5 . |
Darren Tucker | 7a3935d | 2008-06-10 22:59:10 +1000 | [diff] [blame] | 752 | .Pp |
| 753 | The patterns in an |
| 754 | .Cm Address |
| 755 | criteria may additionally contain addresses to match in CIDR |
Darren Tucker | 6a2a400 | 2008-06-10 23:03:04 +1000 | [diff] [blame] | 756 | address/masklen format, e.g.\& |
Darren Tucker | 7a3935d | 2008-06-10 22:59:10 +1000 | [diff] [blame] | 757 | .Dq 192.0.2.0/24 |
| 758 | or |
| 759 | .Dq 3ffe:ffff::/32 . |
| 760 | Note that the mask length provided must be consistent with the address - |
| 761 | 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] | 762 | or one with bits set in this host portion of the address. |
| 763 | For example, |
Darren Tucker | 7a3935d | 2008-06-10 22:59:10 +1000 | [diff] [blame] | 764 | .Dq 192.0.2.0/33 |
| 765 | and |
Darren Tucker | 6a2a400 | 2008-06-10 23:03:04 +1000 | [diff] [blame] | 766 | .Dq 192.0.2.0/8 |
Darren Tucker | 7a3935d | 2008-06-10 22:59:10 +1000 | [diff] [blame] | 767 | respectively. |
| 768 | .Pp |
Darren Tucker | 4515047 | 2006-07-12 22:34:17 +1000 | [diff] [blame] | 769 | Only a subset of keywords may be used on the lines following a |
| 770 | .Cm Match |
| 771 | keyword. |
| 772 | Available keywords are |
Damien Miller | f826850 | 2012-06-20 21:54:15 +1000 | [diff] [blame] | 773 | .Cm AcceptEnv , |
Damien Miller | 1781901 | 2009-01-28 16:20:17 +1100 | [diff] [blame] | 774 | .Cm AllowAgentForwarding , |
Damien Miller | f826850 | 2012-06-20 21:54:15 +1000 | [diff] [blame] | 775 | .Cm AllowGroups , |
Damien Miller | 9b439df | 2006-07-24 14:04:00 +1000 | [diff] [blame] | 776 | .Cm AllowTcpForwarding , |
Damien Miller | c24da77 | 2012-06-20 21:53:58 +1000 | [diff] [blame] | 777 | .Cm AllowUsers , |
Damien Miller | a6e3f01 | 2012-11-04 23:21:40 +1100 | [diff] [blame] | 778 | .Cm AuthenticationMethods , |
Damien Miller | 09d3e12 | 2012-10-31 08:58:58 +1100 | [diff] [blame] | 779 | .Cm AuthorizedKeysCommand , |
| 780 | .Cm AuthorizedKeysCommandUser , |
Damien Miller | f33580e | 2012-11-04 22:22:52 +1100 | [diff] [blame] | 781 | .Cm AuthorizedKeysFile , |
Damien Miller | ab6de35 | 2010-06-26 09:38:45 +1000 | [diff] [blame] | 782 | .Cm AuthorizedPrincipalsFile , |
Darren Tucker | 1629c07 | 2007-02-19 22:25:37 +1100 | [diff] [blame] | 783 | .Cm Banner , |
Damien Miller | 797e3d1 | 2008-05-19 14:27:42 +1000 | [diff] [blame] | 784 | .Cm ChrootDirectory , |
Damien Miller | c24da77 | 2012-06-20 21:53:58 +1000 | [diff] [blame] | 785 | .Cm DenyGroups , |
| 786 | .Cm DenyUsers , |
Damien Miller | e275443 | 2006-07-24 14:06:47 +1000 | [diff] [blame] | 787 | .Cm ForceCommand , |
Damien Miller | c24da77 | 2012-06-20 21:53:58 +1000 | [diff] [blame] | 788 | .Cm GatewayPorts , |
Damien Miller | f826850 | 2012-06-20 21:54:15 +1000 | [diff] [blame] | 789 | .Cm GSSAPIAuthentication , |
Damien Miller | 25434de | 2008-05-19 14:29:08 +1000 | [diff] [blame] | 790 | .Cm HostbasedAuthentication , |
Damien Miller | ab6de35 | 2010-06-26 09:38:45 +1000 | [diff] [blame] | 791 | .Cm HostbasedUsesNameFromPacketOnly , |
Darren Tucker | 1d75f22 | 2007-03-01 21:31:28 +1100 | [diff] [blame] | 792 | .Cm KbdInteractiveAuthentication , |
Damien Miller | 5737e36 | 2007-03-06 21:21:18 +1100 | [diff] [blame] | 793 | .Cm KerberosAuthentication , |
Damien Miller | 307c1d1 | 2008-06-16 07:56:20 +1000 | [diff] [blame] | 794 | .Cm MaxAuthTries , |
Damien Miller | c62a5af | 2008-06-16 07:55:46 +1000 | [diff] [blame] | 795 | .Cm MaxSessions , |
Darren Tucker | 1629c07 | 2007-02-19 22:25:37 +1100 | [diff] [blame] | 796 | .Cm PasswordAuthentication , |
Damien Miller | 51bde60 | 2008-11-03 19:23:10 +1100 | [diff] [blame] | 797 | .Cm PermitEmptyPasswords , |
Damien Miller | d1de995 | 2006-07-24 14:05:48 +1000 | [diff] [blame] | 798 | .Cm PermitOpen , |
Darren Tucker | 15f9427 | 2008-01-01 20:36:56 +1100 | [diff] [blame] | 799 | .Cm PermitRootLogin , |
Damien Miller | ab6de35 | 2010-06-26 09:38:45 +1000 | [diff] [blame] | 800 | .Cm PermitTunnel , |
Darren Tucker | 1477ea1 | 2009-10-07 08:36:05 +1100 | [diff] [blame] | 801 | .Cm PubkeyAuthentication , |
Damien Miller | c24da77 | 2012-06-20 21:53:58 +1000 | [diff] [blame] | 802 | .Cm RhostsRSAAuthentication , |
Damien Miller | f826850 | 2012-06-20 21:54:15 +1000 | [diff] [blame] | 803 | .Cm RSAAuthentication , |
Damien Miller | d1de995 | 2006-07-24 14:05:48 +1000 | [diff] [blame] | 804 | .Cm X11DisplayOffset , |
Damien Miller | 1991384 | 2009-02-23 10:53:58 +1100 | [diff] [blame] | 805 | .Cm X11Forwarding |
Darren Tucker | 4515047 | 2006-07-12 22:34:17 +1000 | [diff] [blame] | 806 | and |
Damien Miller | 0296ae8 | 2009-02-23 11:00:24 +1100 | [diff] [blame] | 807 | .Cm X11UseLocalHost . |
Darren Tucker | 89413db | 2004-05-24 10:36:23 +1000 | [diff] [blame] | 808 | .It Cm MaxAuthTries |
| 809 | Specifies the maximum number of authentication attempts permitted per |
Damien Miller | 26213e5 | 2004-06-30 22:39:34 +1000 | [diff] [blame] | 810 | connection. |
| 811 | Once the number of failures reaches half this value, |
| 812 | additional failures are logged. |
| 813 | The default is 6. |
Damien Miller | 7207f64 | 2008-05-19 15:34:50 +1000 | [diff] [blame] | 814 | .It Cm MaxSessions |
| 815 | Specifies the maximum number of open sessions permitted per network connection. |
| 816 | The default is 10. |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 817 | .It Cm MaxStartups |
| 818 | Specifies the maximum number of concurrent unauthenticated connections to the |
Damien Miller | 5b0d63f | 2006-03-15 11:56:56 +1100 | [diff] [blame] | 819 | SSH daemon. |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 820 | Additional connections will be dropped until authentication succeeds or the |
| 821 | .Cm LoginGraceTime |
| 822 | expires for a connection. |
| 823 | The default is 10. |
| 824 | .Pp |
| 825 | Alternatively, random early drop can be enabled by specifying |
| 826 | the three colon separated values |
| 827 | .Dq start:rate:full |
Damien Miller | 208f1ed | 2006-03-15 11:56:03 +1100 | [diff] [blame] | 828 | (e.g. "10:30:60"). |
Damien Miller | f4f22b5 | 2006-03-15 11:57:25 +1100 | [diff] [blame] | 829 | .Xr sshd 8 |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 830 | will refuse connection attempts with a probability of |
| 831 | .Dq rate/100 |
| 832 | (30%) |
| 833 | if there are currently |
| 834 | .Dq start |
| 835 | (10) |
| 836 | unauthenticated connections. |
| 837 | The probability increases linearly and all connection attempts |
| 838 | are refused if the number of unauthenticated connections reaches |
| 839 | .Dq full |
| 840 | (60). |
| 841 | .It Cm PasswordAuthentication |
| 842 | Specifies whether password authentication is allowed. |
| 843 | The default is |
| 844 | .Dq yes . |
| 845 | .It Cm PermitEmptyPasswords |
| 846 | When password authentication is allowed, it specifies whether the |
| 847 | server allows login to accounts with empty password strings. |
| 848 | The default is |
| 849 | .Dq no . |
Damien Miller | 9b439df | 2006-07-24 14:04:00 +1000 | [diff] [blame] | 850 | .It Cm PermitOpen |
| 851 | Specifies the destinations to which TCP port forwarding is permitted. |
| 852 | The forwarding specification must be one of the following forms: |
| 853 | .Pp |
| 854 | .Bl -item -offset indent -compact |
| 855 | .It |
| 856 | .Cm PermitOpen |
| 857 | .Sm off |
| 858 | .Ar host : port |
| 859 | .Sm on |
| 860 | .It |
| 861 | .Cm PermitOpen |
| 862 | .Sm off |
| 863 | .Ar IPv4_addr : port |
| 864 | .Sm on |
| 865 | .It |
| 866 | .Cm PermitOpen |
| 867 | .Sm off |
| 868 | .Ar \&[ IPv6_addr \&] : port |
| 869 | .Sm on |
| 870 | .El |
| 871 | .Pp |
Damien Miller | a765cf4 | 2006-07-24 14:08:13 +1000 | [diff] [blame] | 872 | Multiple forwards may be specified by separating them with whitespace. |
Damien Miller | 9b439df | 2006-07-24 14:04:00 +1000 | [diff] [blame] | 873 | An argument of |
| 874 | .Dq any |
| 875 | can be used to remove all restrictions and permit any forwarding requests. |
Darren Tucker | ba9ea32 | 2012-05-19 19:37:33 +1000 | [diff] [blame] | 876 | An argument of |
| 877 | .Dq none |
| 878 | can be used to prohibit all forwarding requests. |
Damien Miller | 65bc2c4 | 2006-07-24 14:04:16 +1000 | [diff] [blame] | 879 | By default all port forwarding requests are permitted. |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 880 | .It Cm PermitRootLogin |
Darren Tucker | b350901 | 2005-01-20 11:01:46 +1100 | [diff] [blame] | 881 | Specifies whether root can log in using |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 882 | .Xr ssh 1 . |
| 883 | The argument must be |
| 884 | .Dq yes , |
| 885 | .Dq without-password , |
Damien Miller | 5b0d63f | 2006-03-15 11:56:56 +1100 | [diff] [blame] | 886 | .Dq forced-commands-only , |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 887 | or |
| 888 | .Dq no . |
| 889 | The default is |
| 890 | .Dq yes . |
| 891 | .Pp |
| 892 | If this option is set to |
Damien Miller | 5b0d63f | 2006-03-15 11:56:56 +1100 | [diff] [blame] | 893 | .Dq without-password , |
Darren Tucker | 9dca099 | 2005-02-01 19:16:45 +1100 | [diff] [blame] | 894 | password authentication is disabled for root. |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 895 | .Pp |
| 896 | If this option is set to |
Damien Miller | 5b0d63f | 2006-03-15 11:56:56 +1100 | [diff] [blame] | 897 | .Dq forced-commands-only , |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 898 | root login with public key authentication will be allowed, |
| 899 | but only if the |
| 900 | .Ar command |
| 901 | option has been specified |
| 902 | (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] | 903 | normally not allowed). |
| 904 | All other authentication methods are disabled for root. |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 905 | .Pp |
| 906 | If this option is set to |
Damien Miller | 5b0d63f | 2006-03-15 11:56:56 +1100 | [diff] [blame] | 907 | .Dq no , |
Darren Tucker | b350901 | 2005-01-20 11:01:46 +1100 | [diff] [blame] | 908 | root is not allowed to log in. |
Damien Miller | d27b947 | 2005-12-13 19:29:02 +1100 | [diff] [blame] | 909 | .It Cm PermitTunnel |
| 910 | Specifies whether |
| 911 | .Xr tun 4 |
| 912 | device forwarding is allowed. |
Damien Miller | 7b58e80 | 2005-12-13 19:33:19 +1100 | [diff] [blame] | 913 | The argument must be |
| 914 | .Dq yes , |
Damien Miller | 991dba4 | 2006-07-10 20:16:27 +1000 | [diff] [blame] | 915 | .Dq point-to-point |
| 916 | (layer 3), |
| 917 | .Dq ethernet |
| 918 | (layer 2), or |
Damien Miller | 7b58e80 | 2005-12-13 19:33:19 +1100 | [diff] [blame] | 919 | .Dq no . |
Damien Miller | 991dba4 | 2006-07-10 20:16:27 +1000 | [diff] [blame] | 920 | Specifying |
| 921 | .Dq yes |
| 922 | permits both |
| 923 | .Dq point-to-point |
| 924 | and |
| 925 | .Dq ethernet . |
Damien Miller | d27b947 | 2005-12-13 19:29:02 +1100 | [diff] [blame] | 926 | The default is |
| 927 | .Dq no . |
Ben Lindstrom | 5d860f0 | 2002-08-01 01:28:38 +0000 | [diff] [blame] | 928 | .It Cm PermitUserEnvironment |
| 929 | Specifies whether |
| 930 | .Pa ~/.ssh/environment |
Ben Lindstrom | bd9bf38 | 2002-08-20 18:54:20 +0000 | [diff] [blame] | 931 | and |
Ben Lindstrom | 5d860f0 | 2002-08-01 01:28:38 +0000 | [diff] [blame] | 932 | .Cm environment= |
| 933 | options in |
| 934 | .Pa ~/.ssh/authorized_keys |
Ben Lindstrom | bd9bf38 | 2002-08-20 18:54:20 +0000 | [diff] [blame] | 935 | are processed by |
Damien Miller | 5b0d63f | 2006-03-15 11:56:56 +1100 | [diff] [blame] | 936 | .Xr sshd 8 . |
Ben Lindstrom | 5d860f0 | 2002-08-01 01:28:38 +0000 | [diff] [blame] | 937 | The default is |
| 938 | .Dq no . |
Ben Lindstrom | bd9bf38 | 2002-08-20 18:54:20 +0000 | [diff] [blame] | 939 | Enabling environment processing may enable users to bypass access |
| 940 | restrictions in some configurations using mechanisms such as |
| 941 | .Ev LD_PRELOAD . |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 942 | .It Cm PidFile |
Ben Lindstrom | 959de99 | 2002-06-23 00:35:25 +0000 | [diff] [blame] | 943 | Specifies the file that contains the process ID of the |
Damien Miller | f4f22b5 | 2006-03-15 11:57:25 +1100 | [diff] [blame] | 944 | SSH daemon. |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 945 | The default is |
| 946 | .Pa /var/run/sshd.pid . |
| 947 | .It Cm Port |
| 948 | Specifies the port number that |
Damien Miller | 5b0d63f | 2006-03-15 11:56:56 +1100 | [diff] [blame] | 949 | .Xr sshd 8 |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 950 | listens on. |
| 951 | The default is 22. |
| 952 | Multiple options of this type are permitted. |
| 953 | See also |
| 954 | .Cm ListenAddress . |
| 955 | .It Cm PrintLastLog |
| 956 | Specifies whether |
Damien Miller | 5b0d63f | 2006-03-15 11:56:56 +1100 | [diff] [blame] | 957 | .Xr sshd 8 |
Darren Tucker | 7cc5c23 | 2004-11-05 20:06:59 +1100 | [diff] [blame] | 958 | should print the date and time of the last user login when a user logs |
| 959 | in interactively. |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 960 | The default is |
| 961 | .Dq yes . |
| 962 | .It Cm PrintMotd |
| 963 | Specifies whether |
Damien Miller | 5b0d63f | 2006-03-15 11:56:56 +1100 | [diff] [blame] | 964 | .Xr sshd 8 |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 965 | should print |
| 966 | .Pa /etc/motd |
| 967 | when a user logs in interactively. |
| 968 | (On some systems it is also printed by the shell, |
| 969 | .Pa /etc/profile , |
| 970 | or equivalent.) |
| 971 | The default is |
| 972 | .Dq yes . |
| 973 | .It Cm Protocol |
| 974 | Specifies the protocol versions |
Damien Miller | 5b0d63f | 2006-03-15 11:56:56 +1100 | [diff] [blame] | 975 | .Xr sshd 8 |
Ben Lindstrom | 9c44554 | 2002-07-11 03:59:18 +0000 | [diff] [blame] | 976 | supports. |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 977 | The possible values are |
Damien Miller | 5b0d63f | 2006-03-15 11:56:56 +1100 | [diff] [blame] | 978 | .Sq 1 |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 979 | and |
Damien Miller | 5b0d63f | 2006-03-15 11:56:56 +1100 | [diff] [blame] | 980 | .Sq 2 . |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 981 | Multiple versions must be comma-separated. |
| 982 | The default is |
Darren Tucker | 7a4a765 | 2009-10-11 21:51:40 +1100 | [diff] [blame] | 983 | .Sq 2 . |
Ben Lindstrom | 9c44554 | 2002-07-11 03:59:18 +0000 | [diff] [blame] | 984 | Note that the order of the protocol list does not indicate preference, |
| 985 | because the client selects among multiple protocol versions offered |
| 986 | by the server. |
| 987 | Specifying |
| 988 | .Dq 2,1 |
| 989 | is identical to |
| 990 | .Dq 1,2 . |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 991 | .It Cm PubkeyAuthentication |
| 992 | Specifies whether public key authentication is allowed. |
| 993 | The default is |
| 994 | .Dq yes . |
| 995 | Note that this option applies to protocol version 2 only. |
Damien Miller | 1aed65e | 2010-03-04 21:53:35 +1100 | [diff] [blame] | 996 | .It Cm RevokedKeys |
Damien Miller | f3747bf | 2013-01-18 11:44:04 +1100 | [diff] [blame] | 997 | Specifies revoked public keys. |
Damien Miller | 1aed65e | 2010-03-04 21:53:35 +1100 | [diff] [blame] | 998 | Keys listed in this file will be refused for public key authentication. |
| 999 | Note that if this file is not readable, then public key authentication will |
| 1000 | be refused for all users. |
Damien Miller | f3747bf | 2013-01-18 11:44:04 +1100 | [diff] [blame] | 1001 | Keys may be specified as a text file, listing one public key per line, or as |
| 1002 | an OpenSSH Key Revocation List (KRL) as generated by |
Damien Miller | 72abeb7 | 2013-01-20 22:33:44 +1100 | [diff] [blame] | 1003 | .Xr ssh-keygen 1 . |
Damien Miller | f3747bf | 2013-01-18 11:44:04 +1100 | [diff] [blame] | 1004 | For more information on KRLs, see the |
| 1005 | .Sx KEY REVOCATION LISTS |
| 1006 | section in |
| 1007 | .Xr ssh-keygen 1 . |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 1008 | .It Cm RhostsRSAAuthentication |
| 1009 | Specifies whether rhosts or /etc/hosts.equiv authentication together |
| 1010 | with successful RSA host authentication is allowed. |
| 1011 | The default is |
| 1012 | .Dq no . |
| 1013 | This option applies to protocol version 1 only. |
| 1014 | .It Cm RSAAuthentication |
| 1015 | Specifies whether pure RSA authentication is allowed. |
| 1016 | The default is |
| 1017 | .Dq yes . |
| 1018 | This option applies to protocol version 1 only. |
| 1019 | .It Cm ServerKeyBits |
| 1020 | Defines the number of bits in the ephemeral protocol version 1 server key. |
Darren Tucker | 7499b0c | 2008-07-02 22:35:43 +1000 | [diff] [blame] | 1021 | The minimum value is 512, and the default is 1024. |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 1022 | .It Cm StrictModes |
| 1023 | Specifies whether |
Damien Miller | 5b0d63f | 2006-03-15 11:56:56 +1100 | [diff] [blame] | 1024 | .Xr sshd 8 |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 1025 | should check file modes and ownership of the |
| 1026 | user's files and home directory before accepting login. |
| 1027 | This is normally desirable because novices sometimes accidentally leave their |
| 1028 | directory or files world-writable. |
| 1029 | The default is |
| 1030 | .Dq yes . |
Darren Tucker | f788a91 | 2010-01-08 17:06:47 +1100 | [diff] [blame] | 1031 | Note that this does not apply to |
| 1032 | .Cm ChrootDirectory , |
| 1033 | whose permissions and ownership are checked unconditionally. |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 1034 | .It Cm Subsystem |
Damien Miller | 208f1ed | 2006-03-15 11:56:03 +1100 | [diff] [blame] | 1035 | Configures an external subsystem (e.g. file transfer daemon). |
Damien Miller | 917f9b6 | 2006-07-10 20:36:47 +1000 | [diff] [blame] | 1036 | Arguments should be a subsystem name and a command (with optional arguments) |
| 1037 | to execute upon subsystem request. |
Damien Miller | d8cb1f1 | 2008-02-10 22:40:12 +1100 | [diff] [blame] | 1038 | .Pp |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 1039 | The command |
| 1040 | .Xr sftp-server 8 |
| 1041 | implements the |
| 1042 | .Dq sftp |
| 1043 | file transfer subsystem. |
Damien Miller | d8cb1f1 | 2008-02-10 22:40:12 +1100 | [diff] [blame] | 1044 | .Pp |
| 1045 | Alternately the name |
| 1046 | .Dq internal-sftp |
| 1047 | implements an in-process |
| 1048 | .Dq sftp |
| 1049 | server. |
| 1050 | This may simplify configurations using |
| 1051 | .Cm ChrootDirectory |
| 1052 | to force a different filesystem root on clients. |
| 1053 | .Pp |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 1054 | By default no subsystems are defined. |
| 1055 | Note that this option applies to protocol version 2 only. |
| 1056 | .It Cm SyslogFacility |
| 1057 | Gives the facility code that is used when logging messages from |
Damien Miller | f4f22b5 | 2006-03-15 11:57:25 +1100 | [diff] [blame] | 1058 | .Xr sshd 8 . |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 1059 | The possible values are: DAEMON, USER, AUTH, LOCAL0, LOCAL1, LOCAL2, |
| 1060 | LOCAL3, LOCAL4, LOCAL5, LOCAL6, LOCAL7. |
| 1061 | The default is AUTH. |
Damien Miller | 12c150e | 2003-12-17 16:31:10 +1100 | [diff] [blame] | 1062 | .It Cm TCPKeepAlive |
| 1063 | Specifies whether the system should send TCP keepalive messages to the |
| 1064 | other side. |
| 1065 | If they are sent, death of the connection or crash of one |
| 1066 | of the machines will be properly noticed. |
| 1067 | However, this means that |
| 1068 | connections will die if the route is down temporarily, and some people |
| 1069 | find it annoying. |
| 1070 | On the other hand, if TCP keepalives are not sent, |
| 1071 | sessions may hang indefinitely on the server, leaving |
| 1072 | .Dq ghost |
| 1073 | users and consuming server resources. |
| 1074 | .Pp |
| 1075 | The default is |
| 1076 | .Dq yes |
| 1077 | (to send TCP keepalive messages), and the server will notice |
| 1078 | if the network goes down or the client host crashes. |
| 1079 | This avoids infinitely hanging sessions. |
| 1080 | .Pp |
| 1081 | To disable TCP keepalive messages, the value should be set to |
| 1082 | .Dq no . |
Damien Miller | 1aed65e | 2010-03-04 21:53:35 +1100 | [diff] [blame] | 1083 | .It Cm TrustedUserCAKeys |
| 1084 | Specifies a file containing public keys of certificate authorities that are |
Damien Miller | c6db99e | 2010-03-05 10:41:45 +1100 | [diff] [blame] | 1085 | trusted to sign user certificates for authentication. |
Damien Miller | 72b3382 | 2010-03-05 07:39:01 +1100 | [diff] [blame] | 1086 | Keys are listed one per line; empty lines and comments starting with |
Damien Miller | 1aed65e | 2010-03-04 21:53:35 +1100 | [diff] [blame] | 1087 | .Ql # |
| 1088 | are allowed. |
| 1089 | If a certificate is presented for authentication and has its signing CA key |
| 1090 | listed in this file, then it may be used for authentication for any user |
| 1091 | listed in the certificate's principals list. |
| 1092 | Note that certificates that lack a list of principals will not be permitted |
| 1093 | for authentication using |
| 1094 | .Cm TrustedUserCAKeys . |
Damien Miller | 72b3382 | 2010-03-05 07:39:01 +1100 | [diff] [blame] | 1095 | For more details on certificates, see the |
Damien Miller | 1aed65e | 2010-03-04 21:53:35 +1100 | [diff] [blame] | 1096 | .Sx CERTIFICATES |
| 1097 | section in |
| 1098 | .Xr ssh-keygen 1 . |
Damien Miller | 3a961dc | 2003-06-03 10:25:48 +1000 | [diff] [blame] | 1099 | .It Cm UseDNS |
| 1100 | Specifies whether |
Damien Miller | 5b0d63f | 2006-03-15 11:56:56 +1100 | [diff] [blame] | 1101 | .Xr sshd 8 |
Darren Tucker | 83d5a98 | 2005-03-31 21:33:50 +1000 | [diff] [blame] | 1102 | should look up the remote host name and check that |
Damien Miller | 3a961dc | 2003-06-03 10:25:48 +1000 | [diff] [blame] | 1103 | the resolved host name for the remote IP address maps back to the |
| 1104 | very same IP address. |
| 1105 | The default is |
| 1106 | .Dq yes . |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 1107 | .It Cm UseLogin |
| 1108 | Specifies whether |
| 1109 | .Xr login 1 |
| 1110 | is used for interactive login sessions. |
| 1111 | The default is |
| 1112 | .Dq no . |
| 1113 | Note that |
| 1114 | .Xr login 1 |
| 1115 | is never used for remote command execution. |
| 1116 | Note also, that if this is enabled, |
| 1117 | .Cm X11Forwarding |
| 1118 | will be disabled because |
| 1119 | .Xr login 1 |
| 1120 | does not know how to handle |
| 1121 | .Xr xauth 1 |
Damien Miller | 495dca3 | 2003-04-01 21:42:14 +1000 | [diff] [blame] | 1122 | cookies. |
| 1123 | If |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 1124 | .Cm UsePrivilegeSeparation |
| 1125 | is specified, it will be disabled after authentication. |
Damien Miller | 2e193e2 | 2003-05-14 15:13:03 +1000 | [diff] [blame] | 1126 | .It Cm UsePAM |
Darren Tucker | 1dcff9a | 2004-05-13 16:51:40 +1000 | [diff] [blame] | 1127 | Enables the Pluggable Authentication Module interface. |
| 1128 | If set to |
| 1129 | .Dq yes |
| 1130 | this will enable PAM authentication using |
| 1131 | .Cm ChallengeResponseAuthentication |
Darren Tucker | a4904f7 | 2006-02-23 21:35:30 +1100 | [diff] [blame] | 1132 | and |
| 1133 | .Cm PasswordAuthentication |
| 1134 | in addition to PAM account and session module processing for all |
| 1135 | authentication types. |
Darren Tucker | 1dcff9a | 2004-05-13 16:51:40 +1000 | [diff] [blame] | 1136 | .Pp |
| 1137 | Because PAM challenge-response authentication usually serves an equivalent |
| 1138 | role to password authentication, you should disable either |
| 1139 | .Cm PasswordAuthentication |
| 1140 | or |
| 1141 | .Cm ChallengeResponseAuthentication. |
| 1142 | .Pp |
| 1143 | If |
| 1144 | .Cm UsePAM |
| 1145 | is enabled, you will not be able to run |
| 1146 | .Xr sshd 8 |
| 1147 | as a non-root user. |
| 1148 | The default is |
Darren Tucker | 6c0c070 | 2003-10-09 14:13:53 +1000 | [diff] [blame] | 1149 | .Dq no . |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 1150 | .It Cm UsePrivilegeSeparation |
| 1151 | Specifies whether |
Damien Miller | 5b0d63f | 2006-03-15 11:56:56 +1100 | [diff] [blame] | 1152 | .Xr sshd 8 |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 1153 | separates privileges by creating an unprivileged child process |
Damien Miller | 495dca3 | 2003-04-01 21:42:14 +1000 | [diff] [blame] | 1154 | to deal with incoming network traffic. |
| 1155 | After successful authentication, another process will be created that has |
| 1156 | the privilege of the authenticated user. |
| 1157 | The goal of privilege separation is to prevent privilege |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 1158 | escalation by containing any corruption within the unprivileged processes. |
| 1159 | The default is |
| 1160 | .Dq yes . |
Damien Miller | 69ff1df | 2011-06-23 08:30:03 +1000 | [diff] [blame] | 1161 | If |
| 1162 | .Cm UsePrivilegeSeparation |
| 1163 | is set to |
| 1164 | .Dq sandbox |
| 1165 | then the pre-authentication unprivileged process is subject to additional |
| 1166 | restrictions. |
Damien Miller | 2352881 | 2012-04-22 11:24:43 +1000 | [diff] [blame] | 1167 | .It Cm VersionAddendum |
| 1168 | Optionally specifies additional text to append to the SSH protocol banner |
| 1169 | sent by the server upon connection. |
| 1170 | The default is |
| 1171 | .Dq none . |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 1172 | .It Cm X11DisplayOffset |
| 1173 | Specifies the first display number available for |
Damien Miller | 5b0d63f | 2006-03-15 11:56:56 +1100 | [diff] [blame] | 1174 | .Xr sshd 8 Ns 's |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 1175 | X11 forwarding. |
Damien Miller | 5b0d63f | 2006-03-15 11:56:56 +1100 | [diff] [blame] | 1176 | This prevents sshd from interfering with real X11 servers. |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 1177 | The default is 10. |
| 1178 | .It Cm X11Forwarding |
| 1179 | Specifies whether X11 forwarding is permitted. |
Damien Miller | 101c4a7 | 2002-09-19 11:51:21 +1000 | [diff] [blame] | 1180 | The argument must be |
| 1181 | .Dq yes |
| 1182 | or |
| 1183 | .Dq no . |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 1184 | The default is |
| 1185 | .Dq no . |
Damien Miller | 101c4a7 | 2002-09-19 11:51:21 +1000 | [diff] [blame] | 1186 | .Pp |
| 1187 | When X11 forwarding is enabled, there may be additional exposure to |
| 1188 | the server and to client displays if the |
Damien Miller | 5b0d63f | 2006-03-15 11:56:56 +1100 | [diff] [blame] | 1189 | .Xr sshd 8 |
Damien Miller | 101c4a7 | 2002-09-19 11:51:21 +1000 | [diff] [blame] | 1190 | proxy display is configured to listen on the wildcard address (see |
| 1191 | .Cm X11UseLocalhost |
Damien Miller | 5b0d63f | 2006-03-15 11:56:56 +1100 | [diff] [blame] | 1192 | below), though this is not the default. |
Damien Miller | 101c4a7 | 2002-09-19 11:51:21 +1000 | [diff] [blame] | 1193 | Additionally, the authentication spoofing and authentication data |
| 1194 | verification and substitution occur on the client side. |
| 1195 | 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] | 1196 | display server may be exposed to attack when the SSH client requests |
Damien Miller | 101c4a7 | 2002-09-19 11:51:21 +1000 | [diff] [blame] | 1197 | forwarding (see the warnings for |
| 1198 | .Cm ForwardX11 |
| 1199 | in |
Damien Miller | f1ce505 | 2003-06-11 22:04:39 +1000 | [diff] [blame] | 1200 | .Xr ssh_config 5 ) . |
Damien Miller | 101c4a7 | 2002-09-19 11:51:21 +1000 | [diff] [blame] | 1201 | A system administrator may have a stance in which they want to |
| 1202 | protect clients that may expose themselves to attack by unwittingly |
| 1203 | requesting X11 forwarding, which can warrant a |
| 1204 | .Dq no |
| 1205 | setting. |
| 1206 | .Pp |
| 1207 | Note that disabling X11 forwarding does not prevent users from |
| 1208 | forwarding X11 traffic, as users can always install their own forwarders. |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 1209 | X11 forwarding is automatically disabled if |
| 1210 | .Cm UseLogin |
| 1211 | is enabled. |
| 1212 | .It Cm X11UseLocalhost |
| 1213 | Specifies whether |
Damien Miller | 5b0d63f | 2006-03-15 11:56:56 +1100 | [diff] [blame] | 1214 | .Xr sshd 8 |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 1215 | should bind the X11 forwarding server to the loopback address or to |
Damien Miller | 495dca3 | 2003-04-01 21:42:14 +1000 | [diff] [blame] | 1216 | the wildcard address. |
| 1217 | By default, |
Damien Miller | 5b0d63f | 2006-03-15 11:56:56 +1100 | [diff] [blame] | 1218 | sshd binds the forwarding server to the loopback address and sets the |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 1219 | hostname part of the |
| 1220 | .Ev DISPLAY |
| 1221 | environment variable to |
| 1222 | .Dq localhost . |
Ben Lindstrom | 15b6120 | 2002-08-20 18:44:24 +0000 | [diff] [blame] | 1223 | This prevents remote hosts from connecting to the proxy display. |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 1224 | However, some older X11 clients may not function with this |
| 1225 | configuration. |
| 1226 | .Cm X11UseLocalhost |
| 1227 | may be set to |
| 1228 | .Dq no |
| 1229 | to specify that the forwarding server should be bound to the wildcard |
| 1230 | address. |
| 1231 | The argument must be |
| 1232 | .Dq yes |
| 1233 | or |
| 1234 | .Dq no . |
| 1235 | The default is |
| 1236 | .Dq yes . |
| 1237 | .It Cm XAuthLocation |
Damien Miller | 05913ba | 2002-09-04 16:51:03 +1000 | [diff] [blame] | 1238 | Specifies the full pathname of the |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 1239 | .Xr xauth 1 |
| 1240 | program. |
| 1241 | The default is |
| 1242 | .Pa /usr/X11R6/bin/xauth . |
| 1243 | .El |
Damien Miller | e3beba2 | 2006-03-15 11:59:25 +1100 | [diff] [blame] | 1244 | .Sh TIME FORMATS |
Damien Miller | f4f22b5 | 2006-03-15 11:57:25 +1100 | [diff] [blame] | 1245 | .Xr sshd 8 |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 1246 | command-line arguments and configuration file options that specify time |
| 1247 | may be expressed using a sequence of the form: |
| 1248 | .Sm off |
Ben Lindstrom | 1f8cf4f | 2002-08-20 18:43:27 +0000 | [diff] [blame] | 1249 | .Ar time Op Ar qualifier , |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 1250 | .Sm on |
| 1251 | where |
| 1252 | .Ar time |
| 1253 | is a positive integer value and |
| 1254 | .Ar qualifier |
| 1255 | is one of the following: |
| 1256 | .Pp |
| 1257 | .Bl -tag -width Ds -compact -offset indent |
Damien Miller | 393821a | 2006-07-24 14:04:53 +1000 | [diff] [blame] | 1258 | .It Aq Cm none |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 1259 | seconds |
| 1260 | .It Cm s | Cm S |
| 1261 | seconds |
| 1262 | .It Cm m | Cm M |
| 1263 | minutes |
| 1264 | .It Cm h | Cm H |
| 1265 | hours |
| 1266 | .It Cm d | Cm D |
| 1267 | days |
| 1268 | .It Cm w | Cm W |
| 1269 | weeks |
| 1270 | .El |
| 1271 | .Pp |
| 1272 | Each member of the sequence is added together to calculate |
| 1273 | the total time value. |
| 1274 | .Pp |
| 1275 | Time format examples: |
| 1276 | .Pp |
| 1277 | .Bl -tag -width Ds -compact -offset indent |
| 1278 | .It 600 |
| 1279 | 600 seconds (10 minutes) |
| 1280 | .It 10m |
| 1281 | 10 minutes |
| 1282 | .It 1h30m |
| 1283 | 1 hour 30 minutes (90 minutes) |
| 1284 | .El |
| 1285 | .Sh FILES |
| 1286 | .Bl -tag -width Ds |
| 1287 | .It Pa /etc/ssh/sshd_config |
| 1288 | Contains configuration data for |
Damien Miller | f4f22b5 | 2006-03-15 11:57:25 +1100 | [diff] [blame] | 1289 | .Xr sshd 8 . |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 1290 | This file should be writable by root only, but it is recommended |
| 1291 | (though not necessary) that it be world-readable. |
| 1292 | .El |
Damien Miller | f1ce505 | 2003-06-11 22:04:39 +1000 | [diff] [blame] | 1293 | .Sh SEE ALSO |
| 1294 | .Xr sshd 8 |
Ben Lindstrom | 9f04903 | 2002-06-21 00:59:05 +0000 | [diff] [blame] | 1295 | .Sh AUTHORS |
| 1296 | OpenSSH is a derivative of the original and free |
| 1297 | ssh 1.2.12 release by Tatu Ylonen. |
| 1298 | Aaron Campbell, Bob Beck, Markus Friedl, Niels Provos, |
| 1299 | Theo de Raadt and Dug Song |
| 1300 | removed many bugs, re-added newer features and |
| 1301 | created OpenSSH. |
| 1302 | Markus Friedl contributed the support for SSH |
| 1303 | protocol versions 1.5 and 2.0. |
| 1304 | Niels Provos and Markus Friedl contributed support |
| 1305 | for privilege separation. |