1545d5ecaSDag-Erling Smørgrav.\" -*- nroff -*- 2545d5ecaSDag-Erling Smørgrav.\" 3545d5ecaSDag-Erling Smørgrav.\" Author: Tatu Ylonen <ylo@cs.hut.fi> 4545d5ecaSDag-Erling Smørgrav.\" Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland 5545d5ecaSDag-Erling Smørgrav.\" All rights reserved 6545d5ecaSDag-Erling Smørgrav.\" 7545d5ecaSDag-Erling Smørgrav.\" As far as I am concerned, the code I have written for this software 8545d5ecaSDag-Erling Smørgrav.\" can be used freely for any purpose. Any derived versions of this 9545d5ecaSDag-Erling Smørgrav.\" software must be clearly marked as such, and if the derived work is 10545d5ecaSDag-Erling Smørgrav.\" incompatible with the protocol description in the RFC file, it must be 11545d5ecaSDag-Erling Smørgrav.\" called by a name other than "ssh" or "Secure Shell". 12545d5ecaSDag-Erling Smørgrav.\" 13545d5ecaSDag-Erling Smørgrav.\" Copyright (c) 1999,2000 Markus Friedl. All rights reserved. 14545d5ecaSDag-Erling Smørgrav.\" Copyright (c) 1999 Aaron Campbell. All rights reserved. 15545d5ecaSDag-Erling Smørgrav.\" Copyright (c) 1999 Theo de Raadt. All rights reserved. 16545d5ecaSDag-Erling Smørgrav.\" 17545d5ecaSDag-Erling Smørgrav.\" Redistribution and use in source and binary forms, with or without 18545d5ecaSDag-Erling Smørgrav.\" modification, are permitted provided that the following conditions 19545d5ecaSDag-Erling Smørgrav.\" are met: 20545d5ecaSDag-Erling Smørgrav.\" 1. Redistributions of source code must retain the above copyright 21545d5ecaSDag-Erling Smørgrav.\" notice, this list of conditions and the following disclaimer. 22545d5ecaSDag-Erling Smørgrav.\" 2. Redistributions in binary form must reproduce the above copyright 23545d5ecaSDag-Erling Smørgrav.\" notice, this list of conditions and the following disclaimer in the 24545d5ecaSDag-Erling Smørgrav.\" documentation and/or other materials provided with the distribution. 25545d5ecaSDag-Erling Smørgrav.\" 26545d5ecaSDag-Erling Smørgrav.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 27545d5ecaSDag-Erling Smørgrav.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 28545d5ecaSDag-Erling Smørgrav.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 29545d5ecaSDag-Erling Smørgrav.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 30545d5ecaSDag-Erling Smørgrav.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 31545d5ecaSDag-Erling Smørgrav.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 32545d5ecaSDag-Erling Smørgrav.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 33545d5ecaSDag-Erling Smørgrav.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 34545d5ecaSDag-Erling Smørgrav.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 35545d5ecaSDag-Erling Smørgrav.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 36545d5ecaSDag-Erling Smørgrav.\" 37e73e9afaSDag-Erling Smørgrav.\" $OpenBSD: sshd_config.5,v 1.15 2003/03/28 10:11:43 jmc Exp $ 3835d4ccfbSDag-Erling Smørgrav.\" $FreeBSD$ 39545d5ecaSDag-Erling Smørgrav.Dd September 25, 1999 40545d5ecaSDag-Erling Smørgrav.Dt SSHD_CONFIG 5 41545d5ecaSDag-Erling Smørgrav.Os 42545d5ecaSDag-Erling Smørgrav.Sh NAME 43545d5ecaSDag-Erling Smørgrav.Nm sshd_config 44545d5ecaSDag-Erling Smørgrav.Nd OpenSSH SSH daemon configuration file 45545d5ecaSDag-Erling Smørgrav.Sh SYNOPSIS 46545d5ecaSDag-Erling Smørgrav.Bl -tag -width Ds -compact 47545d5ecaSDag-Erling Smørgrav.It Pa /etc/ssh/sshd_config 48545d5ecaSDag-Erling Smørgrav.El 49545d5ecaSDag-Erling Smørgrav.Sh DESCRIPTION 50545d5ecaSDag-Erling Smørgrav.Nm sshd 51545d5ecaSDag-Erling Smørgravreads configuration data from 52545d5ecaSDag-Erling Smørgrav.Pa /etc/ssh/sshd_config 53545d5ecaSDag-Erling Smørgrav(or the file specified with 54545d5ecaSDag-Erling Smørgrav.Fl f 55545d5ecaSDag-Erling Smørgravon the command line). 56545d5ecaSDag-Erling SmørgravThe file contains keyword-argument pairs, one per line. 57545d5ecaSDag-Erling SmørgravLines starting with 58545d5ecaSDag-Erling Smørgrav.Ql # 59545d5ecaSDag-Erling Smørgravand empty lines are interpreted as comments. 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 65545d5ecaSDag-Erling Smørgrav.It Cm AFSTokenPassing 66545d5ecaSDag-Erling SmørgravSpecifies whether an AFS token may be forwarded to the server. 67545d5ecaSDag-Erling SmørgravDefault is 68545d5ecaSDag-Erling Smørgrav.Dq no . 69545d5ecaSDag-Erling Smørgrav.It Cm AllowGroups 70545d5ecaSDag-Erling SmørgravThis keyword can be followed by a list of group name patterns, separated 71545d5ecaSDag-Erling Smørgravby spaces. 72545d5ecaSDag-Erling SmørgravIf specified, login is allowed only for users whose primary 73545d5ecaSDag-Erling Smørgravgroup or supplementary group list matches one of the patterns. 74545d5ecaSDag-Erling Smørgrav.Ql \&* 75545d5ecaSDag-Erling Smørgravand 76545d5ecaSDag-Erling Smørgrav.Ql ? 77545d5ecaSDag-Erling Smørgravcan be used as 78545d5ecaSDag-Erling Smørgravwildcards in the patterns. 79545d5ecaSDag-Erling SmørgravOnly group names are valid; a numerical group ID is not recognized. 80545d5ecaSDag-Erling SmørgravBy default, login is allowed for all groups. 81545d5ecaSDag-Erling Smørgrav.Pp 82545d5ecaSDag-Erling Smørgrav.It Cm AllowTcpForwarding 83545d5ecaSDag-Erling SmørgravSpecifies whether TCP forwarding is permitted. 84545d5ecaSDag-Erling SmørgravThe default is 85545d5ecaSDag-Erling Smørgrav.Dq yes . 86545d5ecaSDag-Erling SmørgravNote that disabling TCP forwarding does not improve security unless 87545d5ecaSDag-Erling Smørgravusers are also denied shell access, as they can always install their 88545d5ecaSDag-Erling Smørgravown forwarders. 89545d5ecaSDag-Erling Smørgrav.Pp 90545d5ecaSDag-Erling Smørgrav.It Cm AllowUsers 91545d5ecaSDag-Erling SmørgravThis keyword can be followed by a list of user name patterns, separated 92545d5ecaSDag-Erling Smørgravby spaces. 93e73e9afaSDag-Erling SmørgravIf specified, login is allowed only for user names that 94545d5ecaSDag-Erling Smørgravmatch one of the patterns. 95545d5ecaSDag-Erling Smørgrav.Ql \&* 96545d5ecaSDag-Erling Smørgravand 97545d5ecaSDag-Erling Smørgrav.Ql ? 98545d5ecaSDag-Erling Smørgravcan be used as 99545d5ecaSDag-Erling Smørgravwildcards in the patterns. 100545d5ecaSDag-Erling SmørgravOnly user names are valid; a numerical user ID is not recognized. 101545d5ecaSDag-Erling SmørgravBy default, login is allowed for all users. 102545d5ecaSDag-Erling SmørgravIf the pattern takes the form USER@HOST then USER and HOST 103545d5ecaSDag-Erling Smørgravare separately checked, restricting logins to particular 104545d5ecaSDag-Erling Smørgravusers from particular hosts. 105545d5ecaSDag-Erling Smørgrav.Pp 106545d5ecaSDag-Erling Smørgrav.It Cm AuthorizedKeysFile 107545d5ecaSDag-Erling SmørgravSpecifies the file that contains the public keys that can be used 108545d5ecaSDag-Erling Smørgravfor user authentication. 109545d5ecaSDag-Erling Smørgrav.Cm AuthorizedKeysFile 110545d5ecaSDag-Erling Smørgravmay contain tokens of the form %T which are substituted during connection 111545d5ecaSDag-Erling Smørgravset-up. The following tokens are defined: %% is replaced by a literal '%', 112545d5ecaSDag-Erling Smørgrav%h is replaced by the home directory of the user being authenticated and 113545d5ecaSDag-Erling Smørgrav%u is replaced by the username of that user. 114545d5ecaSDag-Erling SmørgravAfter expansion, 115545d5ecaSDag-Erling Smørgrav.Cm AuthorizedKeysFile 116545d5ecaSDag-Erling Smørgravis taken to be an absolute path or one relative to the user's home 117545d5ecaSDag-Erling Smørgravdirectory. 118545d5ecaSDag-Erling SmørgravThe default is 119545d5ecaSDag-Erling Smørgrav.Dq .ssh/authorized_keys . 120545d5ecaSDag-Erling Smørgrav.It Cm Banner 121545d5ecaSDag-Erling SmørgravIn some jurisdictions, sending a warning message before authentication 122545d5ecaSDag-Erling Smørgravmay be relevant for getting legal protection. 123545d5ecaSDag-Erling SmørgravThe contents of the specified file are sent to the remote user before 124545d5ecaSDag-Erling Smørgravauthentication is allowed. 125545d5ecaSDag-Erling SmørgravThis option is only available for protocol version 2. 126545d5ecaSDag-Erling SmørgravBy default, no banner is displayed. 127545d5ecaSDag-Erling Smørgrav.Pp 128545d5ecaSDag-Erling Smørgrav.It Cm ChallengeResponseAuthentication 129ee8aeb14SDag-Erling SmørgravSpecifies whether challenge-response authentication is allowed. 130ee8aeb14SDag-Erling SmørgravSpecifically, in 131ee8aeb14SDag-Erling Smørgrav.Fx , 132ee8aeb14SDag-Erling Smørgravthis controls the use of PAM (see 133ee8aeb14SDag-Erling Smørgrav.Xr pam 3 ) 134ee8aeb14SDag-Erling Smørgravfor authentication. 135810a15b1SDag-Erling SmørgravNote that this affects the effectiveness of the 136810a15b1SDag-Erling Smørgrav.Cm PasswordAuthentication 137810a15b1SDag-Erling Smørgravand 138810a15b1SDag-Erling Smørgrav.Cm PermitRootLogin 139810a15b1SDag-Erling Smørgravvariables. 140545d5ecaSDag-Erling SmørgravThe default is 141545d5ecaSDag-Erling Smørgrav.Dq yes . 142545d5ecaSDag-Erling Smørgrav.It Cm Ciphers 143545d5ecaSDag-Erling SmørgravSpecifies the ciphers allowed for protocol version 2. 144545d5ecaSDag-Erling SmørgravMultiple ciphers must be comma-separated. 145545d5ecaSDag-Erling SmørgravThe default is 146545d5ecaSDag-Erling Smørgrav.Pp 147545d5ecaSDag-Erling Smørgrav.Bd -literal 148545d5ecaSDag-Erling Smørgrav ``aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour, 149545d5ecaSDag-Erling Smørgrav aes192-cbc,aes256-cbc'' 150545d5ecaSDag-Erling Smørgrav.Ed 151545d5ecaSDag-Erling Smørgrav.It Cm ClientAliveInterval 152545d5ecaSDag-Erling SmørgravSets a timeout interval in seconds after which if no data has been received 153545d5ecaSDag-Erling Smørgravfrom the client, 154545d5ecaSDag-Erling Smørgrav.Nm sshd 155545d5ecaSDag-Erling Smørgravwill send a message through the encrypted 156545d5ecaSDag-Erling Smørgravchannel to request a response from the client. 157545d5ecaSDag-Erling SmørgravThe default 158545d5ecaSDag-Erling Smørgravis 0, indicating that these messages will not be sent to the client. 159545d5ecaSDag-Erling SmørgravThis option applies to protocol version 2 only. 160545d5ecaSDag-Erling Smørgrav.It Cm ClientAliveCountMax 161545d5ecaSDag-Erling SmørgravSets the number of client alive messages (see above) which may be 162545d5ecaSDag-Erling Smørgravsent without 163545d5ecaSDag-Erling Smørgrav.Nm sshd 164545d5ecaSDag-Erling Smørgravreceiving any messages back from the client. If this threshold is 165545d5ecaSDag-Erling Smørgravreached while client alive messages are being sent, 166545d5ecaSDag-Erling Smørgrav.Nm sshd 167545d5ecaSDag-Erling Smørgravwill disconnect the client, terminating the session. It is important 168545d5ecaSDag-Erling Smørgravto note that the use of client alive messages is very different from 169545d5ecaSDag-Erling Smørgrav.Cm KeepAlive 170545d5ecaSDag-Erling Smørgrav(below). The client alive messages are sent through the 171545d5ecaSDag-Erling Smørgravencrypted channel and therefore will not be spoofable. The TCP keepalive 172545d5ecaSDag-Erling Smørgravoption enabled by 173545d5ecaSDag-Erling Smørgrav.Cm KeepAlive 174545d5ecaSDag-Erling Smørgravis spoofable. The client alive mechanism is valuable when the client or 175545d5ecaSDag-Erling Smørgravserver depend on knowing when a connection has become inactive. 176545d5ecaSDag-Erling Smørgrav.Pp 177545d5ecaSDag-Erling SmørgravThe default value is 3. If 178545d5ecaSDag-Erling Smørgrav.Cm ClientAliveInterval 179545d5ecaSDag-Erling Smørgrav(above) is set to 15, and 180545d5ecaSDag-Erling Smørgrav.Cm ClientAliveCountMax 181545d5ecaSDag-Erling Smørgravis left at the default, unresponsive ssh clients 182545d5ecaSDag-Erling Smørgravwill be disconnected after approximately 45 seconds. 183545d5ecaSDag-Erling Smørgrav.It Cm Compression 184545d5ecaSDag-Erling SmørgravSpecifies whether compression is allowed. 185545d5ecaSDag-Erling SmørgravThe argument must be 186545d5ecaSDag-Erling Smørgrav.Dq yes 187545d5ecaSDag-Erling Smørgravor 188545d5ecaSDag-Erling Smørgrav.Dq no . 189545d5ecaSDag-Erling SmørgravThe default is 190545d5ecaSDag-Erling Smørgrav.Dq yes . 191545d5ecaSDag-Erling Smørgrav.It Cm DenyGroups 192545d5ecaSDag-Erling SmørgravThis keyword can be followed by a list of group name patterns, separated 193545d5ecaSDag-Erling Smørgravby spaces. 194545d5ecaSDag-Erling SmørgravLogin is disallowed for users whose primary group or supplementary 195545d5ecaSDag-Erling Smørgravgroup list matches one of the patterns. 196545d5ecaSDag-Erling Smørgrav.Ql \&* 197545d5ecaSDag-Erling Smørgravand 198545d5ecaSDag-Erling Smørgrav.Ql ? 199545d5ecaSDag-Erling Smørgravcan be used as 200545d5ecaSDag-Erling Smørgravwildcards in the patterns. 201545d5ecaSDag-Erling SmørgravOnly group names are valid; a numerical group ID is not recognized. 202545d5ecaSDag-Erling SmørgravBy default, login is allowed for all groups. 203545d5ecaSDag-Erling Smørgrav.Pp 204545d5ecaSDag-Erling Smørgrav.It Cm DenyUsers 205545d5ecaSDag-Erling SmørgravThis keyword can be followed by a list of user name patterns, separated 206545d5ecaSDag-Erling Smørgravby spaces. 207545d5ecaSDag-Erling SmørgravLogin is disallowed for user names that match one of the patterns. 208545d5ecaSDag-Erling Smørgrav.Ql \&* 209545d5ecaSDag-Erling Smørgravand 210545d5ecaSDag-Erling Smørgrav.Ql ? 211545d5ecaSDag-Erling Smørgravcan be used as wildcards in the patterns. 212545d5ecaSDag-Erling SmørgravOnly user names are valid; a numerical user ID is not recognized. 213545d5ecaSDag-Erling SmørgravBy default, login is allowed for all users. 214545d5ecaSDag-Erling SmørgravIf the pattern takes the form USER@HOST then USER and HOST 215545d5ecaSDag-Erling Smørgravare separately checked, restricting logins to particular 216545d5ecaSDag-Erling Smørgravusers from particular hosts. 217545d5ecaSDag-Erling Smørgrav.It Cm GatewayPorts 218545d5ecaSDag-Erling SmørgravSpecifies whether remote hosts are allowed to connect to ports 219545d5ecaSDag-Erling Smørgravforwarded for the client. 220545d5ecaSDag-Erling SmørgravBy default, 221545d5ecaSDag-Erling Smørgrav.Nm sshd 222e73e9afaSDag-Erling Smørgravbinds remote port forwardings to the loopback address. 223e73e9afaSDag-Erling SmørgravThis prevents other remote hosts from connecting to forwarded ports. 224545d5ecaSDag-Erling Smørgrav.Cm GatewayPorts 225545d5ecaSDag-Erling Smørgravcan be used to specify that 226545d5ecaSDag-Erling Smørgrav.Nm sshd 227545d5ecaSDag-Erling Smørgravshould bind remote port forwardings to the wildcard address, 228545d5ecaSDag-Erling Smørgravthus allowing remote hosts to connect to forwarded ports. 229545d5ecaSDag-Erling SmørgravThe argument must be 230545d5ecaSDag-Erling Smørgrav.Dq yes 231545d5ecaSDag-Erling Smørgravor 232545d5ecaSDag-Erling Smørgrav.Dq no . 233545d5ecaSDag-Erling SmørgravThe default is 234545d5ecaSDag-Erling Smørgrav.Dq no . 235545d5ecaSDag-Erling Smørgrav.It Cm HostbasedAuthentication 236545d5ecaSDag-Erling SmørgravSpecifies whether rhosts or /etc/hosts.equiv authentication together 237545d5ecaSDag-Erling Smørgravwith successful public key client host authentication is allowed 238545d5ecaSDag-Erling Smørgrav(hostbased authentication). 239545d5ecaSDag-Erling SmørgravThis option is similar to 240545d5ecaSDag-Erling Smørgrav.Cm RhostsRSAAuthentication 241545d5ecaSDag-Erling Smørgravand applies to protocol version 2 only. 242545d5ecaSDag-Erling SmørgravThe default is 243545d5ecaSDag-Erling Smørgrav.Dq no . 244545d5ecaSDag-Erling Smørgrav.It Cm HostKey 245545d5ecaSDag-Erling SmørgravSpecifies a file containing a private host key 246545d5ecaSDag-Erling Smørgravused by SSH. 247545d5ecaSDag-Erling SmørgravThe default is 248545d5ecaSDag-Erling Smørgrav.Pa /etc/ssh/ssh_host_key 249545d5ecaSDag-Erling Smørgravfor protocol version 1, and 250545d5ecaSDag-Erling Smørgrav.Pa /etc/ssh/ssh_host_dsa_key 251545d5ecaSDag-Erling Smørgravfor protocol version 2. 252545d5ecaSDag-Erling SmørgravNote that 253545d5ecaSDag-Erling Smørgrav.Nm sshd 254545d5ecaSDag-Erling Smørgravwill refuse to use a file if it is group/world-accessible. 255545d5ecaSDag-Erling SmørgravIt is possible to have multiple host key files. 256545d5ecaSDag-Erling Smørgrav.Dq rsa1 257545d5ecaSDag-Erling Smørgravkeys are used for version 1 and 258545d5ecaSDag-Erling Smørgrav.Dq dsa 259545d5ecaSDag-Erling Smørgravor 260545d5ecaSDag-Erling Smørgrav.Dq rsa 261545d5ecaSDag-Erling Smørgravare used for version 2 of the SSH protocol. 262545d5ecaSDag-Erling Smørgrav.It Cm IgnoreRhosts 263545d5ecaSDag-Erling SmørgravSpecifies that 264545d5ecaSDag-Erling Smørgrav.Pa .rhosts 265545d5ecaSDag-Erling Smørgravand 266545d5ecaSDag-Erling Smørgrav.Pa .shosts 267545d5ecaSDag-Erling Smørgravfiles will not be used in 268545d5ecaSDag-Erling Smørgrav.Cm RhostsAuthentication , 269545d5ecaSDag-Erling Smørgrav.Cm RhostsRSAAuthentication 270545d5ecaSDag-Erling Smørgravor 271545d5ecaSDag-Erling Smørgrav.Cm HostbasedAuthentication . 272545d5ecaSDag-Erling Smørgrav.Pp 273545d5ecaSDag-Erling Smørgrav.Pa /etc/hosts.equiv 274545d5ecaSDag-Erling Smørgravand 27535d4ccfbSDag-Erling Smørgrav.Pa /etc/ssh/shosts.equiv 276545d5ecaSDag-Erling Smørgravare still used. 277545d5ecaSDag-Erling SmørgravThe default is 278545d5ecaSDag-Erling Smørgrav.Dq yes . 279545d5ecaSDag-Erling Smørgrav.It Cm IgnoreUserKnownHosts 280545d5ecaSDag-Erling SmørgravSpecifies whether 281545d5ecaSDag-Erling Smørgrav.Nm sshd 282545d5ecaSDag-Erling Smørgravshould ignore the user's 283545d5ecaSDag-Erling Smørgrav.Pa $HOME/.ssh/known_hosts 284545d5ecaSDag-Erling Smørgravduring 285545d5ecaSDag-Erling Smørgrav.Cm RhostsRSAAuthentication 286545d5ecaSDag-Erling Smørgravor 287545d5ecaSDag-Erling Smørgrav.Cm HostbasedAuthentication . 288545d5ecaSDag-Erling SmørgravThe default is 289545d5ecaSDag-Erling Smørgrav.Dq no . 290545d5ecaSDag-Erling Smørgrav.It Cm KeepAlive 291545d5ecaSDag-Erling SmørgravSpecifies whether the system should send TCP keepalive messages to the 292545d5ecaSDag-Erling Smørgravother side. 293545d5ecaSDag-Erling SmørgravIf they are sent, death of the connection or crash of one 294545d5ecaSDag-Erling Smørgravof the machines will be properly noticed. 295545d5ecaSDag-Erling SmørgravHowever, this means that 296545d5ecaSDag-Erling Smørgravconnections will die if the route is down temporarily, and some people 297545d5ecaSDag-Erling Smørgravfind it annoying. 298545d5ecaSDag-Erling SmørgravOn the other hand, if keepalives are not sent, 299545d5ecaSDag-Erling Smørgravsessions may hang indefinitely on the server, leaving 300545d5ecaSDag-Erling Smørgrav.Dq ghost 301545d5ecaSDag-Erling Smørgravusers and consuming server resources. 302545d5ecaSDag-Erling Smørgrav.Pp 303545d5ecaSDag-Erling SmørgravThe default is 304545d5ecaSDag-Erling Smørgrav.Dq yes 305545d5ecaSDag-Erling Smørgrav(to send keepalives), and the server will notice 306545d5ecaSDag-Erling Smørgravif the network goes down or the client host crashes. 307545d5ecaSDag-Erling SmørgravThis avoids infinitely hanging sessions. 308545d5ecaSDag-Erling Smørgrav.Pp 309545d5ecaSDag-Erling SmørgravTo disable keepalives, the value should be set to 310545d5ecaSDag-Erling Smørgrav.Dq no . 311545d5ecaSDag-Erling Smørgrav.It Cm KerberosAuthentication 312545d5ecaSDag-Erling SmørgravSpecifies whether Kerberos authentication is allowed. 313545d5ecaSDag-Erling SmørgravThis can be in the form of a Kerberos ticket, or if 314545d5ecaSDag-Erling Smørgrav.Cm PasswordAuthentication 315545d5ecaSDag-Erling Smørgravis yes, the password provided by the user will be validated through 316545d5ecaSDag-Erling Smørgravthe Kerberos KDC. 317545d5ecaSDag-Erling SmørgravTo use this option, the server needs a 318545d5ecaSDag-Erling SmørgravKerberos servtab which allows the verification of the KDC's identity. 319545d5ecaSDag-Erling SmørgravDefault is 320545d5ecaSDag-Erling Smørgrav.Dq no . 321545d5ecaSDag-Erling Smørgrav.It Cm KerberosOrLocalPasswd 322545d5ecaSDag-Erling SmørgravIf set then if password authentication through Kerberos fails then 323545d5ecaSDag-Erling Smørgravthe password will be validated via any additional local mechanism 324545d5ecaSDag-Erling Smørgravsuch as 325545d5ecaSDag-Erling Smørgrav.Pa /etc/passwd . 326545d5ecaSDag-Erling SmørgravDefault is 327545d5ecaSDag-Erling Smørgrav.Dq yes . 328545d5ecaSDag-Erling Smørgrav.It Cm KerberosTgtPassing 329545d5ecaSDag-Erling SmørgravSpecifies whether a Kerberos TGT may be forwarded to the server. 330545d5ecaSDag-Erling SmørgravDefault is 331545d5ecaSDag-Erling Smørgrav.Dq no , 332545d5ecaSDag-Erling Smørgravas this only works when the Kerberos KDC is actually an AFS kaserver. 333545d5ecaSDag-Erling Smørgrav.It Cm KerberosTicketCleanup 334545d5ecaSDag-Erling SmørgravSpecifies whether to automatically destroy the user's ticket cache 335545d5ecaSDag-Erling Smørgravfile on logout. 336545d5ecaSDag-Erling SmørgravDefault is 337545d5ecaSDag-Erling Smørgrav.Dq yes . 338545d5ecaSDag-Erling Smørgrav.It Cm KeyRegenerationInterval 339545d5ecaSDag-Erling SmørgravIn protocol version 1, the ephemeral server key is automatically regenerated 340545d5ecaSDag-Erling Smørgravafter this many seconds (if it has been used). 341545d5ecaSDag-Erling SmørgravThe purpose of regeneration is to prevent 342545d5ecaSDag-Erling Smørgravdecrypting captured sessions by later breaking into the machine and 343545d5ecaSDag-Erling Smørgravstealing the keys. 344545d5ecaSDag-Erling SmørgravThe key is never stored anywhere. 345545d5ecaSDag-Erling SmørgravIf the value is 0, the key is never regenerated. 346545d5ecaSDag-Erling SmørgravThe default is 3600 (seconds). 347545d5ecaSDag-Erling Smørgrav.It Cm ListenAddress 348545d5ecaSDag-Erling SmørgravSpecifies the local addresses 349545d5ecaSDag-Erling Smørgrav.Nm sshd 350545d5ecaSDag-Erling Smørgravshould listen on. 351545d5ecaSDag-Erling SmørgravThe following forms may be used: 352545d5ecaSDag-Erling Smørgrav.Pp 353545d5ecaSDag-Erling Smørgrav.Bl -item -offset indent -compact 354545d5ecaSDag-Erling Smørgrav.It 355545d5ecaSDag-Erling Smørgrav.Cm ListenAddress 356545d5ecaSDag-Erling Smørgrav.Sm off 357545d5ecaSDag-Erling Smørgrav.Ar host No | Ar IPv4_addr No | Ar IPv6_addr 358545d5ecaSDag-Erling Smørgrav.Sm on 359545d5ecaSDag-Erling Smørgrav.It 360545d5ecaSDag-Erling Smørgrav.Cm ListenAddress 361545d5ecaSDag-Erling Smørgrav.Sm off 362545d5ecaSDag-Erling Smørgrav.Ar host No | Ar IPv4_addr No : Ar port 363545d5ecaSDag-Erling Smørgrav.Sm on 364545d5ecaSDag-Erling Smørgrav.It 365545d5ecaSDag-Erling Smørgrav.Cm ListenAddress 366545d5ecaSDag-Erling Smørgrav.Sm off 367545d5ecaSDag-Erling Smørgrav.Oo 368545d5ecaSDag-Erling Smørgrav.Ar host No | Ar IPv6_addr Oc : Ar port 369545d5ecaSDag-Erling Smørgrav.Sm on 370545d5ecaSDag-Erling Smørgrav.El 371545d5ecaSDag-Erling Smørgrav.Pp 372545d5ecaSDag-Erling SmørgravIf 373545d5ecaSDag-Erling Smørgrav.Ar port 374545d5ecaSDag-Erling Smørgravis not specified, 375545d5ecaSDag-Erling Smørgrav.Nm sshd 376545d5ecaSDag-Erling Smørgravwill listen on the address and all prior 377545d5ecaSDag-Erling Smørgrav.Cm Port 378545d5ecaSDag-Erling Smørgravoptions specified. The default is to listen on all local 379e73e9afaSDag-Erling Smørgravaddresses. 380e73e9afaSDag-Erling SmørgravMultiple 381545d5ecaSDag-Erling Smørgrav.Cm ListenAddress 382545d5ecaSDag-Erling Smørgravoptions are permitted. Additionally, any 383545d5ecaSDag-Erling Smørgrav.Cm Port 384545d5ecaSDag-Erling Smørgravoptions must precede this option for non port qualified addresses. 385545d5ecaSDag-Erling Smørgrav.It Cm LoginGraceTime 386545d5ecaSDag-Erling SmørgravThe server disconnects after this time if the user has not 387545d5ecaSDag-Erling Smørgravsuccessfully logged in. 388545d5ecaSDag-Erling SmørgravIf the value is 0, there is no time limit. 389f388f5efSDag-Erling SmørgravThe default is 120 seconds. 390545d5ecaSDag-Erling Smørgrav.It Cm LogLevel 391545d5ecaSDag-Erling SmørgravGives the verbosity level that is used when logging messages from 392545d5ecaSDag-Erling Smørgrav.Nm sshd . 393545d5ecaSDag-Erling SmørgravThe possible values are: 394545d5ecaSDag-Erling SmørgravQUIET, FATAL, ERROR, INFO, VERBOSE, DEBUG, DEBUG1, DEBUG2 and DEBUG3. 395e73e9afaSDag-Erling SmørgravThe default is INFO. 396e73e9afaSDag-Erling SmørgravDEBUG and DEBUG1 are equivalent. 397e73e9afaSDag-Erling SmørgravDEBUG2 and DEBUG3 each specify higher levels of debugging output. 398e73e9afaSDag-Erling SmørgravLogging with a DEBUG level violates the privacy of users and is not recommended. 399545d5ecaSDag-Erling Smørgrav.It Cm MACs 400545d5ecaSDag-Erling SmørgravSpecifies the available MAC (message authentication code) algorithms. 401545d5ecaSDag-Erling SmørgravThe MAC algorithm is used in protocol version 2 402545d5ecaSDag-Erling Smørgravfor data integrity protection. 403545d5ecaSDag-Erling SmørgravMultiple algorithms must be comma-separated. 404545d5ecaSDag-Erling SmørgravThe default is 405545d5ecaSDag-Erling Smørgrav.Dq hmac-md5,hmac-sha1,hmac-ripemd160,hmac-sha1-96,hmac-md5-96 . 406545d5ecaSDag-Erling Smørgrav.It Cm MaxStartups 407545d5ecaSDag-Erling SmørgravSpecifies the maximum number of concurrent unauthenticated connections to the 408545d5ecaSDag-Erling Smørgrav.Nm sshd 409545d5ecaSDag-Erling Smørgravdaemon. 410545d5ecaSDag-Erling SmørgravAdditional connections will be dropped until authentication succeeds or the 411545d5ecaSDag-Erling Smørgrav.Cm LoginGraceTime 412545d5ecaSDag-Erling Smørgravexpires for a connection. 413545d5ecaSDag-Erling SmørgravThe default is 10. 414545d5ecaSDag-Erling Smørgrav.Pp 415545d5ecaSDag-Erling SmørgravAlternatively, random early drop can be enabled by specifying 416545d5ecaSDag-Erling Smørgravthe three colon separated values 417545d5ecaSDag-Erling Smørgrav.Dq start:rate:full 418545d5ecaSDag-Erling Smørgrav(e.g., "10:30:60"). 419545d5ecaSDag-Erling Smørgrav.Nm sshd 420545d5ecaSDag-Erling Smørgravwill refuse connection attempts with a probability of 421545d5ecaSDag-Erling Smørgrav.Dq rate/100 422545d5ecaSDag-Erling Smørgrav(30%) 423545d5ecaSDag-Erling Smørgravif there are currently 424545d5ecaSDag-Erling Smørgrav.Dq start 425545d5ecaSDag-Erling Smørgrav(10) 426545d5ecaSDag-Erling Smørgravunauthenticated connections. 427545d5ecaSDag-Erling SmørgravThe probability increases linearly and all connection attempts 428545d5ecaSDag-Erling Smørgravare refused if the number of unauthenticated connections reaches 429545d5ecaSDag-Erling Smørgrav.Dq full 430545d5ecaSDag-Erling Smørgrav(60). 431545d5ecaSDag-Erling Smørgrav.It Cm PasswordAuthentication 432545d5ecaSDag-Erling SmørgravSpecifies whether password authentication is allowed. 433545d5ecaSDag-Erling SmørgravThe default is 434545d5ecaSDag-Erling Smørgrav.Dq yes . 435b0a159ccSSimon L. B. NielsenNote that if 436810a15b1SDag-Erling Smørgrav.Cm ChallengeResponseAuthentication 437810a15b1SDag-Erling Smørgravis 438810a15b1SDag-Erling Smørgrav.Dq yes , 439810a15b1SDag-Erling Smørgravand the PAM authentication policy for 440810a15b1SDag-Erling Smørgrav.Nm sshd 441810a15b1SDag-Erling Smørgravincludes 442810a15b1SDag-Erling Smørgrav.Xr pam_unix 8 , 443810a15b1SDag-Erling Smørgravpassword authentication will be allowed through the challenge-response 444810a15b1SDag-Erling Smørgravmechanism regardless of the value of 445810a15b1SDag-Erling Smørgrav.Cm PasswordAuthentication . 446545d5ecaSDag-Erling Smørgrav.It Cm PermitEmptyPasswords 447545d5ecaSDag-Erling SmørgravWhen password authentication is allowed, it specifies whether the 448545d5ecaSDag-Erling Smørgravserver allows login to accounts with empty password strings. 449545d5ecaSDag-Erling SmørgravThe default is 450545d5ecaSDag-Erling Smørgrav.Dq no . 451545d5ecaSDag-Erling Smørgrav.It Cm PermitRootLogin 452545d5ecaSDag-Erling SmørgravSpecifies whether root can login using 453545d5ecaSDag-Erling Smørgrav.Xr ssh 1 . 454545d5ecaSDag-Erling SmørgravThe argument must be 455545d5ecaSDag-Erling Smørgrav.Dq yes , 456545d5ecaSDag-Erling Smørgrav.Dq without-password , 457545d5ecaSDag-Erling Smørgrav.Dq forced-commands-only 458545d5ecaSDag-Erling Smørgravor 459545d5ecaSDag-Erling Smørgrav.Dq no . 460545d5ecaSDag-Erling SmørgravThe default is 46135d4ccfbSDag-Erling Smørgrav.Dq no . 462810a15b1SDag-Erling SmørgravNote that if 463810a15b1SDag-Erling Smørgrav.Cm ChallengeResponseAuthentication 464810a15b1SDag-Erling Smørgravis 465810a15b1SDag-Erling Smørgrav.Dq yes , 466810a15b1SDag-Erling Smørgravthe root user may be allowed in with its password even if 467810a15b1SDag-Erling Smørgrav.Cm PermitRootLogin is set to 468810a15b1SDag-Erling Smørgrav.Dq without-password . 469545d5ecaSDag-Erling Smørgrav.Pp 470545d5ecaSDag-Erling SmørgravIf this option is set to 471545d5ecaSDag-Erling Smørgrav.Dq without-password 472545d5ecaSDag-Erling Smørgravpassword authentication is disabled for root. 473545d5ecaSDag-Erling Smørgrav.Pp 474545d5ecaSDag-Erling SmørgravIf this option is set to 475545d5ecaSDag-Erling Smørgrav.Dq forced-commands-only 476545d5ecaSDag-Erling Smørgravroot login with public key authentication will be allowed, 477545d5ecaSDag-Erling Smørgravbut only if the 478545d5ecaSDag-Erling Smørgrav.Ar command 479545d5ecaSDag-Erling Smørgravoption has been specified 480545d5ecaSDag-Erling Smørgrav(which may be useful for taking remote backups even if root login is 481545d5ecaSDag-Erling Smørgravnormally not allowed). All other authentication methods are disabled 482545d5ecaSDag-Erling Smørgravfor root. 483545d5ecaSDag-Erling Smørgrav.Pp 484545d5ecaSDag-Erling SmørgravIf this option is set to 485545d5ecaSDag-Erling Smørgrav.Dq no 486545d5ecaSDag-Erling Smørgravroot is not allowed to login. 487f388f5efSDag-Erling Smørgrav.It Cm PermitUserEnvironment 488f388f5efSDag-Erling SmørgravSpecifies whether 489f388f5efSDag-Erling Smørgrav.Pa ~/.ssh/environment 490f388f5efSDag-Erling Smørgravand 491f388f5efSDag-Erling Smørgrav.Cm environment= 492f388f5efSDag-Erling Smørgravoptions in 493f388f5efSDag-Erling Smørgrav.Pa ~/.ssh/authorized_keys 494f388f5efSDag-Erling Smørgravare processed by 495f388f5efSDag-Erling Smørgrav.Nm sshd . 496f388f5efSDag-Erling SmørgravThe default is 497f388f5efSDag-Erling Smørgrav.Dq no . 498f388f5efSDag-Erling SmørgravEnabling environment processing may enable users to bypass access 499f388f5efSDag-Erling Smørgravrestrictions in some configurations using mechanisms such as 500f388f5efSDag-Erling Smørgrav.Ev LD_PRELOAD . 501545d5ecaSDag-Erling Smørgrav.It Cm PidFile 502a82e551fSDag-Erling SmørgravSpecifies the file that contains the process ID of the 503545d5ecaSDag-Erling Smørgrav.Nm sshd 504545d5ecaSDag-Erling Smørgravdaemon. 505545d5ecaSDag-Erling SmørgravThe default is 506545d5ecaSDag-Erling Smørgrav.Pa /var/run/sshd.pid . 507545d5ecaSDag-Erling Smørgrav.It Cm Port 508545d5ecaSDag-Erling SmørgravSpecifies the port number that 509545d5ecaSDag-Erling Smørgrav.Nm sshd 510545d5ecaSDag-Erling Smørgravlistens on. 511545d5ecaSDag-Erling SmørgravThe default is 22. 512545d5ecaSDag-Erling SmørgravMultiple options of this type are permitted. 513545d5ecaSDag-Erling SmørgravSee also 514545d5ecaSDag-Erling Smørgrav.Cm ListenAddress . 515545d5ecaSDag-Erling Smørgrav.It Cm PrintLastLog 516545d5ecaSDag-Erling SmørgravSpecifies whether 517545d5ecaSDag-Erling Smørgrav.Nm sshd 518545d5ecaSDag-Erling Smørgravshould print the date and time when the user last logged in. 519545d5ecaSDag-Erling SmørgravThe default is 520545d5ecaSDag-Erling Smørgrav.Dq yes . 521545d5ecaSDag-Erling Smørgrav.It Cm PrintMotd 522545d5ecaSDag-Erling SmørgravSpecifies whether 523545d5ecaSDag-Erling Smørgrav.Nm sshd 524545d5ecaSDag-Erling Smørgravshould print 525545d5ecaSDag-Erling Smørgrav.Pa /etc/motd 526545d5ecaSDag-Erling Smørgravwhen a user logs in interactively. 527545d5ecaSDag-Erling Smørgrav(On some systems it is also printed by the shell, 528545d5ecaSDag-Erling Smørgrav.Pa /etc/profile , 529545d5ecaSDag-Erling Smørgravor equivalent.) 530545d5ecaSDag-Erling SmørgravThe default is 531545d5ecaSDag-Erling Smørgrav.Dq yes . 532545d5ecaSDag-Erling Smørgrav.It Cm Protocol 533545d5ecaSDag-Erling SmørgravSpecifies the protocol versions 534545d5ecaSDag-Erling Smørgrav.Nm sshd 535f388f5efSDag-Erling Smørgravsupports. 536545d5ecaSDag-Erling SmørgravThe possible values are 537545d5ecaSDag-Erling Smørgrav.Dq 1 538545d5ecaSDag-Erling Smørgravand 539545d5ecaSDag-Erling Smørgrav.Dq 2 . 540545d5ecaSDag-Erling SmørgravMultiple versions must be comma-separated. 541545d5ecaSDag-Erling SmørgravThe default is 542545d5ecaSDag-Erling Smørgrav.Dq 2,1 . 543f388f5efSDag-Erling SmørgravNote that the order of the protocol list does not indicate preference, 544f388f5efSDag-Erling Smørgravbecause the client selects among multiple protocol versions offered 545f388f5efSDag-Erling Smørgravby the server. 546f388f5efSDag-Erling SmørgravSpecifying 547f388f5efSDag-Erling Smørgrav.Dq 2,1 548f388f5efSDag-Erling Smørgravis identical to 549f388f5efSDag-Erling Smørgrav.Dq 1,2 . 550545d5ecaSDag-Erling Smørgrav.It Cm PubkeyAuthentication 551545d5ecaSDag-Erling SmørgravSpecifies whether public key authentication is allowed. 552545d5ecaSDag-Erling SmørgravThe default is 553545d5ecaSDag-Erling Smørgrav.Dq yes . 554545d5ecaSDag-Erling SmørgravNote that this option applies to protocol version 2 only. 555545d5ecaSDag-Erling Smørgrav.It Cm RhostsAuthentication 55635d4ccfbSDag-Erling SmørgravSpecifies whether authentication using rhosts or 55735d4ccfbSDag-Erling Smørgrav.Pa /etc/hosts.equiv 558545d5ecaSDag-Erling Smørgravfiles is sufficient. 559545d5ecaSDag-Erling SmørgravNormally, this method should not be permitted because it is insecure. 560545d5ecaSDag-Erling Smørgrav.Cm RhostsRSAAuthentication 561545d5ecaSDag-Erling Smørgravshould be used 562545d5ecaSDag-Erling Smørgravinstead, because it performs RSA-based host authentication in addition 56335d4ccfbSDag-Erling Smørgravto normal rhosts or 56435d4ccfbSDag-Erling Smørgrav.Pa /etc/hosts.equiv 56535d4ccfbSDag-Erling Smørgravauthentication. 566545d5ecaSDag-Erling SmørgravThe default is 567545d5ecaSDag-Erling Smørgrav.Dq no . 568545d5ecaSDag-Erling SmørgravThis option applies to protocol version 1 only. 569545d5ecaSDag-Erling Smørgrav.It Cm RhostsRSAAuthentication 57035d4ccfbSDag-Erling SmørgravSpecifies whether rhosts or 57135d4ccfbSDag-Erling Smørgrav.Pa /etc/hosts.equiv 57235d4ccfbSDag-Erling Smørgravauthentication together 573545d5ecaSDag-Erling Smørgravwith successful RSA host authentication is allowed. 574545d5ecaSDag-Erling SmørgravThe default is 575545d5ecaSDag-Erling Smørgrav.Dq no . 576545d5ecaSDag-Erling SmørgravThis option applies to protocol version 1 only. 577545d5ecaSDag-Erling Smørgrav.It Cm RSAAuthentication 578545d5ecaSDag-Erling SmørgravSpecifies whether pure RSA authentication is allowed. 579545d5ecaSDag-Erling SmørgravThe default is 580545d5ecaSDag-Erling Smørgrav.Dq yes . 581545d5ecaSDag-Erling SmørgravThis option applies to protocol version 1 only. 582545d5ecaSDag-Erling Smørgrav.It Cm ServerKeyBits 583545d5ecaSDag-Erling SmørgravDefines the number of bits in the ephemeral protocol version 1 server key. 584545d5ecaSDag-Erling SmørgravThe minimum value is 512, and the default is 768. 585545d5ecaSDag-Erling Smørgrav.It Cm StrictModes 586545d5ecaSDag-Erling SmørgravSpecifies whether 587545d5ecaSDag-Erling Smørgrav.Nm sshd 588545d5ecaSDag-Erling Smørgravshould check file modes and ownership of the 589545d5ecaSDag-Erling Smørgravuser's files and home directory before accepting login. 590545d5ecaSDag-Erling SmørgravThis is normally desirable because novices sometimes accidentally leave their 591545d5ecaSDag-Erling Smørgravdirectory or files world-writable. 592545d5ecaSDag-Erling SmørgravThe default is 593545d5ecaSDag-Erling Smørgrav.Dq yes . 594545d5ecaSDag-Erling Smørgrav.It Cm Subsystem 595545d5ecaSDag-Erling SmørgravConfigures an external subsystem (e.g., file transfer daemon). 596545d5ecaSDag-Erling SmørgravArguments should be a subsystem name and a command to execute upon subsystem 597545d5ecaSDag-Erling Smørgravrequest. 598545d5ecaSDag-Erling SmørgravThe command 599545d5ecaSDag-Erling Smørgrav.Xr sftp-server 8 600545d5ecaSDag-Erling Smørgravimplements the 601545d5ecaSDag-Erling Smørgrav.Dq sftp 602545d5ecaSDag-Erling Smørgravfile transfer subsystem. 603545d5ecaSDag-Erling SmørgravBy default no subsystems are defined. 604545d5ecaSDag-Erling SmørgravNote that this option applies to protocol version 2 only. 605545d5ecaSDag-Erling Smørgrav.It Cm SyslogFacility 606545d5ecaSDag-Erling SmørgravGives the facility code that is used when logging messages from 607545d5ecaSDag-Erling Smørgrav.Nm sshd . 608545d5ecaSDag-Erling SmørgravThe possible values are: DAEMON, USER, AUTH, LOCAL0, LOCAL1, LOCAL2, 609545d5ecaSDag-Erling SmørgravLOCAL3, LOCAL4, LOCAL5, LOCAL6, LOCAL7. 610545d5ecaSDag-Erling SmørgravThe default is AUTH. 611545d5ecaSDag-Erling Smørgrav.It Cm UseLogin 612545d5ecaSDag-Erling SmørgravSpecifies whether 613545d5ecaSDag-Erling Smørgrav.Xr login 1 614545d5ecaSDag-Erling Smørgravis used for interactive login sessions. 615545d5ecaSDag-Erling SmørgravThe default is 616545d5ecaSDag-Erling Smørgrav.Dq no . 617545d5ecaSDag-Erling SmørgravNote that 618545d5ecaSDag-Erling Smørgrav.Xr login 1 619545d5ecaSDag-Erling Smørgravis never used for remote command execution. 620545d5ecaSDag-Erling SmørgravNote also, that if this is enabled, 621545d5ecaSDag-Erling Smørgrav.Cm X11Forwarding 622545d5ecaSDag-Erling Smørgravwill be disabled because 623545d5ecaSDag-Erling Smørgrav.Xr login 1 624545d5ecaSDag-Erling Smørgravdoes not know how to handle 625545d5ecaSDag-Erling Smørgrav.Xr xauth 1 626e73e9afaSDag-Erling Smørgravcookies. 627e73e9afaSDag-Erling SmørgravIf 628545d5ecaSDag-Erling Smørgrav.Cm UsePrivilegeSeparation 629545d5ecaSDag-Erling Smørgravis specified, it will be disabled after authentication. 630545d5ecaSDag-Erling Smørgrav.It Cm UsePrivilegeSeparation 631545d5ecaSDag-Erling SmørgravSpecifies whether 632545d5ecaSDag-Erling Smørgrav.Nm sshd 633545d5ecaSDag-Erling Smørgravseparates privileges by creating an unprivileged child process 634e73e9afaSDag-Erling Smørgravto deal with incoming network traffic. 635e73e9afaSDag-Erling SmørgravAfter successful authentication, another process will be created that has 636e73e9afaSDag-Erling Smørgravthe privilege of the authenticated user. 637e73e9afaSDag-Erling SmørgravThe goal of privilege separation is to prevent privilege 638545d5ecaSDag-Erling Smørgravescalation by containing any corruption within the unprivileged processes. 639545d5ecaSDag-Erling SmørgravThe default is 640545d5ecaSDag-Erling Smørgrav.Dq yes . 641545d5ecaSDag-Erling Smørgrav.It Cm VerifyReverseMapping 642545d5ecaSDag-Erling SmørgravSpecifies whether 643545d5ecaSDag-Erling Smørgrav.Nm sshd 644545d5ecaSDag-Erling Smørgravshould try to verify the remote host name and check that 645545d5ecaSDag-Erling Smørgravthe resolved host name for the remote IP address maps back to the 646545d5ecaSDag-Erling Smørgravvery same IP address. 647545d5ecaSDag-Erling SmørgravThe default is 648545d5ecaSDag-Erling Smørgrav.Dq no . 64935d4ccfbSDag-Erling Smørgrav.It Cm VersionAddendum 65035d4ccfbSDag-Erling SmørgravSpecifies a string to append to the regular version string to identify 65135d4ccfbSDag-Erling SmørgravOS- or site-specific modifications. 652ee8aeb14SDag-Erling SmørgravThe default is 65344172b70SDag-Erling Smørgrav.Dq FreeBSD-20030924 . 654545d5ecaSDag-Erling Smørgrav.It Cm X11DisplayOffset 655545d5ecaSDag-Erling SmørgravSpecifies the first display number available for 656545d5ecaSDag-Erling Smørgrav.Nm sshd Ns 's 657545d5ecaSDag-Erling SmørgravX11 forwarding. 658545d5ecaSDag-Erling SmørgravThis prevents 659545d5ecaSDag-Erling Smørgrav.Nm sshd 660545d5ecaSDag-Erling Smørgravfrom interfering with real X11 servers. 661545d5ecaSDag-Erling SmørgravThe default is 10. 662545d5ecaSDag-Erling Smørgrav.It Cm X11Forwarding 663545d5ecaSDag-Erling SmørgravSpecifies whether X11 forwarding is permitted. 664f388f5efSDag-Erling SmørgravThe argument must be 665f388f5efSDag-Erling Smørgrav.Dq yes 666f388f5efSDag-Erling Smørgravor 667f388f5efSDag-Erling Smørgrav.Dq no . 668545d5ecaSDag-Erling SmørgravThe default is 669ee8aeb14SDag-Erling Smørgrav.Dq yes . 670f388f5efSDag-Erling Smørgrav.Pp 671f388f5efSDag-Erling SmørgravWhen X11 forwarding is enabled, there may be additional exposure to 672f388f5efSDag-Erling Smørgravthe server and to client displays if the 673f388f5efSDag-Erling Smørgrav.Nm sshd 674f388f5efSDag-Erling Smørgravproxy display is configured to listen on the wildcard address (see 675f388f5efSDag-Erling Smørgrav.Cm X11UseLocalhost 676f388f5efSDag-Erling Smørgravbelow), however this is not the default. 677f388f5efSDag-Erling SmørgravAdditionally, the authentication spoofing and authentication data 678f388f5efSDag-Erling Smørgravverification and substitution occur on the client side. 679f388f5efSDag-Erling SmørgravThe security risk of using X11 forwarding is that the client's X11 680f388f5efSDag-Erling Smørgravdisplay server may be exposed to attack when the ssh client requests 681f388f5efSDag-Erling Smørgravforwarding (see the warnings for 682f388f5efSDag-Erling Smørgrav.Cm ForwardX11 683f388f5efSDag-Erling Smørgravin 684f388f5efSDag-Erling Smørgrav.Xr ssh_config 5 ). 685f388f5efSDag-Erling SmørgravA system administrator may have a stance in which they want to 686f388f5efSDag-Erling Smørgravprotect clients that may expose themselves to attack by unwittingly 687f388f5efSDag-Erling Smørgravrequesting X11 forwarding, which can warrant a 688f388f5efSDag-Erling Smørgrav.Dq no 689f388f5efSDag-Erling Smørgravsetting. 690f388f5efSDag-Erling Smørgrav.Pp 691f388f5efSDag-Erling SmørgravNote that disabling X11 forwarding does not prevent users from 692f388f5efSDag-Erling Smørgravforwarding X11 traffic, as users can always install their own forwarders. 693545d5ecaSDag-Erling SmørgravX11 forwarding is automatically disabled if 694545d5ecaSDag-Erling Smørgrav.Cm UseLogin 695545d5ecaSDag-Erling Smørgravis enabled. 696545d5ecaSDag-Erling Smørgrav.It Cm X11UseLocalhost 697545d5ecaSDag-Erling SmørgravSpecifies whether 698545d5ecaSDag-Erling Smørgrav.Nm sshd 699545d5ecaSDag-Erling Smørgravshould bind the X11 forwarding server to the loopback address or to 700e73e9afaSDag-Erling Smørgravthe wildcard address. 701e73e9afaSDag-Erling SmørgravBy default, 702545d5ecaSDag-Erling Smørgrav.Nm sshd 703545d5ecaSDag-Erling Smørgravbinds the forwarding server to the loopback address and sets the 704545d5ecaSDag-Erling Smørgravhostname part of the 705545d5ecaSDag-Erling Smørgrav.Ev DISPLAY 706545d5ecaSDag-Erling Smørgravenvironment variable to 707545d5ecaSDag-Erling Smørgrav.Dq localhost . 708f388f5efSDag-Erling SmørgravThis prevents remote hosts from connecting to the proxy display. 709545d5ecaSDag-Erling SmørgravHowever, some older X11 clients may not function with this 710545d5ecaSDag-Erling Smørgravconfiguration. 711545d5ecaSDag-Erling Smørgrav.Cm X11UseLocalhost 712545d5ecaSDag-Erling Smørgravmay be set to 713545d5ecaSDag-Erling Smørgrav.Dq no 714545d5ecaSDag-Erling Smørgravto specify that the forwarding server should be bound to the wildcard 715545d5ecaSDag-Erling Smørgravaddress. 716545d5ecaSDag-Erling SmørgravThe argument must be 717545d5ecaSDag-Erling Smørgrav.Dq yes 718545d5ecaSDag-Erling Smørgravor 719545d5ecaSDag-Erling Smørgrav.Dq no . 720545d5ecaSDag-Erling SmørgravThe default is 721545d5ecaSDag-Erling Smørgrav.Dq yes . 722545d5ecaSDag-Erling Smørgrav.It Cm XAuthLocation 723f388f5efSDag-Erling SmørgravSpecifies the full pathname of the 724545d5ecaSDag-Erling Smørgrav.Xr xauth 1 725545d5ecaSDag-Erling Smørgravprogram. 726545d5ecaSDag-Erling SmørgravThe default is 727545d5ecaSDag-Erling Smørgrav.Pa /usr/X11R6/bin/xauth . 728545d5ecaSDag-Erling Smørgrav.El 729545d5ecaSDag-Erling Smørgrav.Ss Time Formats 730545d5ecaSDag-Erling Smørgrav.Pp 731545d5ecaSDag-Erling Smørgrav.Nm sshd 732545d5ecaSDag-Erling Smørgravcommand-line arguments and configuration file options that specify time 733545d5ecaSDag-Erling Smørgravmay be expressed using a sequence of the form: 734545d5ecaSDag-Erling Smørgrav.Sm off 735f388f5efSDag-Erling Smørgrav.Ar time Op Ar qualifier , 736545d5ecaSDag-Erling Smørgrav.Sm on 737545d5ecaSDag-Erling Smørgravwhere 738545d5ecaSDag-Erling Smørgrav.Ar time 739545d5ecaSDag-Erling Smørgravis a positive integer value and 740545d5ecaSDag-Erling Smørgrav.Ar qualifier 741545d5ecaSDag-Erling Smørgravis one of the following: 742545d5ecaSDag-Erling Smørgrav.Pp 743545d5ecaSDag-Erling Smørgrav.Bl -tag -width Ds -compact -offset indent 744545d5ecaSDag-Erling Smørgrav.It Cm <none> 745545d5ecaSDag-Erling Smørgravseconds 746545d5ecaSDag-Erling Smørgrav.It Cm s | Cm S 747545d5ecaSDag-Erling Smørgravseconds 748545d5ecaSDag-Erling Smørgrav.It Cm m | Cm M 749545d5ecaSDag-Erling Smørgravminutes 750545d5ecaSDag-Erling Smørgrav.It Cm h | Cm H 751545d5ecaSDag-Erling Smørgravhours 752545d5ecaSDag-Erling Smørgrav.It Cm d | Cm D 753545d5ecaSDag-Erling Smørgravdays 754545d5ecaSDag-Erling Smørgrav.It Cm w | Cm W 755545d5ecaSDag-Erling Smørgravweeks 756545d5ecaSDag-Erling Smørgrav.El 757545d5ecaSDag-Erling Smørgrav.Pp 758545d5ecaSDag-Erling SmørgravEach member of the sequence is added together to calculate 759545d5ecaSDag-Erling Smørgravthe total time value. 760545d5ecaSDag-Erling Smørgrav.Pp 761545d5ecaSDag-Erling SmørgravTime format examples: 762545d5ecaSDag-Erling Smørgrav.Pp 763545d5ecaSDag-Erling Smørgrav.Bl -tag -width Ds -compact -offset indent 764545d5ecaSDag-Erling Smørgrav.It 600 765545d5ecaSDag-Erling Smørgrav600 seconds (10 minutes) 766545d5ecaSDag-Erling Smørgrav.It 10m 767545d5ecaSDag-Erling Smørgrav10 minutes 768545d5ecaSDag-Erling Smørgrav.It 1h30m 769545d5ecaSDag-Erling Smørgrav1 hour 30 minutes (90 minutes) 770545d5ecaSDag-Erling Smørgrav.El 771545d5ecaSDag-Erling Smørgrav.Sh FILES 772545d5ecaSDag-Erling Smørgrav.Bl -tag -width Ds 773545d5ecaSDag-Erling Smørgrav.It Pa /etc/ssh/sshd_config 774545d5ecaSDag-Erling SmørgravContains configuration data for 775545d5ecaSDag-Erling Smørgrav.Nm sshd . 776545d5ecaSDag-Erling SmørgravThis file should be writable by root only, but it is recommended 777545d5ecaSDag-Erling Smørgrav(though not necessary) that it be world-readable. 778545d5ecaSDag-Erling Smørgrav.El 779545d5ecaSDag-Erling Smørgrav.Sh AUTHORS 780545d5ecaSDag-Erling SmørgravOpenSSH is a derivative of the original and free 781545d5ecaSDag-Erling Smørgravssh 1.2.12 release by Tatu Ylonen. 782545d5ecaSDag-Erling SmørgravAaron Campbell, Bob Beck, Markus Friedl, Niels Provos, 783545d5ecaSDag-Erling SmørgravTheo de Raadt and Dug Song 784545d5ecaSDag-Erling Smørgravremoved many bugs, re-added newer features and 785545d5ecaSDag-Erling Smørgravcreated OpenSSH. 786545d5ecaSDag-Erling SmørgravMarkus Friedl contributed the support for SSH 787545d5ecaSDag-Erling Smørgravprotocol versions 1.5 and 2.0. 788545d5ecaSDag-Erling SmørgravNiels Provos and Markus Friedl contributed support 789545d5ecaSDag-Erling Smørgravfor privilege separation. 790545d5ecaSDag-Erling Smørgrav.Sh SEE ALSO 791545d5ecaSDag-Erling Smørgrav.Xr sshd 8 792