[BACK]Return to sshd_config.5 CVS log [TXT][DIR] Up to [local] / src / usr.bin / ssh

Annotation of src/usr.bin/ssh/sshd_config.5, Revision 1.245

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