1545d5ecaSDag-Erling Smørgrav.\" 2545d5ecaSDag-Erling Smørgrav.\" Author: Tatu Ylonen <ylo@cs.hut.fi> 3545d5ecaSDag-Erling Smørgrav.\" Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland 4545d5ecaSDag-Erling Smørgrav.\" All rights reserved 5545d5ecaSDag-Erling Smørgrav.\" 6545d5ecaSDag-Erling Smørgrav.\" As far as I am concerned, the code I have written for this software 7545d5ecaSDag-Erling Smørgrav.\" can be used freely for any purpose. Any derived versions of this 8545d5ecaSDag-Erling Smørgrav.\" software must be clearly marked as such, and if the derived work is 9545d5ecaSDag-Erling Smørgrav.\" incompatible with the protocol description in the RFC file, it must be 10545d5ecaSDag-Erling Smørgrav.\" called by a name other than "ssh" or "Secure Shell". 11545d5ecaSDag-Erling Smørgrav.\" 12545d5ecaSDag-Erling Smørgrav.\" Copyright (c) 1999,2000 Markus Friedl. All rights reserved. 13545d5ecaSDag-Erling Smørgrav.\" Copyright (c) 1999 Aaron Campbell. All rights reserved. 14545d5ecaSDag-Erling Smørgrav.\" Copyright (c) 1999 Theo de Raadt. All rights reserved. 15545d5ecaSDag-Erling Smørgrav.\" 16545d5ecaSDag-Erling Smørgrav.\" Redistribution and use in source and binary forms, with or without 17545d5ecaSDag-Erling Smørgrav.\" modification, are permitted provided that the following conditions 18545d5ecaSDag-Erling Smørgrav.\" are met: 19545d5ecaSDag-Erling Smørgrav.\" 1. Redistributions of source code must retain the above copyright 20545d5ecaSDag-Erling Smørgrav.\" notice, this list of conditions and the following disclaimer. 21545d5ecaSDag-Erling Smørgrav.\" 2. Redistributions in binary form must reproduce the above copyright 22545d5ecaSDag-Erling Smørgrav.\" notice, this list of conditions and the following disclaimer in the 23545d5ecaSDag-Erling Smørgrav.\" documentation and/or other materials provided with the distribution. 24545d5ecaSDag-Erling Smørgrav.\" 25545d5ecaSDag-Erling Smørgrav.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 26545d5ecaSDag-Erling Smørgrav.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 27545d5ecaSDag-Erling Smørgrav.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 28545d5ecaSDag-Erling Smørgrav.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 29545d5ecaSDag-Erling Smørgrav.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 30545d5ecaSDag-Erling Smørgrav.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 31545d5ecaSDag-Erling Smørgrav.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 32545d5ecaSDag-Erling Smørgrav.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 33545d5ecaSDag-Erling Smørgrav.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 34545d5ecaSDag-Erling Smørgrav.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 35545d5ecaSDag-Erling Smørgrav.\" 36*e4a9863fSDag-Erling Smørgrav.\" $OpenBSD: sshd_config.5,v 1.162 2013/07/19 07:37:48 markus Exp $ 3735d4ccfbSDag-Erling Smørgrav.\" $FreeBSD$ 38*e4a9863fSDag-Erling Smørgrav.Dd July 19, 2013 39545d5ecaSDag-Erling Smørgrav.Dt SSHD_CONFIG 5 40545d5ecaSDag-Erling Smørgrav.Os 41545d5ecaSDag-Erling Smørgrav.Sh NAME 42545d5ecaSDag-Erling Smørgrav.Nm sshd_config 43545d5ecaSDag-Erling Smørgrav.Nd OpenSSH SSH daemon configuration file 44545d5ecaSDag-Erling Smørgrav.Sh SYNOPSIS 45d4af9e69SDag-Erling Smørgrav.Nm /etc/ssh/sshd_config 46545d5ecaSDag-Erling Smørgrav.Sh DESCRIPTION 47333ee039SDag-Erling Smørgrav.Xr sshd 8 48545d5ecaSDag-Erling Smørgravreads configuration data from 49545d5ecaSDag-Erling Smørgrav.Pa /etc/ssh/sshd_config 50545d5ecaSDag-Erling Smørgrav(or the file specified with 51545d5ecaSDag-Erling Smørgrav.Fl f 52545d5ecaSDag-Erling Smørgravon the command line). 53545d5ecaSDag-Erling SmørgravThe file contains keyword-argument pairs, one per line. 54545d5ecaSDag-Erling SmørgravLines starting with 55545d5ecaSDag-Erling Smørgrav.Ql # 56545d5ecaSDag-Erling Smørgravand empty lines are interpreted as comments. 57333ee039SDag-Erling SmørgravArguments may optionally be enclosed in double quotes 58333ee039SDag-Erling Smørgrav.Pq \&" 59333ee039SDag-Erling Smørgravin order to represent arguments containing spaces. 60545d5ecaSDag-Erling Smørgrav.Pp 61545d5ecaSDag-Erling SmørgravThe possible 62545d5ecaSDag-Erling Smørgravkeywords and their meanings are as follows (note that 63545d5ecaSDag-Erling Smørgravkeywords are case-insensitive and arguments are case-sensitive): 64545d5ecaSDag-Erling Smørgrav.Bl -tag -width Ds 6521e764dfSDag-Erling Smørgrav.It Cm AcceptEnv 6621e764dfSDag-Erling SmørgravSpecifies what environment variables sent by the client will be copied into 6721e764dfSDag-Erling Smørgravthe session's 6821e764dfSDag-Erling Smørgrav.Xr environ 7 . 6921e764dfSDag-Erling SmørgravSee 7021e764dfSDag-Erling Smørgrav.Cm SendEnv 7121e764dfSDag-Erling Smørgravin 7221e764dfSDag-Erling Smørgrav.Xr ssh_config 5 7321e764dfSDag-Erling Smørgravfor how to configure the client. 7421e764dfSDag-Erling SmørgravNote that environment passing is only supported for protocol 2. 7521e764dfSDag-Erling SmørgravVariables are specified by name, which may contain the wildcard characters 76333ee039SDag-Erling Smørgrav.Ql * 7721e764dfSDag-Erling Smørgravand 7821e764dfSDag-Erling Smørgrav.Ql \&? . 7921e764dfSDag-Erling SmørgravMultiple environment variables may be separated by whitespace or spread 8021e764dfSDag-Erling Smørgravacross multiple 8121e764dfSDag-Erling Smørgrav.Cm AcceptEnv 8221e764dfSDag-Erling Smørgravdirectives. 8321e764dfSDag-Erling SmørgravBe warned that some environment variables could be used to bypass restricted 8421e764dfSDag-Erling Smørgravuser environments. 8521e764dfSDag-Erling SmørgravFor this reason, care should be taken in the use of this directive. 8621e764dfSDag-Erling SmørgravThe default is not to accept any environment variables. 87aa49c926SDag-Erling Smørgrav.It Cm AddressFamily 88aa49c926SDag-Erling SmørgravSpecifies which address family should be used by 89333ee039SDag-Erling Smørgrav.Xr sshd 8 . 90aa49c926SDag-Erling SmørgravValid arguments are 91aa49c926SDag-Erling Smørgrav.Dq any , 92aa49c926SDag-Erling Smørgrav.Dq inet 93333ee039SDag-Erling Smørgrav(use IPv4 only), or 94aa49c926SDag-Erling Smørgrav.Dq inet6 95aa49c926SDag-Erling Smørgrav(use IPv6 only). 96aa49c926SDag-Erling SmørgravThe default is 97aa49c926SDag-Erling Smørgrav.Dq any . 98d4af9e69SDag-Erling Smørgrav.It Cm AllowAgentForwarding 99d4af9e69SDag-Erling SmørgravSpecifies whether 100d4af9e69SDag-Erling Smørgrav.Xr ssh-agent 1 101d4af9e69SDag-Erling Smørgravforwarding is permitted. 102d4af9e69SDag-Erling SmørgravThe default is 103d4af9e69SDag-Erling Smørgrav.Dq yes . 104d4af9e69SDag-Erling SmørgravNote that disabling agent forwarding does not improve security 105d4af9e69SDag-Erling Smørgravunless users are also denied shell access, as they can always install 106d4af9e69SDag-Erling Smørgravtheir own forwarders. 107545d5ecaSDag-Erling Smørgrav.It Cm AllowGroups 108545d5ecaSDag-Erling SmørgravThis keyword can be followed by a list of group name patterns, separated 109545d5ecaSDag-Erling Smørgravby spaces. 110545d5ecaSDag-Erling SmørgravIf specified, login is allowed only for users whose primary 111545d5ecaSDag-Erling Smørgravgroup or supplementary group list matches one of the patterns. 112545d5ecaSDag-Erling SmørgravOnly group names are valid; a numerical group ID is not recognized. 113545d5ecaSDag-Erling SmørgravBy default, login is allowed for all groups. 114333ee039SDag-Erling SmørgravThe allow/deny directives are processed in the following order: 115333ee039SDag-Erling Smørgrav.Cm DenyUsers , 116333ee039SDag-Erling Smørgrav.Cm AllowUsers , 117333ee039SDag-Erling Smørgrav.Cm DenyGroups , 118333ee039SDag-Erling Smørgravand finally 119333ee039SDag-Erling Smørgrav.Cm AllowGroups . 120333ee039SDag-Erling Smørgrav.Pp 121*e4a9863fSDag-Erling SmørgravSee PATTERNS in 122333ee039SDag-Erling Smørgrav.Xr ssh_config 5 123333ee039SDag-Erling Smørgravfor more information on patterns. 124545d5ecaSDag-Erling Smørgrav.It Cm AllowTcpForwarding 125545d5ecaSDag-Erling SmørgravSpecifies whether TCP forwarding is permitted. 1266888a9beSDag-Erling SmørgravThe available options are 1276888a9beSDag-Erling Smørgrav.Dq yes 1286888a9beSDag-Erling Smørgravor 1296888a9beSDag-Erling Smørgrav.Dq all 1306888a9beSDag-Erling Smørgravto allow TCP forwarding, 1316888a9beSDag-Erling Smørgrav.Dq no 1326888a9beSDag-Erling Smørgravto prevent all TCP forwarding, 1336888a9beSDag-Erling Smørgrav.Dq local 1346888a9beSDag-Erling Smørgravto allow local (from the perspective of 1356888a9beSDag-Erling Smørgrav.Xr ssh 1 ) 1366888a9beSDag-Erling Smørgravforwarding only or 1376888a9beSDag-Erling Smørgrav.Dq remote 1386888a9beSDag-Erling Smørgravto allow remote forwarding only. 139545d5ecaSDag-Erling SmørgravThe default is 140545d5ecaSDag-Erling Smørgrav.Dq yes . 141545d5ecaSDag-Erling SmørgravNote that disabling TCP forwarding does not improve security unless 142545d5ecaSDag-Erling Smørgravusers are also denied shell access, as they can always install their 143545d5ecaSDag-Erling Smørgravown forwarders. 144545d5ecaSDag-Erling Smørgrav.It Cm AllowUsers 145545d5ecaSDag-Erling SmørgravThis keyword can be followed by a list of user name patterns, separated 146545d5ecaSDag-Erling Smørgravby spaces. 147e73e9afaSDag-Erling SmørgravIf specified, login is allowed only for user names that 148545d5ecaSDag-Erling Smørgravmatch one of the patterns. 149545d5ecaSDag-Erling SmørgravOnly user names are valid; a numerical user ID is not recognized. 150545d5ecaSDag-Erling SmørgravBy default, login is allowed for all users. 151545d5ecaSDag-Erling SmørgravIf the pattern takes the form USER@HOST then USER and HOST 152545d5ecaSDag-Erling Smørgravare separately checked, restricting logins to particular 153545d5ecaSDag-Erling Smørgravusers from particular hosts. 154333ee039SDag-Erling SmørgravThe allow/deny directives are processed in the following order: 155333ee039SDag-Erling Smørgrav.Cm DenyUsers , 156333ee039SDag-Erling Smørgrav.Cm AllowUsers , 157333ee039SDag-Erling Smørgrav.Cm DenyGroups , 158333ee039SDag-Erling Smørgravand finally 159333ee039SDag-Erling Smørgrav.Cm AllowGroups . 160333ee039SDag-Erling Smørgrav.Pp 161*e4a9863fSDag-Erling SmørgravSee PATTERNS in 162333ee039SDag-Erling Smørgrav.Xr ssh_config 5 163333ee039SDag-Erling Smørgravfor more information on patterns. 1646888a9beSDag-Erling Smørgrav.It Cm AuthenticationMethods 1656888a9beSDag-Erling SmørgravSpecifies the authentication methods that must be successfully completed 1666888a9beSDag-Erling Smørgravfor a user to be granted access. 1676888a9beSDag-Erling SmørgravThis option must be followed by one or more comma-separated lists of 1686888a9beSDag-Erling Smørgravauthentication method names. 1696888a9beSDag-Erling SmørgravSuccessful authentication requires completion of every method in at least 1706888a9beSDag-Erling Smørgravone of these lists. 1716888a9beSDag-Erling Smørgrav.Pp 1726888a9beSDag-Erling SmørgravFor example, an argument of 1736888a9beSDag-Erling Smørgrav.Dq publickey,password publickey,keyboard-interactive 1746888a9beSDag-Erling Smørgravwould require the user to complete public key authentication, followed by 1756888a9beSDag-Erling Smørgraveither password or keyboard interactive authentication. 1766888a9beSDag-Erling SmørgravOnly methods that are next in one or more lists are offered at each stage, 1776888a9beSDag-Erling Smørgravso for this example, it would not be possible to attempt password or 1786888a9beSDag-Erling Smørgravkeyboard-interactive authentication before public key. 1796888a9beSDag-Erling Smørgrav.Pp 180*e4a9863fSDag-Erling SmørgravFor keyboard interactive authentication it is also possible to 181*e4a9863fSDag-Erling Smørgravrestrict authentication to a specific device by appending a 182*e4a9863fSDag-Erling Smørgravcolon followed by the device identifier 183*e4a9863fSDag-Erling Smørgrav.Dq bsdauth , 184*e4a9863fSDag-Erling Smørgrav.Dq pam , 185*e4a9863fSDag-Erling Smørgravor 186*e4a9863fSDag-Erling Smørgrav.Dq skey , 187*e4a9863fSDag-Erling Smørgravdepending on the server configuration. 188*e4a9863fSDag-Erling SmørgravFor example, 189*e4a9863fSDag-Erling Smørgrav.Dq keyboard-interactive:bsdauth 190*e4a9863fSDag-Erling Smørgravwould restrict keyboard interactive authentication to the 191*e4a9863fSDag-Erling Smørgrav.Dq bsdauth 192*e4a9863fSDag-Erling Smørgravdevice. 193*e4a9863fSDag-Erling Smørgrav.Pp 1946888a9beSDag-Erling SmørgravThis option is only available for SSH protocol 2 and will yield a fatal 1956888a9beSDag-Erling Smørgraverror if enabled if protocol 1 is also enabled. 1966888a9beSDag-Erling SmørgravNote that each authentication method listed should also be explicitly enabled 1976888a9beSDag-Erling Smørgravin the configuration. 1986888a9beSDag-Erling SmørgravThe default is not to require multiple authentication; successful completion 1996888a9beSDag-Erling Smørgravof a single authentication method is sufficient. 2006888a9beSDag-Erling Smørgrav.It Cm AuthorizedKeysCommand 2016888a9beSDag-Erling SmørgravSpecifies a program to be used to look up the user's public keys. 202*e4a9863fSDag-Erling SmørgravThe program must be owned by root and not writable by group or others. 203*e4a9863fSDag-Erling SmørgravIt will be invoked with a single argument of the username 2046888a9beSDag-Erling Smørgravbeing authenticated, and should produce on standard output zero or 205*e4a9863fSDag-Erling Smørgravmore lines of authorized_keys output (see AUTHORIZED_KEYS in 2066888a9beSDag-Erling Smørgrav.Xr sshd 8 ) . 2076888a9beSDag-Erling SmørgravIf a key supplied by AuthorizedKeysCommand does not successfully authenticate 2086888a9beSDag-Erling Smørgravand authorize the user then public key authentication continues using the usual 2096888a9beSDag-Erling Smørgrav.Cm AuthorizedKeysFile 2106888a9beSDag-Erling Smørgravfiles. 2116888a9beSDag-Erling SmørgravBy default, no AuthorizedKeysCommand is run. 2126888a9beSDag-Erling Smørgrav.It Cm AuthorizedKeysCommandUser 2136888a9beSDag-Erling SmørgravSpecifies the user under whose account the AuthorizedKeysCommand is run. 2146888a9beSDag-Erling SmørgravIt is recommended to use a dedicated user that has no other role on the host 2156888a9beSDag-Erling Smørgravthan running authorized keys commands. 216545d5ecaSDag-Erling Smørgrav.It Cm AuthorizedKeysFile 217545d5ecaSDag-Erling SmørgravSpecifies the file that contains the public keys that can be used 218545d5ecaSDag-Erling Smørgravfor user authentication. 219e2f6069cSDag-Erling SmørgravThe format is described in the 220*e4a9863fSDag-Erling SmørgravAUTHORIZED_KEYS FILE FORMAT 221e2f6069cSDag-Erling Smørgravsection of 222e2f6069cSDag-Erling Smørgrav.Xr sshd 8 . 223545d5ecaSDag-Erling Smørgrav.Cm AuthorizedKeysFile 224545d5ecaSDag-Erling Smørgravmay contain tokens of the form %T which are substituted during connection 225333ee039SDag-Erling Smørgravsetup. 226cf2b5f3bSDag-Erling SmørgravThe following tokens are defined: %% is replaced by a literal '%', 227333ee039SDag-Erling Smørgrav%h is replaced by the home directory of the user being authenticated, and 228545d5ecaSDag-Erling Smørgrav%u is replaced by the username of that user. 229545d5ecaSDag-Erling SmørgravAfter expansion, 230545d5ecaSDag-Erling Smørgrav.Cm AuthorizedKeysFile 231545d5ecaSDag-Erling Smørgravis taken to be an absolute path or one relative to the user's home 232545d5ecaSDag-Erling Smørgravdirectory. 233e146993eSDag-Erling SmørgravMultiple files may be listed, separated by whitespace. 234545d5ecaSDag-Erling SmørgravThe default is 235e146993eSDag-Erling Smørgrav.Dq .ssh/authorized_keys .ssh/authorized_keys2 . 236e2f6069cSDag-Erling Smørgrav.It Cm AuthorizedPrincipalsFile 237e2f6069cSDag-Erling SmørgravSpecifies a file that lists principal names that are accepted for 238e2f6069cSDag-Erling Smørgravcertificate authentication. 239e2f6069cSDag-Erling SmørgravWhen using certificates signed by a key listed in 240e2f6069cSDag-Erling Smørgrav.Cm TrustedUserCAKeys , 241e2f6069cSDag-Erling Smørgravthis file lists names, one of which must appear in the certificate for it 242e2f6069cSDag-Erling Smørgravto be accepted for authentication. 243e2f6069cSDag-Erling SmørgravNames are listed one per line preceded by key options (as described 244*e4a9863fSDag-Erling Smørgravin AUTHORIZED_KEYS FILE FORMAT in 245e2f6069cSDag-Erling Smørgrav.Xr sshd 8 ) . 246e2f6069cSDag-Erling SmørgravEmpty lines and comments starting with 247e2f6069cSDag-Erling Smørgrav.Ql # 248e2f6069cSDag-Erling Smørgravare ignored. 249e2f6069cSDag-Erling Smørgrav.Pp 250e2f6069cSDag-Erling Smørgrav.Cm AuthorizedPrincipalsFile 251e2f6069cSDag-Erling Smørgravmay contain tokens of the form %T which are substituted during connection 252e2f6069cSDag-Erling Smørgravsetup. 253e2f6069cSDag-Erling SmørgravThe following tokens are defined: %% is replaced by a literal '%', 254e2f6069cSDag-Erling Smørgrav%h is replaced by the home directory of the user being authenticated, and 255e2f6069cSDag-Erling Smørgrav%u is replaced by the username of that user. 256e2f6069cSDag-Erling SmørgravAfter expansion, 257e2f6069cSDag-Erling Smørgrav.Cm AuthorizedPrincipalsFile 258e2f6069cSDag-Erling Smørgravis taken to be an absolute path or one relative to the user's home 259e2f6069cSDag-Erling Smørgravdirectory. 260e2f6069cSDag-Erling Smørgrav.Pp 261462c32cbSDag-Erling SmørgravThe default is 262462c32cbSDag-Erling Smørgrav.Dq none , 263462c32cbSDag-Erling Smørgravi.e. not to use a principals file \(en in this case, the username 264e2f6069cSDag-Erling Smørgravof the user must appear in a certificate's principals list for it to be 265e2f6069cSDag-Erling Smørgravaccepted. 266e2f6069cSDag-Erling SmørgravNote that 267e2f6069cSDag-Erling Smørgrav.Cm AuthorizedPrincipalsFile 268e2f6069cSDag-Erling Smørgravis only used when authentication proceeds using a CA listed in 269e2f6069cSDag-Erling Smørgrav.Cm TrustedUserCAKeys 270e2f6069cSDag-Erling Smørgravand is not consulted for certification authorities trusted via 271e2f6069cSDag-Erling Smørgrav.Pa ~/.ssh/authorized_keys , 272e2f6069cSDag-Erling Smørgravthough the 273e2f6069cSDag-Erling Smørgrav.Cm principals= 274e2f6069cSDag-Erling Smørgravkey option offers a similar facility (see 275e2f6069cSDag-Erling Smørgrav.Xr sshd 8 276e2f6069cSDag-Erling Smørgravfor details). 277545d5ecaSDag-Erling Smørgrav.It Cm Banner 278545d5ecaSDag-Erling SmørgravThe contents of the specified file are sent to the remote user before 279545d5ecaSDag-Erling Smørgravauthentication is allowed. 280d4af9e69SDag-Erling SmørgravIf the argument is 281d4af9e69SDag-Erling Smørgrav.Dq none 282d4af9e69SDag-Erling Smørgravthen no banner is displayed. 283545d5ecaSDag-Erling SmørgravThis option is only available for protocol version 2. 284545d5ecaSDag-Erling SmørgravBy default, no banner is displayed. 285545d5ecaSDag-Erling Smørgrav.It Cm ChallengeResponseAuthentication 2867aee6ffeSDag-Erling SmørgravSpecifies whether challenge-response authentication is allowed (e.g. via 2877aee6ffeSDag-Erling SmørgravPAM or though authentication styles supported in 2887aee6ffeSDag-Erling Smørgrav.Xr login.conf 5 ) 289545d5ecaSDag-Erling SmørgravThe default is 290545d5ecaSDag-Erling Smørgrav.Dq yes . 291d4af9e69SDag-Erling Smørgrav.It Cm ChrootDirectory 292b15c8340SDag-Erling SmørgravSpecifies the pathname of a directory to 293d4af9e69SDag-Erling Smørgrav.Xr chroot 2 294d4af9e69SDag-Erling Smørgravto after authentication. 295b15c8340SDag-Erling SmørgravAll components of the pathname must be root-owned directories that are 296d4af9e69SDag-Erling Smørgravnot writable by any other user or group. 2977aee6ffeSDag-Erling SmørgravAfter the chroot, 2987aee6ffeSDag-Erling Smørgrav.Xr sshd 8 2997aee6ffeSDag-Erling Smørgravchanges the working directory to the user's home directory. 300d4af9e69SDag-Erling Smørgrav.Pp 301b15c8340SDag-Erling SmørgravThe pathname may contain the following tokens that are expanded at runtime once 302d4af9e69SDag-Erling Smørgravthe connecting user has been authenticated: %% is replaced by a literal '%', 303d4af9e69SDag-Erling Smørgrav%h is replaced by the home directory of the user being authenticated, and 304d4af9e69SDag-Erling Smørgrav%u is replaced by the username of that user. 305d4af9e69SDag-Erling Smørgrav.Pp 306d4af9e69SDag-Erling SmørgravThe 307d4af9e69SDag-Erling Smørgrav.Cm ChrootDirectory 308d4af9e69SDag-Erling Smørgravmust contain the necessary files and directories to support the 3097aee6ffeSDag-Erling Smørgravuser's session. 310d4af9e69SDag-Erling SmørgravFor an interactive session this requires at least a shell, typically 311d4af9e69SDag-Erling Smørgrav.Xr sh 1 , 312d4af9e69SDag-Erling Smørgravand basic 313d4af9e69SDag-Erling Smørgrav.Pa /dev 314d4af9e69SDag-Erling Smørgravnodes such as 315d4af9e69SDag-Erling Smørgrav.Xr null 4 , 316d4af9e69SDag-Erling Smørgrav.Xr zero 4 , 317d4af9e69SDag-Erling Smørgrav.Xr stdin 4 , 318d4af9e69SDag-Erling Smørgrav.Xr stdout 4 , 319d4af9e69SDag-Erling Smørgrav.Xr stderr 4 , 320d4af9e69SDag-Erling Smørgrav.Xr arandom 4 321d4af9e69SDag-Erling Smørgravand 322d4af9e69SDag-Erling Smørgrav.Xr tty 4 323d4af9e69SDag-Erling Smørgravdevices. 324d4af9e69SDag-Erling SmørgravFor file transfer sessions using 325d4af9e69SDag-Erling Smørgrav.Dq sftp , 326d4af9e69SDag-Erling Smørgravno additional configuration of the environment is necessary if the 3277aee6ffeSDag-Erling Smørgravin-process sftp server is used, 3287aee6ffeSDag-Erling Smørgravthough sessions which use logging do require 3297aee6ffeSDag-Erling Smørgrav.Pa /dev/log 3307aee6ffeSDag-Erling Smørgravinside the chroot directory (see 3317aee6ffeSDag-Erling Smørgrav.Xr sftp-server 8 332d4af9e69SDag-Erling Smørgravfor details). 333d4af9e69SDag-Erling Smørgrav.Pp 334d4af9e69SDag-Erling SmørgravThe default is not to 335d4af9e69SDag-Erling Smørgrav.Xr chroot 2 . 336545d5ecaSDag-Erling Smørgrav.It Cm Ciphers 337545d5ecaSDag-Erling SmørgravSpecifies the ciphers allowed for protocol version 2. 338545d5ecaSDag-Erling SmørgravMultiple ciphers must be comma-separated. 33921e764dfSDag-Erling SmørgravThe supported ciphers are 34021e764dfSDag-Erling Smørgrav.Dq 3des-cbc , 34121e764dfSDag-Erling Smørgrav.Dq aes128-cbc , 34221e764dfSDag-Erling Smørgrav.Dq aes192-cbc , 34321e764dfSDag-Erling Smørgrav.Dq aes256-cbc , 34421e764dfSDag-Erling Smørgrav.Dq aes128-ctr , 34521e764dfSDag-Erling Smørgrav.Dq aes192-ctr , 34621e764dfSDag-Erling Smørgrav.Dq aes256-ctr , 3476888a9beSDag-Erling Smørgrav.Dq aes128-gcm@openssh.com , 3486888a9beSDag-Erling Smørgrav.Dq aes256-gcm@openssh.com , 349d4ecd108SDag-Erling Smørgrav.Dq arcfour128 , 350d4ecd108SDag-Erling Smørgrav.Dq arcfour256 , 35121e764dfSDag-Erling Smørgrav.Dq arcfour , 35221e764dfSDag-Erling Smørgrav.Dq blowfish-cbc , 35321e764dfSDag-Erling Smørgravand 35421e764dfSDag-Erling Smørgrav.Dq cast128-cbc . 355333ee039SDag-Erling SmørgravThe default is: 356333ee039SDag-Erling Smørgrav.Bd -literal -offset 3n 357cce7d346SDag-Erling Smørgravaes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128, 3586888a9beSDag-Erling Smørgravaes128-gcm@openssh.com,aes256-gcm@openssh.com, 359cce7d346SDag-Erling Smørgravaes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc, 360cce7d346SDag-Erling Smørgravaes256-cbc,arcfour 361545d5ecaSDag-Erling Smørgrav.Ed 362545d5ecaSDag-Erling Smørgrav.It Cm ClientAliveCountMax 363b74df5b2SDag-Erling SmørgravSets the number of client alive messages (see below) which may be 364545d5ecaSDag-Erling Smørgravsent without 365333ee039SDag-Erling Smørgrav.Xr sshd 8 366cf2b5f3bSDag-Erling Smørgravreceiving any messages back from the client. 367cf2b5f3bSDag-Erling SmørgravIf this threshold is reached while client alive messages are being sent, 368333ee039SDag-Erling Smørgravsshd will disconnect the client, terminating the session. 369cf2b5f3bSDag-Erling SmørgravIt is important to note that the use of client alive messages is very 370cf2b5f3bSDag-Erling Smørgravdifferent from 3711ec0d754SDag-Erling Smørgrav.Cm TCPKeepAlive 372cf2b5f3bSDag-Erling Smørgrav(below). 373cf2b5f3bSDag-Erling SmørgravThe client alive messages are sent through the encrypted channel 374cf2b5f3bSDag-Erling Smørgravand therefore will not be spoofable. 375cf2b5f3bSDag-Erling SmørgravThe TCP keepalive option enabled by 3761ec0d754SDag-Erling Smørgrav.Cm TCPKeepAlive 377cf2b5f3bSDag-Erling Smørgravis spoofable. 378cf2b5f3bSDag-Erling SmørgravThe client alive mechanism is valuable when the client or 379545d5ecaSDag-Erling Smørgravserver depend on knowing when a connection has become inactive. 380545d5ecaSDag-Erling Smørgrav.Pp 381cf2b5f3bSDag-Erling SmørgravThe default value is 3. 382cf2b5f3bSDag-Erling SmørgravIf 383545d5ecaSDag-Erling Smørgrav.Cm ClientAliveInterval 384b74df5b2SDag-Erling Smørgrav(see below) is set to 15, and 385545d5ecaSDag-Erling Smørgrav.Cm ClientAliveCountMax 386333ee039SDag-Erling Smørgravis left at the default, unresponsive SSH clients 387545d5ecaSDag-Erling Smørgravwill be disconnected after approximately 45 seconds. 388333ee039SDag-Erling SmørgravThis option applies to protocol version 2 only. 389d4ecd108SDag-Erling Smørgrav.It Cm ClientAliveInterval 390d4ecd108SDag-Erling SmørgravSets a timeout interval in seconds after which if no data has been received 391d4ecd108SDag-Erling Smørgravfrom the client, 392333ee039SDag-Erling Smørgrav.Xr sshd 8 393d4ecd108SDag-Erling Smørgravwill send a message through the encrypted 394d4ecd108SDag-Erling Smørgravchannel to request a response from the client. 395d4ecd108SDag-Erling SmørgravThe default 396d4ecd108SDag-Erling Smørgravis 0, indicating that these messages will not be sent to the client. 397d4ecd108SDag-Erling SmørgravThis option applies to protocol version 2 only. 398545d5ecaSDag-Erling Smørgrav.It Cm Compression 399d4ecd108SDag-Erling SmørgravSpecifies whether compression is allowed, or delayed until 400d4ecd108SDag-Erling Smørgravthe user has authenticated successfully. 401545d5ecaSDag-Erling SmørgravThe argument must be 402d4ecd108SDag-Erling Smørgrav.Dq yes , 403d4ecd108SDag-Erling Smørgrav.Dq delayed , 404545d5ecaSDag-Erling Smørgravor 405545d5ecaSDag-Erling Smørgrav.Dq no . 406545d5ecaSDag-Erling SmørgravThe default is 407d4ecd108SDag-Erling Smørgrav.Dq delayed . 408545d5ecaSDag-Erling Smørgrav.It Cm DenyGroups 409545d5ecaSDag-Erling SmørgravThis keyword can be followed by a list of group name patterns, separated 410545d5ecaSDag-Erling Smørgravby spaces. 411545d5ecaSDag-Erling SmørgravLogin is disallowed for users whose primary group or supplementary 412545d5ecaSDag-Erling Smørgravgroup list matches one of the patterns. 413545d5ecaSDag-Erling SmørgravOnly group names are valid; a numerical group ID is not recognized. 414545d5ecaSDag-Erling SmørgravBy default, login is allowed for all groups. 415333ee039SDag-Erling SmørgravThe allow/deny directives are processed in the following order: 416333ee039SDag-Erling Smørgrav.Cm DenyUsers , 417333ee039SDag-Erling Smørgrav.Cm AllowUsers , 418333ee039SDag-Erling Smørgrav.Cm DenyGroups , 419333ee039SDag-Erling Smørgravand finally 420333ee039SDag-Erling Smørgrav.Cm AllowGroups . 421333ee039SDag-Erling Smørgrav.Pp 422*e4a9863fSDag-Erling SmørgravSee PATTERNS in 423333ee039SDag-Erling Smørgrav.Xr ssh_config 5 424333ee039SDag-Erling Smørgravfor more information on patterns. 425545d5ecaSDag-Erling Smørgrav.It Cm DenyUsers 426545d5ecaSDag-Erling SmørgravThis keyword can be followed by a list of user name patterns, separated 427545d5ecaSDag-Erling Smørgravby spaces. 428545d5ecaSDag-Erling SmørgravLogin is disallowed for user names that match one of the patterns. 429545d5ecaSDag-Erling SmørgravOnly user names are valid; a numerical user ID is not recognized. 430545d5ecaSDag-Erling SmørgravBy default, login is allowed for all users. 431545d5ecaSDag-Erling SmørgravIf the pattern takes the form USER@HOST then USER and HOST 432545d5ecaSDag-Erling Smørgravare separately checked, restricting logins to particular 433545d5ecaSDag-Erling Smørgravusers from particular hosts. 434333ee039SDag-Erling SmørgravThe allow/deny directives are processed in the following order: 435333ee039SDag-Erling Smørgrav.Cm DenyUsers , 436333ee039SDag-Erling Smørgrav.Cm AllowUsers , 437333ee039SDag-Erling Smørgrav.Cm DenyGroups , 438333ee039SDag-Erling Smørgravand finally 439333ee039SDag-Erling Smørgrav.Cm AllowGroups . 440333ee039SDag-Erling Smørgrav.Pp 441*e4a9863fSDag-Erling SmørgravSee PATTERNS in 442333ee039SDag-Erling Smørgrav.Xr ssh_config 5 443333ee039SDag-Erling Smørgravfor more information on patterns. 444333ee039SDag-Erling Smørgrav.It Cm ForceCommand 445333ee039SDag-Erling SmørgravForces the execution of the command specified by 446333ee039SDag-Erling Smørgrav.Cm ForceCommand , 447d4af9e69SDag-Erling Smørgravignoring any command supplied by the client and 448d4af9e69SDag-Erling Smørgrav.Pa ~/.ssh/rc 449d4af9e69SDag-Erling Smørgravif present. 450333ee039SDag-Erling SmørgravThe command is invoked by using the user's login shell with the -c option. 451333ee039SDag-Erling SmørgravThis applies to shell, command, or subsystem execution. 452333ee039SDag-Erling SmørgravIt is most useful inside a 453333ee039SDag-Erling Smørgrav.Cm Match 454333ee039SDag-Erling Smørgravblock. 455333ee039SDag-Erling SmørgravThe command originally supplied by the client is available in the 456333ee039SDag-Erling Smørgrav.Ev SSH_ORIGINAL_COMMAND 457333ee039SDag-Erling Smørgravenvironment variable. 458d4af9e69SDag-Erling SmørgravSpecifying a command of 459d4af9e69SDag-Erling Smørgrav.Dq internal-sftp 460d4af9e69SDag-Erling Smørgravwill force the use of an in-process sftp server that requires no support 461d4af9e69SDag-Erling Smørgravfiles when used with 462d4af9e69SDag-Erling Smørgrav.Cm ChrootDirectory . 463545d5ecaSDag-Erling Smørgrav.It Cm GatewayPorts 464545d5ecaSDag-Erling SmørgravSpecifies whether remote hosts are allowed to connect to ports 465545d5ecaSDag-Erling Smørgravforwarded for the client. 466545d5ecaSDag-Erling SmørgravBy default, 467333ee039SDag-Erling Smørgrav.Xr sshd 8 468e73e9afaSDag-Erling Smørgravbinds remote port forwardings to the loopback address. 469e73e9afaSDag-Erling SmørgravThis prevents other remote hosts from connecting to forwarded ports. 470545d5ecaSDag-Erling Smørgrav.Cm GatewayPorts 471333ee039SDag-Erling Smørgravcan be used to specify that sshd 472aa49c926SDag-Erling Smørgravshould allow remote port forwardings to bind to non-loopback addresses, thus 473aa49c926SDag-Erling Smørgravallowing other hosts to connect. 474aa49c926SDag-Erling SmørgravThe argument may be 475aa49c926SDag-Erling Smørgrav.Dq no 476aa49c926SDag-Erling Smørgravto force remote port forwardings to be available to the local host only, 477545d5ecaSDag-Erling Smørgrav.Dq yes 478aa49c926SDag-Erling Smørgravto force remote port forwardings to bind to the wildcard address, or 479aa49c926SDag-Erling Smørgrav.Dq clientspecified 480aa49c926SDag-Erling Smørgravto allow the client to select the address to which the forwarding is bound. 481545d5ecaSDag-Erling SmørgravThe default is 482545d5ecaSDag-Erling Smørgrav.Dq no . 483cf2b5f3bSDag-Erling Smørgrav.It Cm GSSAPIAuthentication 484cf2b5f3bSDag-Erling SmørgravSpecifies whether user authentication based on GSSAPI is allowed. 485cf2b5f3bSDag-Erling SmørgravThe default is 486cf2b5f3bSDag-Erling Smørgrav.Dq no . 487cf2b5f3bSDag-Erling SmørgravNote that this option applies to protocol version 2 only. 488cf2b5f3bSDag-Erling Smørgrav.It Cm GSSAPICleanupCredentials 489cf2b5f3bSDag-Erling SmørgravSpecifies whether to automatically destroy the user's credentials cache 490cf2b5f3bSDag-Erling Smørgravon logout. 491cf2b5f3bSDag-Erling SmørgravThe default is 492cf2b5f3bSDag-Erling Smørgrav.Dq yes . 493cf2b5f3bSDag-Erling SmørgravNote that this option applies to protocol version 2 only. 494545d5ecaSDag-Erling Smørgrav.It Cm HostbasedAuthentication 495545d5ecaSDag-Erling SmørgravSpecifies whether rhosts or /etc/hosts.equiv authentication together 496545d5ecaSDag-Erling Smørgravwith successful public key client host authentication is allowed 497333ee039SDag-Erling Smørgrav(host-based authentication). 498545d5ecaSDag-Erling SmørgravThis option is similar to 499545d5ecaSDag-Erling Smørgrav.Cm RhostsRSAAuthentication 500545d5ecaSDag-Erling Smørgravand applies to protocol version 2 only. 501545d5ecaSDag-Erling SmørgravThe default is 502545d5ecaSDag-Erling Smørgrav.Dq no . 503333ee039SDag-Erling Smørgrav.It Cm HostbasedUsesNameFromPacketOnly 504333ee039SDag-Erling SmørgravSpecifies whether or not the server will attempt to perform a reverse 505333ee039SDag-Erling Smørgravname lookup when matching the name in the 506333ee039SDag-Erling Smørgrav.Pa ~/.shosts , 507333ee039SDag-Erling Smørgrav.Pa ~/.rhosts , 508333ee039SDag-Erling Smørgravand 509333ee039SDag-Erling Smørgrav.Pa /etc/hosts.equiv 510333ee039SDag-Erling Smørgravfiles during 511333ee039SDag-Erling Smørgrav.Cm HostbasedAuthentication . 512333ee039SDag-Erling SmørgravA setting of 513333ee039SDag-Erling Smørgrav.Dq yes 514333ee039SDag-Erling Smørgravmeans that 515333ee039SDag-Erling Smørgrav.Xr sshd 8 516333ee039SDag-Erling Smørgravuses the name supplied by the client rather than 517333ee039SDag-Erling Smørgravattempting to resolve the name from the TCP connection itself. 518333ee039SDag-Erling SmørgravThe default is 519333ee039SDag-Erling Smørgrav.Dq no . 520b15c8340SDag-Erling Smørgrav.It Cm HostCertificate 521b15c8340SDag-Erling SmørgravSpecifies a file containing a public host certificate. 522b15c8340SDag-Erling SmørgravThe certificate's public key must match a private host key already specified 523b15c8340SDag-Erling Smørgravby 524b15c8340SDag-Erling Smørgrav.Cm HostKey . 525b15c8340SDag-Erling SmørgravThe default behaviour of 526b15c8340SDag-Erling Smørgrav.Xr sshd 8 527b15c8340SDag-Erling Smørgravis not to load any certificates. 528545d5ecaSDag-Erling Smørgrav.It Cm HostKey 529545d5ecaSDag-Erling SmørgravSpecifies a file containing a private host key 530545d5ecaSDag-Erling Smørgravused by SSH. 531545d5ecaSDag-Erling SmørgravThe default is 532545d5ecaSDag-Erling Smørgrav.Pa /etc/ssh/ssh_host_key 533545d5ecaSDag-Erling Smørgravfor protocol version 1, and 5344a421b63SDag-Erling Smørgrav.Pa /etc/ssh/ssh_host_dsa_key , 5354a421b63SDag-Erling Smørgrav.Pa /etc/ssh/ssh_host_ecdsa_key 536d4af9e69SDag-Erling Smørgravand 5374a421b63SDag-Erling Smørgrav.Pa /etc/ssh/ssh_host_rsa_key 538545d5ecaSDag-Erling Smørgravfor protocol version 2. 539545d5ecaSDag-Erling SmørgravNote that 540333ee039SDag-Erling Smørgrav.Xr sshd 8 541545d5ecaSDag-Erling Smørgravwill refuse to use a file if it is group/world-accessible. 542545d5ecaSDag-Erling SmørgravIt is possible to have multiple host key files. 543545d5ecaSDag-Erling Smørgrav.Dq rsa1 544545d5ecaSDag-Erling Smørgravkeys are used for version 1 and 5454a421b63SDag-Erling Smørgrav.Dq dsa , 5464a421b63SDag-Erling Smørgrav.Dq ecdsa 547545d5ecaSDag-Erling Smørgravor 548545d5ecaSDag-Erling Smørgrav.Dq rsa 549545d5ecaSDag-Erling Smørgravare used for version 2 of the SSH protocol. 550*e4a9863fSDag-Erling SmørgravIt is also possible to specify public host key files instead. 551*e4a9863fSDag-Erling SmørgravIn this case operations on the private key will be delegated 552*e4a9863fSDag-Erling Smørgravto an 553*e4a9863fSDag-Erling Smørgrav.Xr ssh-agent 1 . 554*e4a9863fSDag-Erling Smørgrav.It Cm HostKeyAgent 555*e4a9863fSDag-Erling SmørgravIdentifies the UNIX-domain socket used to communicate 556*e4a9863fSDag-Erling Smørgravwith an agent that has access to the private host keys. 557*e4a9863fSDag-Erling SmørgravIf 558*e4a9863fSDag-Erling Smørgrav.Dq SSH_AUTH_SOCK 559*e4a9863fSDag-Erling Smørgravis specified, the location of the socket will be read from the 560*e4a9863fSDag-Erling Smørgrav.Ev SSH_AUTH_SOCK 561*e4a9863fSDag-Erling Smørgravenvironment variable. 562545d5ecaSDag-Erling Smørgrav.It Cm IgnoreRhosts 563545d5ecaSDag-Erling SmørgravSpecifies that 564545d5ecaSDag-Erling Smørgrav.Pa .rhosts 565545d5ecaSDag-Erling Smørgravand 566545d5ecaSDag-Erling Smørgrav.Pa .shosts 567545d5ecaSDag-Erling Smørgravfiles will not be used in 568545d5ecaSDag-Erling Smørgrav.Cm RhostsRSAAuthentication 569545d5ecaSDag-Erling Smørgravor 570545d5ecaSDag-Erling Smørgrav.Cm HostbasedAuthentication . 571545d5ecaSDag-Erling Smørgrav.Pp 572545d5ecaSDag-Erling Smørgrav.Pa /etc/hosts.equiv 573545d5ecaSDag-Erling Smørgravand 57435d4ccfbSDag-Erling Smørgrav.Pa /etc/ssh/shosts.equiv 575545d5ecaSDag-Erling Smørgravare still used. 576545d5ecaSDag-Erling SmørgravThe default is 577545d5ecaSDag-Erling Smørgrav.Dq yes . 578545d5ecaSDag-Erling Smørgrav.It Cm IgnoreUserKnownHosts 579545d5ecaSDag-Erling SmørgravSpecifies whether 580333ee039SDag-Erling Smørgrav.Xr sshd 8 581545d5ecaSDag-Erling Smørgravshould ignore the user's 582d4ecd108SDag-Erling Smørgrav.Pa ~/.ssh/known_hosts 583545d5ecaSDag-Erling Smørgravduring 584545d5ecaSDag-Erling Smørgrav.Cm RhostsRSAAuthentication 585545d5ecaSDag-Erling Smørgravor 586545d5ecaSDag-Erling Smørgrav.Cm HostbasedAuthentication . 587545d5ecaSDag-Erling SmørgravThe default is 588545d5ecaSDag-Erling Smørgrav.Dq no . 5894a421b63SDag-Erling Smørgrav.It Cm IPQoS 5904a421b63SDag-Erling SmørgravSpecifies the IPv4 type-of-service or DSCP class for the connection. 5914a421b63SDag-Erling SmørgravAccepted values are 5924a421b63SDag-Erling Smørgrav.Dq af11 , 5934a421b63SDag-Erling Smørgrav.Dq af12 , 5944a421b63SDag-Erling Smørgrav.Dq af13 , 595462c32cbSDag-Erling Smørgrav.Dq af21 , 5964a421b63SDag-Erling Smørgrav.Dq af22 , 5974a421b63SDag-Erling Smørgrav.Dq af23 , 5984a421b63SDag-Erling Smørgrav.Dq af31 , 5994a421b63SDag-Erling Smørgrav.Dq af32 , 6004a421b63SDag-Erling Smørgrav.Dq af33 , 6014a421b63SDag-Erling Smørgrav.Dq af41 , 6024a421b63SDag-Erling Smørgrav.Dq af42 , 6034a421b63SDag-Erling Smørgrav.Dq af43 , 6044a421b63SDag-Erling Smørgrav.Dq cs0 , 6054a421b63SDag-Erling Smørgrav.Dq cs1 , 6064a421b63SDag-Erling Smørgrav.Dq cs2 , 6074a421b63SDag-Erling Smørgrav.Dq cs3 , 6084a421b63SDag-Erling Smørgrav.Dq cs4 , 6094a421b63SDag-Erling Smørgrav.Dq cs5 , 6104a421b63SDag-Erling Smørgrav.Dq cs6 , 6114a421b63SDag-Erling Smørgrav.Dq cs7 , 6124a421b63SDag-Erling Smørgrav.Dq ef , 6134a421b63SDag-Erling Smørgrav.Dq lowdelay , 6144a421b63SDag-Erling Smørgrav.Dq throughput , 6154a421b63SDag-Erling Smørgrav.Dq reliability , 6164a421b63SDag-Erling Smørgravor a numeric value. 6174a421b63SDag-Erling SmørgravThis option may take one or two arguments, separated by whitespace. 6184a421b63SDag-Erling SmørgravIf one argument is specified, it is used as the packet class unconditionally. 6194a421b63SDag-Erling SmørgravIf two values are specified, the first is automatically selected for 6204a421b63SDag-Erling Smørgravinteractive sessions and the second for non-interactive sessions. 6214a421b63SDag-Erling SmørgravThe default is 6224a421b63SDag-Erling Smørgrav.Dq lowdelay 6234a421b63SDag-Erling Smørgravfor interactive sessions and 6244a421b63SDag-Erling Smørgrav.Dq throughput 6254a421b63SDag-Erling Smørgravfor non-interactive sessions. 626545d5ecaSDag-Erling Smørgrav.It Cm KerberosAuthentication 627cf2b5f3bSDag-Erling SmørgravSpecifies whether the password provided by the user for 628545d5ecaSDag-Erling Smørgrav.Cm PasswordAuthentication 629cf2b5f3bSDag-Erling Smørgravwill be validated through the Kerberos KDC. 630545d5ecaSDag-Erling SmørgravTo use this option, the server needs a 631545d5ecaSDag-Erling SmørgravKerberos servtab which allows the verification of the KDC's identity. 632333ee039SDag-Erling SmørgravThe default is 633545d5ecaSDag-Erling Smørgrav.Dq no . 6345962c0e9SDag-Erling Smørgrav.It Cm KerberosGetAFSToken 635b74df5b2SDag-Erling SmørgravIf AFS is active and the user has a Kerberos 5 TGT, attempt to acquire 6365962c0e9SDag-Erling Smørgravan AFS token before accessing the user's home directory. 637333ee039SDag-Erling SmørgravThe default is 6385962c0e9SDag-Erling Smørgrav.Dq no . 639545d5ecaSDag-Erling Smørgrav.It Cm KerberosOrLocalPasswd 640333ee039SDag-Erling SmørgravIf password authentication through Kerberos fails then 641545d5ecaSDag-Erling Smørgravthe password will be validated via any additional local mechanism 642545d5ecaSDag-Erling Smørgravsuch as 643545d5ecaSDag-Erling Smørgrav.Pa /etc/passwd . 644333ee039SDag-Erling SmørgravThe default is 645545d5ecaSDag-Erling Smørgrav.Dq yes . 646545d5ecaSDag-Erling Smørgrav.It Cm KerberosTicketCleanup 647545d5ecaSDag-Erling SmørgravSpecifies whether to automatically destroy the user's ticket cache 648545d5ecaSDag-Erling Smørgravfile on logout. 649333ee039SDag-Erling SmørgravThe default is 650545d5ecaSDag-Erling Smørgrav.Dq yes . 6514a421b63SDag-Erling Smørgrav.It Cm KexAlgorithms 6524a421b63SDag-Erling SmørgravSpecifies the available KEX (Key Exchange) algorithms. 6534a421b63SDag-Erling SmørgravMultiple algorithms must be comma-separated. 6544a421b63SDag-Erling SmørgravThe default is 6554a421b63SDag-Erling Smørgrav.Dq ecdh-sha2-nistp256 , 6564a421b63SDag-Erling Smørgrav.Dq ecdh-sha2-nistp384 , 6574a421b63SDag-Erling Smørgrav.Dq ecdh-sha2-nistp521 , 6584a421b63SDag-Erling Smørgrav.Dq diffie-hellman-group-exchange-sha256 , 6594a421b63SDag-Erling Smørgrav.Dq diffie-hellman-group-exchange-sha1 , 6604a421b63SDag-Erling Smørgrav.Dq diffie-hellman-group14-sha1 , 6614a421b63SDag-Erling Smørgrav.Dq diffie-hellman-group1-sha1 . 662545d5ecaSDag-Erling Smørgrav.It Cm KeyRegenerationInterval 663545d5ecaSDag-Erling SmørgravIn protocol version 1, the ephemeral server key is automatically regenerated 664545d5ecaSDag-Erling Smørgravafter this many seconds (if it has been used). 665545d5ecaSDag-Erling SmørgravThe purpose of regeneration is to prevent 666545d5ecaSDag-Erling Smørgravdecrypting captured sessions by later breaking into the machine and 667545d5ecaSDag-Erling Smørgravstealing the keys. 668545d5ecaSDag-Erling SmørgravThe key is never stored anywhere. 669545d5ecaSDag-Erling SmørgravIf the value is 0, the key is never regenerated. 670545d5ecaSDag-Erling SmørgravThe default is 3600 (seconds). 671545d5ecaSDag-Erling Smørgrav.It Cm ListenAddress 672545d5ecaSDag-Erling SmørgravSpecifies the local addresses 673333ee039SDag-Erling Smørgrav.Xr sshd 8 674545d5ecaSDag-Erling Smørgravshould listen on. 675545d5ecaSDag-Erling SmørgravThe following forms may be used: 676545d5ecaSDag-Erling Smørgrav.Pp 677545d5ecaSDag-Erling Smørgrav.Bl -item -offset indent -compact 678545d5ecaSDag-Erling Smørgrav.It 679545d5ecaSDag-Erling Smørgrav.Cm ListenAddress 680545d5ecaSDag-Erling Smørgrav.Sm off 681545d5ecaSDag-Erling Smørgrav.Ar host No | Ar IPv4_addr No | Ar IPv6_addr 682545d5ecaSDag-Erling Smørgrav.Sm on 683545d5ecaSDag-Erling Smørgrav.It 684545d5ecaSDag-Erling Smørgrav.Cm ListenAddress 685545d5ecaSDag-Erling Smørgrav.Sm off 686545d5ecaSDag-Erling Smørgrav.Ar host No | Ar IPv4_addr No : Ar port 687545d5ecaSDag-Erling Smørgrav.Sm on 688545d5ecaSDag-Erling Smørgrav.It 689545d5ecaSDag-Erling Smørgrav.Cm ListenAddress 690545d5ecaSDag-Erling Smørgrav.Sm off 691545d5ecaSDag-Erling Smørgrav.Oo 692545d5ecaSDag-Erling Smørgrav.Ar host No | Ar IPv6_addr Oc : Ar port 693545d5ecaSDag-Erling Smørgrav.Sm on 694545d5ecaSDag-Erling Smørgrav.El 695545d5ecaSDag-Erling Smørgrav.Pp 696545d5ecaSDag-Erling SmørgravIf 697545d5ecaSDag-Erling Smørgrav.Ar port 698545d5ecaSDag-Erling Smørgravis not specified, 699333ee039SDag-Erling Smørgravsshd will listen on the address and all prior 700545d5ecaSDag-Erling Smørgrav.Cm Port 701cf2b5f3bSDag-Erling Smørgravoptions specified. 702cf2b5f3bSDag-Erling SmørgravThe default is to listen on all local addresses. 703e73e9afaSDag-Erling SmørgravMultiple 704545d5ecaSDag-Erling Smørgrav.Cm ListenAddress 705cf2b5f3bSDag-Erling Smørgravoptions are permitted. 706cf2b5f3bSDag-Erling SmørgravAdditionally, any 707545d5ecaSDag-Erling Smørgrav.Cm Port 708333ee039SDag-Erling Smørgravoptions must precede this option for non-port qualified addresses. 709545d5ecaSDag-Erling Smørgrav.It Cm LoginGraceTime 710545d5ecaSDag-Erling SmørgravThe server disconnects after this time if the user has not 711545d5ecaSDag-Erling Smørgravsuccessfully logged in. 712545d5ecaSDag-Erling SmørgravIf the value is 0, there is no time limit. 713f388f5efSDag-Erling SmørgravThe default is 120 seconds. 714545d5ecaSDag-Erling Smørgrav.It Cm LogLevel 715545d5ecaSDag-Erling SmørgravGives the verbosity level that is used when logging messages from 716333ee039SDag-Erling Smørgrav.Xr sshd 8 . 717545d5ecaSDag-Erling SmørgravThe possible values are: 718333ee039SDag-Erling SmørgravQUIET, FATAL, ERROR, INFO, VERBOSE, DEBUG, DEBUG1, DEBUG2, and DEBUG3. 719e73e9afaSDag-Erling SmørgravThe default is INFO. 720e73e9afaSDag-Erling SmørgravDEBUG and DEBUG1 are equivalent. 721e73e9afaSDag-Erling SmørgravDEBUG2 and DEBUG3 each specify higher levels of debugging output. 722e73e9afaSDag-Erling SmørgravLogging with a DEBUG level violates the privacy of users and is not recommended. 723545d5ecaSDag-Erling Smørgrav.It Cm MACs 724545d5ecaSDag-Erling SmørgravSpecifies the available MAC (message authentication code) algorithms. 725545d5ecaSDag-Erling SmørgravThe MAC algorithm is used in protocol version 2 726545d5ecaSDag-Erling Smørgravfor data integrity protection. 727545d5ecaSDag-Erling SmørgravMultiple algorithms must be comma-separated. 7286888a9beSDag-Erling SmørgravThe algorithms that contain 7296888a9beSDag-Erling Smørgrav.Dq -etm 7306888a9beSDag-Erling Smørgravcalculate the MAC after encryption (encrypt-then-mac). 7316888a9beSDag-Erling SmørgravThese are considered safer and their use recommended. 732333ee039SDag-Erling SmørgravThe default is: 733d4af9e69SDag-Erling Smørgrav.Bd -literal -offset indent 7346888a9beSDag-Erling Smørgravhmac-md5-etm@openssh.com,hmac-sha1-etm@openssh.com, 7356888a9beSDag-Erling Smørgravumac-64-etm@openssh.com,umac-128-etm@openssh.com, 7366888a9beSDag-Erling Smørgravhmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com, 7376888a9beSDag-Erling Smørgravhmac-ripemd160-etm@openssh.com,hmac-sha1-96-etm@openssh.com, 7386888a9beSDag-Erling Smørgravhmac-md5-96-etm@openssh.com, 7396888a9beSDag-Erling Smørgravhmac-md5,hmac-sha1,umac-64@openssh.com,umac-128@openssh.com, 740462c32cbSDag-Erling Smørgravhmac-sha2-256,hmac-sha2-512,hmac-ripemd160, 741462c32cbSDag-Erling Smørgravhmac-sha1-96,hmac-md5-96 742d4af9e69SDag-Erling Smørgrav.Ed 743333ee039SDag-Erling Smørgrav.It Cm Match 744333ee039SDag-Erling SmørgravIntroduces a conditional block. 745333ee039SDag-Erling SmørgravIf all of the criteria on the 746333ee039SDag-Erling Smørgrav.Cm Match 747333ee039SDag-Erling Smørgravline are satisfied, the keywords on the following lines override those 748333ee039SDag-Erling Smørgravset in the global section of the config file, until either another 749333ee039SDag-Erling Smørgrav.Cm Match 750333ee039SDag-Erling Smørgravline or the end of the file. 751d4af9e69SDag-Erling Smørgrav.Pp 752333ee039SDag-Erling SmørgravThe arguments to 753333ee039SDag-Erling Smørgrav.Cm Match 754333ee039SDag-Erling Smørgravare one or more criteria-pattern pairs. 755333ee039SDag-Erling SmørgravThe available criteria are 756333ee039SDag-Erling Smørgrav.Cm User , 757333ee039SDag-Erling Smørgrav.Cm Group , 758333ee039SDag-Erling Smørgrav.Cm Host , 759462c32cbSDag-Erling Smørgrav.Cm LocalAddress , 760462c32cbSDag-Erling Smørgrav.Cm LocalPort , 761333ee039SDag-Erling Smørgravand 762333ee039SDag-Erling Smørgrav.Cm Address . 763d4af9e69SDag-Erling SmørgravThe match patterns may consist of single entries or comma-separated 764d4af9e69SDag-Erling Smørgravlists and may use the wildcard and negation operators described in the 765*e4a9863fSDag-Erling SmørgravPATTERNS section of 766d4af9e69SDag-Erling Smørgrav.Xr ssh_config 5 . 767d4af9e69SDag-Erling Smørgrav.Pp 768d4af9e69SDag-Erling SmørgravThe patterns in an 769d4af9e69SDag-Erling Smørgrav.Cm Address 770d4af9e69SDag-Erling Smørgravcriteria may additionally contain addresses to match in CIDR 771d4af9e69SDag-Erling Smørgravaddress/masklen format, e.g.\& 772d4af9e69SDag-Erling Smørgrav.Dq 192.0.2.0/24 773d4af9e69SDag-Erling Smørgravor 774d4af9e69SDag-Erling Smørgrav.Dq 3ffe:ffff::/32 . 775d4af9e69SDag-Erling SmørgravNote that the mask length provided must be consistent with the address - 776d4af9e69SDag-Erling Smørgravit is an error to specify a mask length that is too long for the address 777d4af9e69SDag-Erling Smørgravor one with bits set in this host portion of the address. 778d4af9e69SDag-Erling SmørgravFor example, 779d4af9e69SDag-Erling Smørgrav.Dq 192.0.2.0/33 780d4af9e69SDag-Erling Smørgravand 781d4af9e69SDag-Erling Smørgrav.Dq 192.0.2.0/8 782d4af9e69SDag-Erling Smørgravrespectively. 783d4af9e69SDag-Erling Smørgrav.Pp 784333ee039SDag-Erling SmørgravOnly a subset of keywords may be used on the lines following a 785333ee039SDag-Erling Smørgrav.Cm Match 786333ee039SDag-Erling Smørgravkeyword. 787333ee039SDag-Erling SmørgravAvailable keywords are 788462c32cbSDag-Erling Smørgrav.Cm AcceptEnv , 789cce7d346SDag-Erling Smørgrav.Cm AllowAgentForwarding , 790462c32cbSDag-Erling Smørgrav.Cm AllowGroups , 791333ee039SDag-Erling Smørgrav.Cm AllowTcpForwarding , 792462c32cbSDag-Erling Smørgrav.Cm AllowUsers , 7936888a9beSDag-Erling Smørgrav.Cm AuthenticationMethods , 7946888a9beSDag-Erling Smørgrav.Cm AuthorizedKeysCommand , 7956888a9beSDag-Erling Smørgrav.Cm AuthorizedKeysCommandUser , 796e2f6069cSDag-Erling Smørgrav.Cm AuthorizedKeysFile , 797e2f6069cSDag-Erling Smørgrav.Cm AuthorizedPrincipalsFile , 798d4af9e69SDag-Erling Smørgrav.Cm Banner , 799d4af9e69SDag-Erling Smørgrav.Cm ChrootDirectory , 800462c32cbSDag-Erling Smørgrav.Cm DenyGroups , 801462c32cbSDag-Erling Smørgrav.Cm DenyUsers , 802333ee039SDag-Erling Smørgrav.Cm ForceCommand , 803333ee039SDag-Erling Smørgrav.Cm GatewayPorts , 804d4af9e69SDag-Erling Smørgrav.Cm GSSAPIAuthentication , 805d4af9e69SDag-Erling Smørgrav.Cm HostbasedAuthentication , 806e2f6069cSDag-Erling Smørgrav.Cm HostbasedUsesNameFromPacketOnly , 807d4af9e69SDag-Erling Smørgrav.Cm KbdInteractiveAuthentication , 808d4af9e69SDag-Erling Smørgrav.Cm KerberosAuthentication , 809d4af9e69SDag-Erling Smørgrav.Cm MaxAuthTries , 810d4af9e69SDag-Erling Smørgrav.Cm MaxSessions , 811d4af9e69SDag-Erling Smørgrav.Cm PasswordAuthentication , 812cce7d346SDag-Erling Smørgrav.Cm PermitEmptyPasswords , 813333ee039SDag-Erling Smørgrav.Cm PermitOpen , 814d4af9e69SDag-Erling Smørgrav.Cm PermitRootLogin , 815e2f6069cSDag-Erling Smørgrav.Cm PermitTunnel , 816b15c8340SDag-Erling Smørgrav.Cm PubkeyAuthentication , 817*e4a9863fSDag-Erling Smørgrav.Cm RekeyLimit , 818d4af9e69SDag-Erling Smørgrav.Cm RhostsRSAAuthentication , 819d4af9e69SDag-Erling Smørgrav.Cm RSAAuthentication , 820333ee039SDag-Erling Smørgrav.Cm X11DisplayOffset , 821cce7d346SDag-Erling Smørgrav.Cm X11Forwarding 822333ee039SDag-Erling Smørgravand 823333ee039SDag-Erling Smørgrav.Cm X11UseLocalHost . 82421e764dfSDag-Erling Smørgrav.It Cm MaxAuthTries 82521e764dfSDag-Erling SmørgravSpecifies the maximum number of authentication attempts permitted per 82621e764dfSDag-Erling Smørgravconnection. 82721e764dfSDag-Erling SmørgravOnce the number of failures reaches half this value, 82821e764dfSDag-Erling Smørgravadditional failures are logged. 82921e764dfSDag-Erling SmørgravThe default is 6. 830d4af9e69SDag-Erling Smørgrav.It Cm MaxSessions 831d4af9e69SDag-Erling SmørgravSpecifies the maximum number of open sessions permitted per network connection. 832d4af9e69SDag-Erling SmørgravThe default is 10. 833545d5ecaSDag-Erling Smørgrav.It Cm MaxStartups 834545d5ecaSDag-Erling SmørgravSpecifies the maximum number of concurrent unauthenticated connections to the 835333ee039SDag-Erling SmørgravSSH daemon. 836545d5ecaSDag-Erling SmørgravAdditional connections will be dropped until authentication succeeds or the 837545d5ecaSDag-Erling Smørgrav.Cm LoginGraceTime 838545d5ecaSDag-Erling Smørgravexpires for a connection. 8396888a9beSDag-Erling SmørgravThe default is 10:30:100. 840545d5ecaSDag-Erling Smørgrav.Pp 841545d5ecaSDag-Erling SmørgravAlternatively, random early drop can be enabled by specifying 842545d5ecaSDag-Erling Smørgravthe three colon separated values 843545d5ecaSDag-Erling Smørgrav.Dq start:rate:full 844333ee039SDag-Erling Smørgrav(e.g. "10:30:60"). 845333ee039SDag-Erling Smørgrav.Xr sshd 8 846545d5ecaSDag-Erling Smørgravwill refuse connection attempts with a probability of 847545d5ecaSDag-Erling Smørgrav.Dq rate/100 848545d5ecaSDag-Erling Smørgrav(30%) 849545d5ecaSDag-Erling Smørgravif there are currently 850545d5ecaSDag-Erling Smørgrav.Dq start 851545d5ecaSDag-Erling Smørgrav(10) 852545d5ecaSDag-Erling Smørgravunauthenticated connections. 853545d5ecaSDag-Erling SmørgravThe probability increases linearly and all connection attempts 854545d5ecaSDag-Erling Smørgravare refused if the number of unauthenticated connections reaches 855545d5ecaSDag-Erling Smørgrav.Dq full 856545d5ecaSDag-Erling Smørgrav(60). 857545d5ecaSDag-Erling Smørgrav.It Cm PasswordAuthentication 858545d5ecaSDag-Erling SmørgravSpecifies whether password authentication is allowed. 859d4af9e69SDag-Erling SmørgravSee also 860d4af9e69SDag-Erling Smørgrav.Cm UsePAM . 861545d5ecaSDag-Erling SmørgravThe default is 862d4af9e69SDag-Erling Smørgrav.Dq no . 863545d5ecaSDag-Erling Smørgrav.It Cm PermitEmptyPasswords 864545d5ecaSDag-Erling SmørgravWhen password authentication is allowed, it specifies whether the 865545d5ecaSDag-Erling Smørgravserver allows login to accounts with empty password strings. 866545d5ecaSDag-Erling SmørgravThe default is 867545d5ecaSDag-Erling Smørgrav.Dq no . 868333ee039SDag-Erling Smørgrav.It Cm PermitOpen 869333ee039SDag-Erling SmørgravSpecifies the destinations to which TCP port forwarding is permitted. 870333ee039SDag-Erling SmørgravThe forwarding specification must be one of the following forms: 871333ee039SDag-Erling Smørgrav.Pp 872333ee039SDag-Erling Smørgrav.Bl -item -offset indent -compact 873333ee039SDag-Erling Smørgrav.It 874333ee039SDag-Erling Smørgrav.Cm PermitOpen 875333ee039SDag-Erling Smørgrav.Sm off 876333ee039SDag-Erling Smørgrav.Ar host : port 877333ee039SDag-Erling Smørgrav.Sm on 878333ee039SDag-Erling Smørgrav.It 879333ee039SDag-Erling Smørgrav.Cm PermitOpen 880333ee039SDag-Erling Smørgrav.Sm off 881333ee039SDag-Erling Smørgrav.Ar IPv4_addr : port 882333ee039SDag-Erling Smørgrav.Sm on 883333ee039SDag-Erling Smørgrav.It 884333ee039SDag-Erling Smørgrav.Cm PermitOpen 885333ee039SDag-Erling Smørgrav.Sm off 886333ee039SDag-Erling Smørgrav.Ar \&[ IPv6_addr \&] : port 887333ee039SDag-Erling Smørgrav.Sm on 888333ee039SDag-Erling Smørgrav.El 889333ee039SDag-Erling Smørgrav.Pp 890333ee039SDag-Erling SmørgravMultiple forwards may be specified by separating them with whitespace. 891333ee039SDag-Erling SmørgravAn argument of 892333ee039SDag-Erling Smørgrav.Dq any 893333ee039SDag-Erling Smørgravcan be used to remove all restrictions and permit any forwarding requests. 894462c32cbSDag-Erling SmørgravAn argument of 895462c32cbSDag-Erling Smørgrav.Dq none 896462c32cbSDag-Erling Smørgravcan be used to prohibit all forwarding requests. 897333ee039SDag-Erling SmørgravBy default all port forwarding requests are permitted. 898545d5ecaSDag-Erling Smørgrav.It Cm PermitRootLogin 899545d5ecaSDag-Erling SmørgravSpecifies whether root can log in using 900545d5ecaSDag-Erling Smørgrav.Xr ssh 1 . 901545d5ecaSDag-Erling SmørgravThe argument must be 902545d5ecaSDag-Erling Smørgrav.Dq yes , 903545d5ecaSDag-Erling Smørgrav.Dq without-password , 904333ee039SDag-Erling Smørgrav.Dq forced-commands-only , 905545d5ecaSDag-Erling Smørgravor 906545d5ecaSDag-Erling Smørgrav.Dq no . 907545d5ecaSDag-Erling SmørgravThe default is 90835d4ccfbSDag-Erling Smørgrav.Dq no . 909810a15b1SDag-Erling SmørgravNote that if 910810a15b1SDag-Erling Smørgrav.Cm ChallengeResponseAuthentication 911810a15b1SDag-Erling Smørgravis 912810a15b1SDag-Erling Smørgrav.Dq yes , 913810a15b1SDag-Erling Smørgravthe root user may be allowed in with its password even if 914810a15b1SDag-Erling Smørgrav.Cm PermitRootLogin is set to 915810a15b1SDag-Erling Smørgrav.Dq without-password . 916545d5ecaSDag-Erling Smørgrav.Pp 917545d5ecaSDag-Erling SmørgravIf this option is set to 918333ee039SDag-Erling Smørgrav.Dq without-password , 919aa49c926SDag-Erling Smørgravpassword authentication is disabled for root. 920545d5ecaSDag-Erling Smørgrav.Pp 921545d5ecaSDag-Erling SmørgravIf this option is set to 922333ee039SDag-Erling Smørgrav.Dq forced-commands-only , 923545d5ecaSDag-Erling Smørgravroot login with public key authentication will be allowed, 924545d5ecaSDag-Erling Smørgravbut only if the 925545d5ecaSDag-Erling Smørgrav.Ar command 926545d5ecaSDag-Erling Smørgravoption has been specified 927545d5ecaSDag-Erling Smørgrav(which may be useful for taking remote backups even if root login is 928cf2b5f3bSDag-Erling Smørgravnormally not allowed). 929cf2b5f3bSDag-Erling SmørgravAll other authentication methods are disabled for root. 930545d5ecaSDag-Erling Smørgrav.Pp 931545d5ecaSDag-Erling SmørgravIf this option is set to 932333ee039SDag-Erling Smørgrav.Dq no , 933545d5ecaSDag-Erling Smørgravroot is not allowed to log in. 934b74df5b2SDag-Erling Smørgrav.It Cm PermitTunnel 935b74df5b2SDag-Erling SmørgravSpecifies whether 936b74df5b2SDag-Erling Smørgrav.Xr tun 4 937b74df5b2SDag-Erling Smørgravdevice forwarding is allowed. 938b74df5b2SDag-Erling SmørgravThe argument must be 939b74df5b2SDag-Erling Smørgrav.Dq yes , 940333ee039SDag-Erling Smørgrav.Dq point-to-point 941333ee039SDag-Erling Smørgrav(layer 3), 942b74df5b2SDag-Erling Smørgrav.Dq ethernet 943333ee039SDag-Erling Smørgrav(layer 2), or 944b74df5b2SDag-Erling Smørgrav.Dq no . 945333ee039SDag-Erling SmørgravSpecifying 946333ee039SDag-Erling Smørgrav.Dq yes 947333ee039SDag-Erling Smørgravpermits both 948333ee039SDag-Erling Smørgrav.Dq point-to-point 949333ee039SDag-Erling Smørgravand 950333ee039SDag-Erling Smørgrav.Dq ethernet . 951b74df5b2SDag-Erling SmørgravThe default is 952b74df5b2SDag-Erling Smørgrav.Dq no . 953f388f5efSDag-Erling Smørgrav.It Cm PermitUserEnvironment 954f388f5efSDag-Erling SmørgravSpecifies whether 955f388f5efSDag-Erling Smørgrav.Pa ~/.ssh/environment 956f388f5efSDag-Erling Smørgravand 957f388f5efSDag-Erling Smørgrav.Cm environment= 958f388f5efSDag-Erling Smørgravoptions in 959f388f5efSDag-Erling Smørgrav.Pa ~/.ssh/authorized_keys 960f388f5efSDag-Erling Smørgravare processed by 961333ee039SDag-Erling Smørgrav.Xr sshd 8 . 962f388f5efSDag-Erling SmørgravThe default is 963f388f5efSDag-Erling Smørgrav.Dq no . 964f388f5efSDag-Erling SmørgravEnabling environment processing may enable users to bypass access 965f388f5efSDag-Erling Smørgravrestrictions in some configurations using mechanisms such as 966f388f5efSDag-Erling Smørgrav.Ev LD_PRELOAD . 967545d5ecaSDag-Erling Smørgrav.It Cm PidFile 968a82e551fSDag-Erling SmørgravSpecifies the file that contains the process ID of the 969333ee039SDag-Erling SmørgravSSH daemon. 970545d5ecaSDag-Erling SmørgravThe default is 971545d5ecaSDag-Erling Smørgrav.Pa /var/run/sshd.pid . 972545d5ecaSDag-Erling Smørgrav.It Cm Port 973545d5ecaSDag-Erling SmørgravSpecifies the port number that 974333ee039SDag-Erling Smørgrav.Xr sshd 8 975545d5ecaSDag-Erling Smørgravlistens on. 976545d5ecaSDag-Erling SmørgravThe default is 22. 977545d5ecaSDag-Erling SmørgravMultiple options of this type are permitted. 978545d5ecaSDag-Erling SmørgravSee also 979545d5ecaSDag-Erling Smørgrav.Cm ListenAddress . 980545d5ecaSDag-Erling Smørgrav.It Cm PrintLastLog 981545d5ecaSDag-Erling SmørgravSpecifies whether 982333ee039SDag-Erling Smørgrav.Xr sshd 8 983aa49c926SDag-Erling Smørgravshould print the date and time of the last user login when a user logs 984aa49c926SDag-Erling Smørgravin interactively. 985545d5ecaSDag-Erling SmørgravThe default is 986545d5ecaSDag-Erling Smørgrav.Dq yes . 987545d5ecaSDag-Erling Smørgrav.It Cm PrintMotd 988545d5ecaSDag-Erling SmørgravSpecifies whether 989333ee039SDag-Erling Smørgrav.Xr sshd 8 990545d5ecaSDag-Erling Smørgravshould print 991545d5ecaSDag-Erling Smørgrav.Pa /etc/motd 992545d5ecaSDag-Erling Smørgravwhen a user logs in interactively. 993545d5ecaSDag-Erling Smørgrav(On some systems it is also printed by the shell, 994545d5ecaSDag-Erling Smørgrav.Pa /etc/profile , 995545d5ecaSDag-Erling Smørgravor equivalent.) 996545d5ecaSDag-Erling SmørgravThe default is 997545d5ecaSDag-Erling Smørgrav.Dq yes . 998545d5ecaSDag-Erling Smørgrav.It Cm Protocol 999545d5ecaSDag-Erling SmørgravSpecifies the protocol versions 1000333ee039SDag-Erling Smørgrav.Xr sshd 8 1001f388f5efSDag-Erling Smørgravsupports. 1002545d5ecaSDag-Erling SmørgravThe possible values are 1003333ee039SDag-Erling Smørgrav.Sq 1 1004545d5ecaSDag-Erling Smørgravand 1005333ee039SDag-Erling Smørgrav.Sq 2 . 1006545d5ecaSDag-Erling SmørgravMultiple versions must be comma-separated. 1007545d5ecaSDag-Erling SmørgravThe default is 1008b15c8340SDag-Erling Smørgrav.Sq 2 . 1009f388f5efSDag-Erling SmørgravNote that the order of the protocol list does not indicate preference, 1010f388f5efSDag-Erling Smørgravbecause the client selects among multiple protocol versions offered 1011f388f5efSDag-Erling Smørgravby the server. 1012f388f5efSDag-Erling SmørgravSpecifying 1013f388f5efSDag-Erling Smørgrav.Dq 2,1 1014f388f5efSDag-Erling Smørgravis identical to 1015f388f5efSDag-Erling Smørgrav.Dq 1,2 . 1016545d5ecaSDag-Erling Smørgrav.It Cm PubkeyAuthentication 1017545d5ecaSDag-Erling SmørgravSpecifies whether public key authentication is allowed. 1018545d5ecaSDag-Erling SmørgravThe default is 1019545d5ecaSDag-Erling Smørgrav.Dq yes . 1020545d5ecaSDag-Erling SmørgravNote that this option applies to protocol version 2 only. 1021*e4a9863fSDag-Erling Smørgrav.It Cm RekeyLimit 1022*e4a9863fSDag-Erling SmørgravSpecifies the maximum amount of data that may be transmitted before the 1023*e4a9863fSDag-Erling Smørgravsession key is renegotiated, optionally followed a maximum amount of 1024*e4a9863fSDag-Erling Smørgravtime that may pass before the session key is renegotiated. 1025*e4a9863fSDag-Erling SmørgravThe first argument is specified in bytes and may have a suffix of 1026*e4a9863fSDag-Erling Smørgrav.Sq K , 1027*e4a9863fSDag-Erling Smørgrav.Sq M , 1028*e4a9863fSDag-Erling Smørgravor 1029*e4a9863fSDag-Erling Smørgrav.Sq G 1030*e4a9863fSDag-Erling Smørgravto indicate Kilobytes, Megabytes, or Gigabytes, respectively. 1031*e4a9863fSDag-Erling SmørgravThe default is between 1032*e4a9863fSDag-Erling Smørgrav.Sq 1G 1033*e4a9863fSDag-Erling Smørgravand 1034*e4a9863fSDag-Erling Smørgrav.Sq 4G , 1035*e4a9863fSDag-Erling Smørgravdepending on the cipher. 1036*e4a9863fSDag-Erling SmørgravThe optional second value is specified in seconds and may use any of the 1037*e4a9863fSDag-Erling Smørgravunits documented in the 1038*e4a9863fSDag-Erling Smørgrav.Sx TIME FORMATS 1039*e4a9863fSDag-Erling Smørgravsection. 1040*e4a9863fSDag-Erling SmørgravThe default value for 1041*e4a9863fSDag-Erling Smørgrav.Cm RekeyLimit 1042*e4a9863fSDag-Erling Smørgravis 1043*e4a9863fSDag-Erling Smørgrav.Dq default none , 1044*e4a9863fSDag-Erling Smørgravwhich means that rekeying is performed after the cipher's default amount 1045*e4a9863fSDag-Erling Smørgravof data has been sent or received and no time based rekeying is done. 1046*e4a9863fSDag-Erling SmørgravThis option applies to protocol version 2 only. 1047b15c8340SDag-Erling Smørgrav.It Cm RevokedKeys 10486888a9beSDag-Erling SmørgravSpecifies revoked public keys. 1049b15c8340SDag-Erling SmørgravKeys listed in this file will be refused for public key authentication. 1050b15c8340SDag-Erling SmørgravNote that if this file is not readable, then public key authentication will 1051b15c8340SDag-Erling Smørgravbe refused for all users. 10526888a9beSDag-Erling SmørgravKeys may be specified as a text file, listing one public key per line, or as 10536888a9beSDag-Erling Smørgravan OpenSSH Key Revocation List (KRL) as generated by 10546888a9beSDag-Erling Smørgrav.Xr ssh-keygen 1 . 1055*e4a9863fSDag-Erling SmørgravFor more information on KRLs, see the KEY REVOCATION LISTS section in 10566888a9beSDag-Erling Smørgrav.Xr ssh-keygen 1 . 1057545d5ecaSDag-Erling Smørgrav.It Cm RhostsRSAAuthentication 105835d4ccfbSDag-Erling SmørgravSpecifies whether rhosts or 105935d4ccfbSDag-Erling Smørgrav.Pa /etc/hosts.equiv 106035d4ccfbSDag-Erling Smørgravauthentication together 1061545d5ecaSDag-Erling Smørgravwith successful RSA host authentication is allowed. 1062545d5ecaSDag-Erling SmørgravThe default is 1063545d5ecaSDag-Erling Smørgrav.Dq no . 1064545d5ecaSDag-Erling SmørgravThis option applies to protocol version 1 only. 1065545d5ecaSDag-Erling Smørgrav.It Cm RSAAuthentication 1066545d5ecaSDag-Erling SmørgravSpecifies whether pure RSA authentication is allowed. 1067545d5ecaSDag-Erling SmørgravThe default is 1068545d5ecaSDag-Erling Smørgrav.Dq yes . 1069545d5ecaSDag-Erling SmørgravThis option applies to protocol version 1 only. 1070545d5ecaSDag-Erling Smørgrav.It Cm ServerKeyBits 1071545d5ecaSDag-Erling SmørgravDefines the number of bits in the ephemeral protocol version 1 server key. 1072d4af9e69SDag-Erling SmørgravThe minimum value is 512, and the default is 1024. 1073545d5ecaSDag-Erling Smørgrav.It Cm StrictModes 1074545d5ecaSDag-Erling SmørgravSpecifies whether 1075333ee039SDag-Erling Smørgrav.Xr sshd 8 1076545d5ecaSDag-Erling Smørgravshould check file modes and ownership of the 1077545d5ecaSDag-Erling Smørgravuser's files and home directory before accepting login. 1078545d5ecaSDag-Erling SmørgravThis is normally desirable because novices sometimes accidentally leave their 1079545d5ecaSDag-Erling Smørgravdirectory or files world-writable. 1080545d5ecaSDag-Erling SmørgravThe default is 1081545d5ecaSDag-Erling Smørgrav.Dq yes . 1082b15c8340SDag-Erling SmørgravNote that this does not apply to 1083b15c8340SDag-Erling Smørgrav.Cm ChrootDirectory , 1084b15c8340SDag-Erling Smørgravwhose permissions and ownership are checked unconditionally. 1085545d5ecaSDag-Erling Smørgrav.It Cm Subsystem 1086333ee039SDag-Erling SmørgravConfigures an external subsystem (e.g. file transfer daemon). 1087333ee039SDag-Erling SmørgravArguments should be a subsystem name and a command (with optional arguments) 1088333ee039SDag-Erling Smørgravto execute upon subsystem request. 1089d4af9e69SDag-Erling Smørgrav.Pp 1090545d5ecaSDag-Erling SmørgravThe command 1091545d5ecaSDag-Erling Smørgrav.Xr sftp-server 8 1092545d5ecaSDag-Erling Smørgravimplements the 1093545d5ecaSDag-Erling Smørgrav.Dq sftp 1094545d5ecaSDag-Erling Smørgravfile transfer subsystem. 1095d4af9e69SDag-Erling Smørgrav.Pp 1096d4af9e69SDag-Erling SmørgravAlternately the name 1097d4af9e69SDag-Erling Smørgrav.Dq internal-sftp 1098d4af9e69SDag-Erling Smørgravimplements an in-process 1099d4af9e69SDag-Erling Smørgrav.Dq sftp 1100d4af9e69SDag-Erling Smørgravserver. 1101d4af9e69SDag-Erling SmørgravThis may simplify configurations using 1102d4af9e69SDag-Erling Smørgrav.Cm ChrootDirectory 1103d4af9e69SDag-Erling Smørgravto force a different filesystem root on clients. 1104d4af9e69SDag-Erling Smørgrav.Pp 1105545d5ecaSDag-Erling SmørgravBy default no subsystems are defined. 1106545d5ecaSDag-Erling SmørgravNote that this option applies to protocol version 2 only. 1107545d5ecaSDag-Erling Smørgrav.It Cm SyslogFacility 1108545d5ecaSDag-Erling SmørgravGives the facility code that is used when logging messages from 1109333ee039SDag-Erling Smørgrav.Xr sshd 8 . 1110545d5ecaSDag-Erling SmørgravThe possible values are: DAEMON, USER, AUTH, LOCAL0, LOCAL1, LOCAL2, 1111545d5ecaSDag-Erling SmørgravLOCAL3, LOCAL4, LOCAL5, LOCAL6, LOCAL7. 1112545d5ecaSDag-Erling SmørgravThe default is AUTH. 11131ec0d754SDag-Erling Smørgrav.It Cm TCPKeepAlive 11141ec0d754SDag-Erling SmørgravSpecifies whether the system should send TCP keepalive messages to the 11151ec0d754SDag-Erling Smørgravother side. 11161ec0d754SDag-Erling SmørgravIf they are sent, death of the connection or crash of one 11171ec0d754SDag-Erling Smørgravof the machines will be properly noticed. 11181ec0d754SDag-Erling SmørgravHowever, this means that 11191ec0d754SDag-Erling Smørgravconnections will die if the route is down temporarily, and some people 11201ec0d754SDag-Erling Smørgravfind it annoying. 11211ec0d754SDag-Erling SmørgravOn the other hand, if TCP keepalives are not sent, 11221ec0d754SDag-Erling Smørgravsessions may hang indefinitely on the server, leaving 11231ec0d754SDag-Erling Smørgrav.Dq ghost 11241ec0d754SDag-Erling Smørgravusers and consuming server resources. 11251ec0d754SDag-Erling Smørgrav.Pp 11261ec0d754SDag-Erling SmørgravThe default is 11271ec0d754SDag-Erling Smørgrav.Dq yes 11281ec0d754SDag-Erling Smørgrav(to send TCP keepalive messages), and the server will notice 11291ec0d754SDag-Erling Smørgravif the network goes down or the client host crashes. 11301ec0d754SDag-Erling SmørgravThis avoids infinitely hanging sessions. 11311ec0d754SDag-Erling Smørgrav.Pp 11321ec0d754SDag-Erling SmørgravTo disable TCP keepalive messages, the value should be set to 11331ec0d754SDag-Erling Smørgrav.Dq no . 1134b15c8340SDag-Erling Smørgrav.It Cm TrustedUserCAKeys 1135b15c8340SDag-Erling SmørgravSpecifies a file containing public keys of certificate authorities that are 1136b15c8340SDag-Erling Smørgravtrusted to sign user certificates for authentication. 1137b15c8340SDag-Erling SmørgravKeys are listed one per line; empty lines and comments starting with 1138b15c8340SDag-Erling Smørgrav.Ql # 1139b15c8340SDag-Erling Smørgravare allowed. 1140b15c8340SDag-Erling SmørgravIf a certificate is presented for authentication and has its signing CA key 1141b15c8340SDag-Erling Smørgravlisted in this file, then it may be used for authentication for any user 1142b15c8340SDag-Erling Smørgravlisted in the certificate's principals list. 1143b15c8340SDag-Erling SmørgravNote that certificates that lack a list of principals will not be permitted 1144b15c8340SDag-Erling Smørgravfor authentication using 1145b15c8340SDag-Erling Smørgrav.Cm TrustedUserCAKeys . 1146*e4a9863fSDag-Erling SmørgravFor more details on certificates, see the CERTIFICATES section in 1147b15c8340SDag-Erling Smørgrav.Xr ssh-keygen 1 . 1148cf2b5f3bSDag-Erling Smørgrav.It Cm UseDNS 1149cf2b5f3bSDag-Erling SmørgravSpecifies whether 1150333ee039SDag-Erling Smørgrav.Xr sshd 8 1151cf2b5f3bSDag-Erling Smørgravshould look up the remote host name and check that 1152cf2b5f3bSDag-Erling Smørgravthe resolved host name for the remote IP address maps back to the 1153cf2b5f3bSDag-Erling Smørgravvery same IP address. 1154cf2b5f3bSDag-Erling SmørgravThe default is 1155cf2b5f3bSDag-Erling Smørgrav.Dq yes . 1156545d5ecaSDag-Erling Smørgrav.It Cm UseLogin 1157545d5ecaSDag-Erling SmørgravSpecifies whether 1158545d5ecaSDag-Erling Smørgrav.Xr login 1 1159545d5ecaSDag-Erling Smørgravis used for interactive login sessions. 1160545d5ecaSDag-Erling SmørgravThe default is 1161545d5ecaSDag-Erling Smørgrav.Dq no . 1162545d5ecaSDag-Erling SmørgravNote that 1163545d5ecaSDag-Erling Smørgrav.Xr login 1 1164545d5ecaSDag-Erling Smørgravis never used for remote command execution. 1165545d5ecaSDag-Erling SmørgravNote also, that if this is enabled, 1166545d5ecaSDag-Erling Smørgrav.Cm X11Forwarding 1167545d5ecaSDag-Erling Smørgravwill be disabled because 1168545d5ecaSDag-Erling Smørgrav.Xr login 1 1169545d5ecaSDag-Erling Smørgravdoes not know how to handle 1170545d5ecaSDag-Erling Smørgrav.Xr xauth 1 1171e73e9afaSDag-Erling Smørgravcookies. 1172e73e9afaSDag-Erling SmørgravIf 1173545d5ecaSDag-Erling Smørgrav.Cm UsePrivilegeSeparation 1174545d5ecaSDag-Erling Smørgravis specified, it will be disabled after authentication. 1175cf2b5f3bSDag-Erling Smørgrav.It Cm UsePAM 117621e764dfSDag-Erling SmørgravEnables the Pluggable Authentication Module interface. 117721e764dfSDag-Erling SmørgravIf set to 117821e764dfSDag-Erling Smørgrav.Dq yes 117921e764dfSDag-Erling Smørgravthis will enable PAM authentication using 118021e764dfSDag-Erling Smørgrav.Cm ChallengeResponseAuthentication 1181333ee039SDag-Erling Smørgravand 1182333ee039SDag-Erling Smørgrav.Cm PasswordAuthentication 1183333ee039SDag-Erling Smørgravin addition to PAM account and session module processing for all 1184333ee039SDag-Erling Smørgravauthentication types. 118521e764dfSDag-Erling Smørgrav.Pp 118621e764dfSDag-Erling SmørgravBecause PAM challenge-response authentication usually serves an equivalent 118721e764dfSDag-Erling Smørgravrole to password authentication, you should disable either 118821e764dfSDag-Erling Smørgrav.Cm PasswordAuthentication 118921e764dfSDag-Erling Smørgravor 119021e764dfSDag-Erling Smørgrav.Cm ChallengeResponseAuthentication. 119121e764dfSDag-Erling Smørgrav.Pp 119221e764dfSDag-Erling SmørgravIf 119321e764dfSDag-Erling Smørgrav.Cm UsePAM 119421e764dfSDag-Erling Smørgravis enabled, you will not be able to run 119521e764dfSDag-Erling Smørgrav.Xr sshd 8 119621e764dfSDag-Erling Smørgravas a non-root user. 119721e764dfSDag-Erling SmørgravThe default is 1198d2b1b4f3SDag-Erling Smørgrav.Dq yes . 1199545d5ecaSDag-Erling Smørgrav.It Cm UsePrivilegeSeparation 1200545d5ecaSDag-Erling SmørgravSpecifies whether 1201333ee039SDag-Erling Smørgrav.Xr sshd 8 1202545d5ecaSDag-Erling Smørgravseparates privileges by creating an unprivileged child process 1203e73e9afaSDag-Erling Smørgravto deal with incoming network traffic. 1204e73e9afaSDag-Erling SmørgravAfter successful authentication, another process will be created that has 1205e73e9afaSDag-Erling Smørgravthe privilege of the authenticated user. 1206e73e9afaSDag-Erling SmørgravThe goal of privilege separation is to prevent privilege 1207545d5ecaSDag-Erling Smørgravescalation by containing any corruption within the unprivileged processes. 1208545d5ecaSDag-Erling SmørgravThe default is 1209aa0dd44bSDag-Erling Smørgrav.Dq yes . 1210e146993eSDag-Erling SmørgravIf 1211e146993eSDag-Erling Smørgrav.Cm UsePrivilegeSeparation 1212e146993eSDag-Erling Smørgravis set to 1213e146993eSDag-Erling Smørgrav.Dq sandbox 1214e146993eSDag-Erling Smørgravthen the pre-authentication unprivileged process is subject to additional 1215e146993eSDag-Erling Smørgravrestrictions. 121635d4ccfbSDag-Erling Smørgrav.It Cm VersionAddendum 1217462c32cbSDag-Erling SmørgravOptionally specifies additional text to append to the SSH protocol banner 1218462c32cbSDag-Erling Smørgravsent by the server upon connection. 1219ee8aeb14SDag-Erling SmørgravThe default is 1220*e4a9863fSDag-Erling Smørgrav.Dq FreeBSD-20130918 . 1221545d5ecaSDag-Erling Smørgrav.It Cm X11DisplayOffset 1222545d5ecaSDag-Erling SmørgravSpecifies the first display number available for 1223333ee039SDag-Erling Smørgrav.Xr sshd 8 Ns 's 1224545d5ecaSDag-Erling SmørgravX11 forwarding. 1225333ee039SDag-Erling SmørgravThis prevents sshd from interfering with real X11 servers. 1226545d5ecaSDag-Erling SmørgravThe default is 10. 1227545d5ecaSDag-Erling Smørgrav.It Cm X11Forwarding 1228545d5ecaSDag-Erling SmørgravSpecifies whether X11 forwarding is permitted. 1229f388f5efSDag-Erling SmørgravThe argument must be 1230f388f5efSDag-Erling Smørgrav.Dq yes 1231f388f5efSDag-Erling Smørgravor 1232f388f5efSDag-Erling Smørgrav.Dq no . 1233545d5ecaSDag-Erling SmørgravThe default is 1234ee8aeb14SDag-Erling Smørgrav.Dq yes . 1235f388f5efSDag-Erling Smørgrav.Pp 1236f388f5efSDag-Erling SmørgravWhen X11 forwarding is enabled, there may be additional exposure to 1237f388f5efSDag-Erling Smørgravthe server and to client displays if the 1238333ee039SDag-Erling Smørgrav.Xr sshd 8 1239f388f5efSDag-Erling Smørgravproxy display is configured to listen on the wildcard address (see 1240f388f5efSDag-Erling Smørgrav.Cm X11UseLocalhost 1241333ee039SDag-Erling Smørgravbelow), though this is not the default. 1242f388f5efSDag-Erling SmørgravAdditionally, the authentication spoofing and authentication data 1243f388f5efSDag-Erling Smørgravverification and substitution occur on the client side. 1244f388f5efSDag-Erling SmørgravThe security risk of using X11 forwarding is that the client's X11 1245333ee039SDag-Erling Smørgravdisplay server may be exposed to attack when the SSH client requests 1246f388f5efSDag-Erling Smørgravforwarding (see the warnings for 1247f388f5efSDag-Erling Smørgrav.Cm ForwardX11 1248f388f5efSDag-Erling Smørgravin 1249f388f5efSDag-Erling Smørgrav.Xr ssh_config 5 ) . 1250f388f5efSDag-Erling SmørgravA system administrator may have a stance in which they want to 1251f388f5efSDag-Erling Smørgravprotect clients that may expose themselves to attack by unwittingly 1252f388f5efSDag-Erling Smørgravrequesting X11 forwarding, which can warrant a 1253f388f5efSDag-Erling Smørgrav.Dq no 1254f388f5efSDag-Erling Smørgravsetting. 1255f388f5efSDag-Erling Smørgrav.Pp 1256f388f5efSDag-Erling SmørgravNote that disabling X11 forwarding does not prevent users from 1257f388f5efSDag-Erling Smørgravforwarding X11 traffic, as users can always install their own forwarders. 1258545d5ecaSDag-Erling SmørgravX11 forwarding is automatically disabled if 1259545d5ecaSDag-Erling Smørgrav.Cm UseLogin 1260545d5ecaSDag-Erling Smørgravis enabled. 1261545d5ecaSDag-Erling Smørgrav.It Cm X11UseLocalhost 1262545d5ecaSDag-Erling SmørgravSpecifies whether 1263333ee039SDag-Erling Smørgrav.Xr sshd 8 1264545d5ecaSDag-Erling Smørgravshould bind the X11 forwarding server to the loopback address or to 1265e73e9afaSDag-Erling Smørgravthe wildcard address. 1266e73e9afaSDag-Erling SmørgravBy default, 1267333ee039SDag-Erling Smørgravsshd binds the forwarding server to the loopback address and sets the 1268545d5ecaSDag-Erling Smørgravhostname part of the 1269545d5ecaSDag-Erling Smørgrav.Ev DISPLAY 1270545d5ecaSDag-Erling Smørgravenvironment variable to 1271545d5ecaSDag-Erling Smørgrav.Dq localhost . 1272f388f5efSDag-Erling SmørgravThis prevents remote hosts from connecting to the proxy display. 1273545d5ecaSDag-Erling SmørgravHowever, some older X11 clients may not function with this 1274545d5ecaSDag-Erling Smørgravconfiguration. 1275545d5ecaSDag-Erling Smørgrav.Cm X11UseLocalhost 1276545d5ecaSDag-Erling Smørgravmay be set to 1277545d5ecaSDag-Erling Smørgrav.Dq no 1278545d5ecaSDag-Erling Smørgravto specify that the forwarding server should be bound to the wildcard 1279545d5ecaSDag-Erling Smørgravaddress. 1280545d5ecaSDag-Erling SmørgravThe argument must be 1281545d5ecaSDag-Erling Smørgrav.Dq yes 1282545d5ecaSDag-Erling Smørgravor 1283545d5ecaSDag-Erling Smørgrav.Dq no . 1284545d5ecaSDag-Erling SmørgravThe default is 1285545d5ecaSDag-Erling Smørgrav.Dq yes . 1286545d5ecaSDag-Erling Smørgrav.It Cm XAuthLocation 1287f388f5efSDag-Erling SmørgravSpecifies the full pathname of the 1288545d5ecaSDag-Erling Smørgrav.Xr xauth 1 1289545d5ecaSDag-Erling Smørgravprogram. 1290545d5ecaSDag-Erling SmørgravThe default is 1291ffea3f5aSDag-Erling Smørgrav.Pa /usr/local/bin/xauth . 1292545d5ecaSDag-Erling Smørgrav.El 1293333ee039SDag-Erling Smørgrav.Sh TIME FORMATS 1294333ee039SDag-Erling Smørgrav.Xr sshd 8 1295545d5ecaSDag-Erling Smørgravcommand-line arguments and configuration file options that specify time 1296545d5ecaSDag-Erling Smørgravmay be expressed using a sequence of the form: 1297545d5ecaSDag-Erling Smørgrav.Sm off 1298f388f5efSDag-Erling Smørgrav.Ar time Op Ar qualifier , 1299545d5ecaSDag-Erling Smørgrav.Sm on 1300545d5ecaSDag-Erling Smørgravwhere 1301545d5ecaSDag-Erling Smørgrav.Ar time 1302545d5ecaSDag-Erling Smørgravis a positive integer value and 1303545d5ecaSDag-Erling Smørgrav.Ar qualifier 1304545d5ecaSDag-Erling Smørgravis one of the following: 1305545d5ecaSDag-Erling Smørgrav.Pp 1306545d5ecaSDag-Erling Smørgrav.Bl -tag -width Ds -compact -offset indent 1307333ee039SDag-Erling Smørgrav.It Aq Cm none 1308545d5ecaSDag-Erling Smørgravseconds 1309545d5ecaSDag-Erling Smørgrav.It Cm s | Cm S 1310545d5ecaSDag-Erling Smørgravseconds 1311545d5ecaSDag-Erling Smørgrav.It Cm m | Cm M 1312545d5ecaSDag-Erling Smørgravminutes 1313545d5ecaSDag-Erling Smørgrav.It Cm h | Cm H 1314545d5ecaSDag-Erling Smørgravhours 1315545d5ecaSDag-Erling Smørgrav.It Cm d | Cm D 1316545d5ecaSDag-Erling Smørgravdays 1317545d5ecaSDag-Erling Smørgrav.It Cm w | Cm W 1318545d5ecaSDag-Erling Smørgravweeks 1319545d5ecaSDag-Erling Smørgrav.El 1320545d5ecaSDag-Erling Smørgrav.Pp 1321545d5ecaSDag-Erling SmørgravEach member of the sequence is added together to calculate 1322545d5ecaSDag-Erling Smørgravthe total time value. 1323545d5ecaSDag-Erling Smørgrav.Pp 1324545d5ecaSDag-Erling SmørgravTime format examples: 1325545d5ecaSDag-Erling Smørgrav.Pp 1326545d5ecaSDag-Erling Smørgrav.Bl -tag -width Ds -compact -offset indent 1327545d5ecaSDag-Erling Smørgrav.It 600 1328545d5ecaSDag-Erling Smørgrav600 seconds (10 minutes) 1329545d5ecaSDag-Erling Smørgrav.It 10m 1330545d5ecaSDag-Erling Smørgrav10 minutes 1331545d5ecaSDag-Erling Smørgrav.It 1h30m 1332545d5ecaSDag-Erling Smørgrav1 hour 30 minutes (90 minutes) 1333545d5ecaSDag-Erling Smørgrav.El 1334545d5ecaSDag-Erling Smørgrav.Sh FILES 1335545d5ecaSDag-Erling Smørgrav.Bl -tag -width Ds 1336545d5ecaSDag-Erling Smørgrav.It Pa /etc/ssh/sshd_config 1337545d5ecaSDag-Erling SmørgravContains configuration data for 1338333ee039SDag-Erling Smørgrav.Xr sshd 8 . 1339545d5ecaSDag-Erling SmørgravThis file should be writable by root only, but it is recommended 1340545d5ecaSDag-Erling Smørgrav(though not necessary) that it be world-readable. 1341545d5ecaSDag-Erling Smørgrav.El 1342cf2b5f3bSDag-Erling Smørgrav.Sh SEE ALSO 1343cf2b5f3bSDag-Erling Smørgrav.Xr sshd 8 1344545d5ecaSDag-Erling Smørgrav.Sh AUTHORS 1345545d5ecaSDag-Erling SmørgravOpenSSH is a derivative of the original and free 1346545d5ecaSDag-Erling Smørgravssh 1.2.12 release by Tatu Ylonen. 1347545d5ecaSDag-Erling SmørgravAaron Campbell, Bob Beck, Markus Friedl, Niels Provos, 1348545d5ecaSDag-Erling SmørgravTheo de Raadt and Dug Song 1349545d5ecaSDag-Erling Smørgravremoved many bugs, re-added newer features and 1350545d5ecaSDag-Erling Smørgravcreated OpenSSH. 1351545d5ecaSDag-Erling SmørgravMarkus Friedl contributed the support for SSH 1352545d5ecaSDag-Erling Smørgravprotocol versions 1.5 and 2.0. 1353545d5ecaSDag-Erling SmørgravNiels Provos and Markus Friedl contributed support 1354545d5ecaSDag-Erling Smørgravfor privilege separation. 1355