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.\" 37cf2b5f3bSDag-Erling Smørgrav.\" $OpenBSD: sshd_config.5,v 1.25 2003/09/01 09:50:04 markus 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 AllowGroups 66545d5ecaSDag-Erling SmørgravThis keyword can be followed by a list of group name patterns, separated 67545d5ecaSDag-Erling Smørgravby spaces. 68545d5ecaSDag-Erling SmørgravIf specified, login is allowed only for users whose primary 69545d5ecaSDag-Erling Smørgravgroup or supplementary group list matches one of the patterns. 70545d5ecaSDag-Erling Smørgrav.Ql \&* 71545d5ecaSDag-Erling Smørgravand 72cf2b5f3bSDag-Erling Smørgrav.Ql \&? 73545d5ecaSDag-Erling Smørgravcan be used as 74545d5ecaSDag-Erling Smørgravwildcards in the patterns. 75545d5ecaSDag-Erling SmørgravOnly group names are valid; a numerical group ID is not recognized. 76545d5ecaSDag-Erling SmørgravBy default, login is allowed for all groups. 77545d5ecaSDag-Erling Smørgrav.Pp 78545d5ecaSDag-Erling Smørgrav.It Cm AllowTcpForwarding 79545d5ecaSDag-Erling SmørgravSpecifies whether TCP forwarding is permitted. 80545d5ecaSDag-Erling SmørgravThe default is 81545d5ecaSDag-Erling Smørgrav.Dq yes . 82545d5ecaSDag-Erling SmørgravNote that disabling TCP forwarding does not improve security unless 83545d5ecaSDag-Erling Smørgravusers are also denied shell access, as they can always install their 84545d5ecaSDag-Erling Smørgravown forwarders. 85545d5ecaSDag-Erling Smørgrav.Pp 86545d5ecaSDag-Erling Smørgrav.It Cm AllowUsers 87545d5ecaSDag-Erling SmørgravThis keyword can be followed by a list of user name patterns, separated 88545d5ecaSDag-Erling Smørgravby spaces. 89e73e9afaSDag-Erling SmørgravIf specified, login is allowed only for user names that 90545d5ecaSDag-Erling Smørgravmatch one of the patterns. 91545d5ecaSDag-Erling Smørgrav.Ql \&* 92545d5ecaSDag-Erling Smørgravand 93cf2b5f3bSDag-Erling Smørgrav.Ql \&? 94545d5ecaSDag-Erling Smørgravcan be used as 95545d5ecaSDag-Erling Smørgravwildcards in the patterns. 96545d5ecaSDag-Erling SmørgravOnly user names are valid; a numerical user ID is not recognized. 97545d5ecaSDag-Erling SmørgravBy default, login is allowed for all users. 98545d5ecaSDag-Erling SmørgravIf the pattern takes the form USER@HOST then USER and HOST 99545d5ecaSDag-Erling Smørgravare separately checked, restricting logins to particular 100545d5ecaSDag-Erling Smørgravusers from particular hosts. 101545d5ecaSDag-Erling Smørgrav.Pp 102545d5ecaSDag-Erling Smørgrav.It Cm AuthorizedKeysFile 103545d5ecaSDag-Erling SmørgravSpecifies the file that contains the public keys that can be used 104545d5ecaSDag-Erling Smørgravfor user authentication. 105545d5ecaSDag-Erling Smørgrav.Cm AuthorizedKeysFile 106545d5ecaSDag-Erling Smørgravmay contain tokens of the form %T which are substituted during connection 107cf2b5f3bSDag-Erling Smørgravset-up. 108cf2b5f3bSDag-Erling SmørgravThe following tokens are defined: %% is replaced by a literal '%', 109545d5ecaSDag-Erling Smørgrav%h is replaced by the home directory of the user being authenticated and 110545d5ecaSDag-Erling Smørgrav%u is replaced by the username of that user. 111545d5ecaSDag-Erling SmørgravAfter expansion, 112545d5ecaSDag-Erling Smørgrav.Cm AuthorizedKeysFile 113545d5ecaSDag-Erling Smørgravis taken to be an absolute path or one relative to the user's home 114545d5ecaSDag-Erling Smørgravdirectory. 115545d5ecaSDag-Erling SmørgravThe default is 116545d5ecaSDag-Erling Smørgrav.Dq .ssh/authorized_keys . 117545d5ecaSDag-Erling Smørgrav.It Cm Banner 118545d5ecaSDag-Erling SmørgravIn some jurisdictions, sending a warning message before authentication 119545d5ecaSDag-Erling Smørgravmay be relevant for getting legal protection. 120545d5ecaSDag-Erling SmørgravThe contents of the specified file are sent to the remote user before 121545d5ecaSDag-Erling Smørgravauthentication is allowed. 122545d5ecaSDag-Erling SmørgravThis option is only available for protocol version 2. 123545d5ecaSDag-Erling SmørgravBy default, no banner is displayed. 124545d5ecaSDag-Erling Smørgrav.Pp 125545d5ecaSDag-Erling Smørgrav.It Cm ChallengeResponseAuthentication 126ee8aeb14SDag-Erling SmørgravSpecifies whether challenge-response authentication is allowed. 127ee8aeb14SDag-Erling SmørgravSpecifically, in 128ee8aeb14SDag-Erling Smørgrav.Fx , 129ee8aeb14SDag-Erling Smørgravthis controls the use of PAM (see 130ee8aeb14SDag-Erling Smørgrav.Xr pam 3 ) 131ee8aeb14SDag-Erling Smørgravfor authentication. 132810a15b1SDag-Erling SmørgravNote that this affects the effectiveness of the 133810a15b1SDag-Erling Smørgrav.Cm PasswordAuthentication 134810a15b1SDag-Erling Smørgravand 135810a15b1SDag-Erling Smørgrav.Cm PermitRootLogin 136810a15b1SDag-Erling Smørgravvariables. 137545d5ecaSDag-Erling SmørgravThe default is 138545d5ecaSDag-Erling Smørgrav.Dq yes . 139545d5ecaSDag-Erling Smørgrav.It Cm Ciphers 140545d5ecaSDag-Erling SmørgravSpecifies the ciphers allowed for protocol version 2. 141545d5ecaSDag-Erling SmørgravMultiple ciphers must be comma-separated. 142545d5ecaSDag-Erling SmørgravThe default is 143545d5ecaSDag-Erling Smørgrav.Pp 144545d5ecaSDag-Erling Smørgrav.Bd -literal 145545d5ecaSDag-Erling Smørgrav ``aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour, 146cf2b5f3bSDag-Erling Smørgrav aes192-cbc,aes256-cbc,aes128-ctr,aes192-ctr,aes256-ctr'' 147545d5ecaSDag-Erling Smørgrav.Ed 148545d5ecaSDag-Erling Smørgrav.It Cm ClientAliveInterval 149545d5ecaSDag-Erling SmørgravSets a timeout interval in seconds after which if no data has been received 150545d5ecaSDag-Erling Smørgravfrom the client, 151545d5ecaSDag-Erling Smørgrav.Nm sshd 152545d5ecaSDag-Erling Smørgravwill send a message through the encrypted 153545d5ecaSDag-Erling Smørgravchannel to request a response from the client. 154545d5ecaSDag-Erling SmørgravThe default 155545d5ecaSDag-Erling Smørgravis 0, indicating that these messages will not be sent to the client. 156545d5ecaSDag-Erling SmørgravThis option applies to protocol version 2 only. 157545d5ecaSDag-Erling Smørgrav.It Cm ClientAliveCountMax 158545d5ecaSDag-Erling SmørgravSets the number of client alive messages (see above) which may be 159545d5ecaSDag-Erling Smørgravsent without 160545d5ecaSDag-Erling Smørgrav.Nm sshd 161cf2b5f3bSDag-Erling Smørgravreceiving any messages back from the client. 162cf2b5f3bSDag-Erling SmørgravIf this threshold is reached while client alive messages are being sent, 163545d5ecaSDag-Erling Smørgrav.Nm sshd 164cf2b5f3bSDag-Erling Smørgravwill disconnect the client, terminating the session. 165cf2b5f3bSDag-Erling SmørgravIt is important to note that the use of client alive messages is very 166cf2b5f3bSDag-Erling Smørgravdifferent from 167545d5ecaSDag-Erling Smørgrav.Cm KeepAlive 168cf2b5f3bSDag-Erling Smørgrav(below). 169cf2b5f3bSDag-Erling SmørgravThe client alive messages are sent through the encrypted channel 170cf2b5f3bSDag-Erling Smørgravand therefore will not be spoofable. 171cf2b5f3bSDag-Erling SmørgravThe TCP keepalive option enabled by 172545d5ecaSDag-Erling Smørgrav.Cm KeepAlive 173cf2b5f3bSDag-Erling Smørgravis spoofable. 174cf2b5f3bSDag-Erling SmørgravThe 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 177cf2b5f3bSDag-Erling SmørgravThe default value is 3. 178cf2b5f3bSDag-Erling SmørgravIf 179545d5ecaSDag-Erling Smørgrav.Cm ClientAliveInterval 180545d5ecaSDag-Erling Smørgrav(above) is set to 15, and 181545d5ecaSDag-Erling Smørgrav.Cm ClientAliveCountMax 182545d5ecaSDag-Erling Smørgravis left at the default, unresponsive ssh clients 183545d5ecaSDag-Erling Smørgravwill be disconnected after approximately 45 seconds. 184545d5ecaSDag-Erling Smørgrav.It Cm Compression 185545d5ecaSDag-Erling SmørgravSpecifies whether compression is allowed. 186545d5ecaSDag-Erling SmørgravThe argument must be 187545d5ecaSDag-Erling Smørgrav.Dq yes 188545d5ecaSDag-Erling Smørgravor 189545d5ecaSDag-Erling Smørgrav.Dq no . 190545d5ecaSDag-Erling SmørgravThe default is 191545d5ecaSDag-Erling Smørgrav.Dq yes . 192545d5ecaSDag-Erling Smørgrav.It Cm DenyGroups 193545d5ecaSDag-Erling SmørgravThis keyword can be followed by a list of group name patterns, separated 194545d5ecaSDag-Erling Smørgravby spaces. 195545d5ecaSDag-Erling SmørgravLogin is disallowed for users whose primary group or supplementary 196545d5ecaSDag-Erling Smørgravgroup list matches one of the patterns. 197545d5ecaSDag-Erling Smørgrav.Ql \&* 198545d5ecaSDag-Erling Smørgravand 199cf2b5f3bSDag-Erling Smørgrav.Ql \&? 200545d5ecaSDag-Erling Smørgravcan be used as 201545d5ecaSDag-Erling Smørgravwildcards in the patterns. 202545d5ecaSDag-Erling SmørgravOnly group names are valid; a numerical group ID is not recognized. 203545d5ecaSDag-Erling SmørgravBy default, login is allowed for all groups. 204545d5ecaSDag-Erling Smørgrav.Pp 205545d5ecaSDag-Erling Smørgrav.It Cm DenyUsers 206545d5ecaSDag-Erling SmørgravThis keyword can be followed by a list of user name patterns, separated 207545d5ecaSDag-Erling Smørgravby spaces. 208545d5ecaSDag-Erling SmørgravLogin is disallowed for user names that match one of the patterns. 209545d5ecaSDag-Erling Smørgrav.Ql \&* 210545d5ecaSDag-Erling Smørgravand 211cf2b5f3bSDag-Erling Smørgrav.Ql \&? 212545d5ecaSDag-Erling Smørgravcan be used as wildcards in the patterns. 213545d5ecaSDag-Erling SmørgravOnly user names are valid; a numerical user ID is not recognized. 214545d5ecaSDag-Erling SmørgravBy default, login is allowed for all users. 215545d5ecaSDag-Erling SmørgravIf the pattern takes the form USER@HOST then USER and HOST 216545d5ecaSDag-Erling Smørgravare separately checked, restricting logins to particular 217545d5ecaSDag-Erling Smørgravusers from particular hosts. 218545d5ecaSDag-Erling Smørgrav.It Cm GatewayPorts 219545d5ecaSDag-Erling SmørgravSpecifies whether remote hosts are allowed to connect to ports 220545d5ecaSDag-Erling Smørgravforwarded for the client. 221545d5ecaSDag-Erling SmørgravBy default, 222545d5ecaSDag-Erling Smørgrav.Nm sshd 223e73e9afaSDag-Erling Smørgravbinds remote port forwardings to the loopback address. 224e73e9afaSDag-Erling SmørgravThis prevents other remote hosts from connecting to forwarded ports. 225545d5ecaSDag-Erling Smørgrav.Cm GatewayPorts 226545d5ecaSDag-Erling Smørgravcan be used to specify that 227545d5ecaSDag-Erling Smørgrav.Nm sshd 228545d5ecaSDag-Erling Smørgravshould bind remote port forwardings to the wildcard address, 229545d5ecaSDag-Erling Smørgravthus allowing remote hosts to connect to forwarded ports. 230545d5ecaSDag-Erling SmørgravThe argument must be 231545d5ecaSDag-Erling Smørgrav.Dq yes 232545d5ecaSDag-Erling Smørgravor 233545d5ecaSDag-Erling Smørgrav.Dq no . 234545d5ecaSDag-Erling SmørgravThe default is 235545d5ecaSDag-Erling Smørgrav.Dq no . 236cf2b5f3bSDag-Erling Smørgrav.It Cm GSSAPIAuthentication 237cf2b5f3bSDag-Erling SmørgravSpecifies whether user authentication based on GSSAPI is allowed. 238cf2b5f3bSDag-Erling SmørgravThe default is 239cf2b5f3bSDag-Erling Smørgrav.Dq no . 240cf2b5f3bSDag-Erling SmørgravNote that this option applies to protocol version 2 only. 241cf2b5f3bSDag-Erling Smørgrav.It Cm GSSAPICleanupCredentials 242cf2b5f3bSDag-Erling SmørgravSpecifies whether to automatically destroy the user's credentials cache 243cf2b5f3bSDag-Erling Smørgravon logout. 244cf2b5f3bSDag-Erling SmørgravThe default is 245cf2b5f3bSDag-Erling Smørgrav.Dq yes . 246cf2b5f3bSDag-Erling SmørgravNote that this option applies to protocol version 2 only. 247545d5ecaSDag-Erling Smørgrav.It Cm HostbasedAuthentication 248545d5ecaSDag-Erling SmørgravSpecifies whether rhosts or /etc/hosts.equiv authentication together 249545d5ecaSDag-Erling Smørgravwith successful public key client host authentication is allowed 250545d5ecaSDag-Erling Smørgrav(hostbased authentication). 251545d5ecaSDag-Erling SmørgravThis option is similar to 252545d5ecaSDag-Erling Smørgrav.Cm RhostsRSAAuthentication 253545d5ecaSDag-Erling Smørgravand applies to protocol version 2 only. 254545d5ecaSDag-Erling SmørgravThe default is 255545d5ecaSDag-Erling Smørgrav.Dq no . 256545d5ecaSDag-Erling Smørgrav.It Cm HostKey 257545d5ecaSDag-Erling SmørgravSpecifies a file containing a private host key 258545d5ecaSDag-Erling Smørgravused by SSH. 259545d5ecaSDag-Erling SmørgravThe default is 260545d5ecaSDag-Erling Smørgrav.Pa /etc/ssh/ssh_host_key 261545d5ecaSDag-Erling Smørgravfor protocol version 1, and 262545d5ecaSDag-Erling Smørgrav.Pa /etc/ssh/ssh_host_dsa_key 263545d5ecaSDag-Erling Smørgravfor protocol version 2. 264545d5ecaSDag-Erling SmørgravNote that 265545d5ecaSDag-Erling Smørgrav.Nm sshd 266545d5ecaSDag-Erling Smørgravwill refuse to use a file if it is group/world-accessible. 267545d5ecaSDag-Erling SmørgravIt is possible to have multiple host key files. 268545d5ecaSDag-Erling Smørgrav.Dq rsa1 269545d5ecaSDag-Erling Smørgravkeys are used for version 1 and 270545d5ecaSDag-Erling Smørgrav.Dq dsa 271545d5ecaSDag-Erling Smørgravor 272545d5ecaSDag-Erling Smørgrav.Dq rsa 273545d5ecaSDag-Erling Smørgravare used for version 2 of the SSH protocol. 274545d5ecaSDag-Erling Smørgrav.It Cm IgnoreRhosts 275545d5ecaSDag-Erling SmørgravSpecifies that 276545d5ecaSDag-Erling Smørgrav.Pa .rhosts 277545d5ecaSDag-Erling Smørgravand 278545d5ecaSDag-Erling Smørgrav.Pa .shosts 279545d5ecaSDag-Erling Smørgravfiles will not be used in 280545d5ecaSDag-Erling Smørgrav.Cm RhostsRSAAuthentication 281545d5ecaSDag-Erling Smørgravor 282545d5ecaSDag-Erling Smørgrav.Cm HostbasedAuthentication . 283545d5ecaSDag-Erling Smørgrav.Pp 284545d5ecaSDag-Erling Smørgrav.Pa /etc/hosts.equiv 285545d5ecaSDag-Erling Smørgravand 28635d4ccfbSDag-Erling Smørgrav.Pa /etc/ssh/shosts.equiv 287545d5ecaSDag-Erling Smørgravare still used. 288545d5ecaSDag-Erling SmørgravThe default is 289545d5ecaSDag-Erling Smørgrav.Dq yes . 290545d5ecaSDag-Erling Smørgrav.It Cm IgnoreUserKnownHosts 291545d5ecaSDag-Erling SmørgravSpecifies whether 292545d5ecaSDag-Erling Smørgrav.Nm sshd 293545d5ecaSDag-Erling Smørgravshould ignore the user's 294545d5ecaSDag-Erling Smørgrav.Pa $HOME/.ssh/known_hosts 295545d5ecaSDag-Erling Smørgravduring 296545d5ecaSDag-Erling Smørgrav.Cm RhostsRSAAuthentication 297545d5ecaSDag-Erling Smørgravor 298545d5ecaSDag-Erling Smørgrav.Cm HostbasedAuthentication . 299545d5ecaSDag-Erling SmørgravThe default is 300545d5ecaSDag-Erling Smørgrav.Dq no . 301545d5ecaSDag-Erling Smørgrav.It Cm KeepAlive 302545d5ecaSDag-Erling SmørgravSpecifies whether the system should send TCP keepalive messages to the 303545d5ecaSDag-Erling Smørgravother side. 304545d5ecaSDag-Erling SmørgravIf they are sent, death of the connection or crash of one 305545d5ecaSDag-Erling Smørgravof the machines will be properly noticed. 306545d5ecaSDag-Erling SmørgravHowever, this means that 307545d5ecaSDag-Erling Smørgravconnections will die if the route is down temporarily, and some people 308545d5ecaSDag-Erling Smørgravfind it annoying. 309545d5ecaSDag-Erling SmørgravOn the other hand, if keepalives are not sent, 310545d5ecaSDag-Erling Smørgravsessions may hang indefinitely on the server, leaving 311545d5ecaSDag-Erling Smørgrav.Dq ghost 312545d5ecaSDag-Erling Smørgravusers and consuming server resources. 313545d5ecaSDag-Erling Smørgrav.Pp 314545d5ecaSDag-Erling SmørgravThe default is 315545d5ecaSDag-Erling Smørgrav.Dq yes 316545d5ecaSDag-Erling Smørgrav(to send keepalives), and the server will notice 317545d5ecaSDag-Erling Smørgravif the network goes down or the client host crashes. 318545d5ecaSDag-Erling SmørgravThis avoids infinitely hanging sessions. 319545d5ecaSDag-Erling Smørgrav.Pp 320545d5ecaSDag-Erling SmørgravTo disable keepalives, the value should be set to 321545d5ecaSDag-Erling Smørgrav.Dq no . 322545d5ecaSDag-Erling Smørgrav.It Cm KerberosAuthentication 323cf2b5f3bSDag-Erling SmørgravSpecifies whether the password provided by the user for 324545d5ecaSDag-Erling Smørgrav.Cm PasswordAuthentication 325cf2b5f3bSDag-Erling Smørgravwill be validated through the Kerberos KDC. 326545d5ecaSDag-Erling SmørgravTo use this option, the server needs a 327545d5ecaSDag-Erling SmørgravKerberos servtab which allows the verification of the KDC's identity. 328545d5ecaSDag-Erling SmørgravDefault is 329545d5ecaSDag-Erling Smørgrav.Dq no . 330545d5ecaSDag-Erling Smørgrav.It Cm KerberosOrLocalPasswd 331545d5ecaSDag-Erling SmørgravIf set then if password authentication through Kerberos fails then 332545d5ecaSDag-Erling Smørgravthe password will be validated via any additional local mechanism 333545d5ecaSDag-Erling Smørgravsuch as 334545d5ecaSDag-Erling Smørgrav.Pa /etc/passwd . 335545d5ecaSDag-Erling SmørgravDefault is 336545d5ecaSDag-Erling Smørgrav.Dq yes . 337545d5ecaSDag-Erling Smørgrav.It Cm KerberosTicketCleanup 338545d5ecaSDag-Erling SmørgravSpecifies whether to automatically destroy the user's ticket cache 339545d5ecaSDag-Erling Smørgravfile on logout. 340545d5ecaSDag-Erling SmørgravDefault is 341545d5ecaSDag-Erling Smørgrav.Dq yes . 342545d5ecaSDag-Erling Smørgrav.It Cm KeyRegenerationInterval 343545d5ecaSDag-Erling SmørgravIn protocol version 1, the ephemeral server key is automatically regenerated 344545d5ecaSDag-Erling Smørgravafter this many seconds (if it has been used). 345545d5ecaSDag-Erling SmørgravThe purpose of regeneration is to prevent 346545d5ecaSDag-Erling Smørgravdecrypting captured sessions by later breaking into the machine and 347545d5ecaSDag-Erling Smørgravstealing the keys. 348545d5ecaSDag-Erling SmørgravThe key is never stored anywhere. 349545d5ecaSDag-Erling SmørgravIf the value is 0, the key is never regenerated. 350545d5ecaSDag-Erling SmørgravThe default is 3600 (seconds). 351545d5ecaSDag-Erling Smørgrav.It Cm ListenAddress 352545d5ecaSDag-Erling SmørgravSpecifies the local addresses 353545d5ecaSDag-Erling Smørgrav.Nm sshd 354545d5ecaSDag-Erling Smørgravshould listen on. 355545d5ecaSDag-Erling SmørgravThe following forms may be used: 356545d5ecaSDag-Erling Smørgrav.Pp 357545d5ecaSDag-Erling Smørgrav.Bl -item -offset indent -compact 358545d5ecaSDag-Erling Smørgrav.It 359545d5ecaSDag-Erling Smørgrav.Cm ListenAddress 360545d5ecaSDag-Erling Smørgrav.Sm off 361545d5ecaSDag-Erling Smørgrav.Ar host No | Ar IPv4_addr No | Ar IPv6_addr 362545d5ecaSDag-Erling Smørgrav.Sm on 363545d5ecaSDag-Erling Smørgrav.It 364545d5ecaSDag-Erling Smørgrav.Cm ListenAddress 365545d5ecaSDag-Erling Smørgrav.Sm off 366545d5ecaSDag-Erling Smørgrav.Ar host No | Ar IPv4_addr No : Ar port 367545d5ecaSDag-Erling Smørgrav.Sm on 368545d5ecaSDag-Erling Smørgrav.It 369545d5ecaSDag-Erling Smørgrav.Cm ListenAddress 370545d5ecaSDag-Erling Smørgrav.Sm off 371545d5ecaSDag-Erling Smørgrav.Oo 372545d5ecaSDag-Erling Smørgrav.Ar host No | Ar IPv6_addr Oc : Ar port 373545d5ecaSDag-Erling Smørgrav.Sm on 374545d5ecaSDag-Erling Smørgrav.El 375545d5ecaSDag-Erling Smørgrav.Pp 376545d5ecaSDag-Erling SmørgravIf 377545d5ecaSDag-Erling Smørgrav.Ar port 378545d5ecaSDag-Erling Smørgravis not specified, 379545d5ecaSDag-Erling Smørgrav.Nm sshd 380545d5ecaSDag-Erling Smørgravwill listen on the address and all prior 381545d5ecaSDag-Erling Smørgrav.Cm Port 382cf2b5f3bSDag-Erling Smørgravoptions specified. 383cf2b5f3bSDag-Erling SmørgravThe default is to listen on all local addresses. 384e73e9afaSDag-Erling SmørgravMultiple 385545d5ecaSDag-Erling Smørgrav.Cm ListenAddress 386cf2b5f3bSDag-Erling Smørgravoptions are permitted. 387cf2b5f3bSDag-Erling SmørgravAdditionally, any 388545d5ecaSDag-Erling Smørgrav.Cm Port 389545d5ecaSDag-Erling Smørgravoptions must precede this option for non port qualified addresses. 390545d5ecaSDag-Erling Smørgrav.It Cm LoginGraceTime 391545d5ecaSDag-Erling SmørgravThe server disconnects after this time if the user has not 392545d5ecaSDag-Erling Smørgravsuccessfully logged in. 393545d5ecaSDag-Erling SmørgravIf the value is 0, there is no time limit. 394f388f5efSDag-Erling SmørgravThe default is 120 seconds. 395545d5ecaSDag-Erling Smørgrav.It Cm LogLevel 396545d5ecaSDag-Erling SmørgravGives the verbosity level that is used when logging messages from 397545d5ecaSDag-Erling Smørgrav.Nm sshd . 398545d5ecaSDag-Erling SmørgravThe possible values are: 399545d5ecaSDag-Erling SmørgravQUIET, FATAL, ERROR, INFO, VERBOSE, DEBUG, DEBUG1, DEBUG2 and DEBUG3. 400e73e9afaSDag-Erling SmørgravThe default is INFO. 401e73e9afaSDag-Erling SmørgravDEBUG and DEBUG1 are equivalent. 402e73e9afaSDag-Erling SmørgravDEBUG2 and DEBUG3 each specify higher levels of debugging output. 403e73e9afaSDag-Erling SmørgravLogging with a DEBUG level violates the privacy of users and is not recommended. 404545d5ecaSDag-Erling Smørgrav.It Cm MACs 405545d5ecaSDag-Erling SmørgravSpecifies the available MAC (message authentication code) algorithms. 406545d5ecaSDag-Erling SmørgravThe MAC algorithm is used in protocol version 2 407545d5ecaSDag-Erling Smørgravfor data integrity protection. 408545d5ecaSDag-Erling SmørgravMultiple algorithms must be comma-separated. 409545d5ecaSDag-Erling SmørgravThe default is 410545d5ecaSDag-Erling Smørgrav.Dq hmac-md5,hmac-sha1,hmac-ripemd160,hmac-sha1-96,hmac-md5-96 . 411545d5ecaSDag-Erling Smørgrav.It Cm MaxStartups 412545d5ecaSDag-Erling SmørgravSpecifies the maximum number of concurrent unauthenticated connections to the 413545d5ecaSDag-Erling Smørgrav.Nm sshd 414545d5ecaSDag-Erling Smørgravdaemon. 415545d5ecaSDag-Erling SmørgravAdditional connections will be dropped until authentication succeeds or the 416545d5ecaSDag-Erling Smørgrav.Cm LoginGraceTime 417545d5ecaSDag-Erling Smørgravexpires for a connection. 418545d5ecaSDag-Erling SmørgravThe default is 10. 419545d5ecaSDag-Erling Smørgrav.Pp 420545d5ecaSDag-Erling SmørgravAlternatively, random early drop can be enabled by specifying 421545d5ecaSDag-Erling Smørgravthe three colon separated values 422545d5ecaSDag-Erling Smørgrav.Dq start:rate:full 423545d5ecaSDag-Erling Smørgrav(e.g., "10:30:60"). 424545d5ecaSDag-Erling Smørgrav.Nm sshd 425545d5ecaSDag-Erling Smørgravwill refuse connection attempts with a probability of 426545d5ecaSDag-Erling Smørgrav.Dq rate/100 427545d5ecaSDag-Erling Smørgrav(30%) 428545d5ecaSDag-Erling Smørgravif there are currently 429545d5ecaSDag-Erling Smørgrav.Dq start 430545d5ecaSDag-Erling Smørgrav(10) 431545d5ecaSDag-Erling Smørgravunauthenticated connections. 432545d5ecaSDag-Erling SmørgravThe probability increases linearly and all connection attempts 433545d5ecaSDag-Erling Smørgravare refused if the number of unauthenticated connections reaches 434545d5ecaSDag-Erling Smørgrav.Dq full 435545d5ecaSDag-Erling Smørgrav(60). 436545d5ecaSDag-Erling Smørgrav.It Cm PasswordAuthentication 437545d5ecaSDag-Erling SmørgravSpecifies whether password authentication is allowed. 438545d5ecaSDag-Erling SmørgravThe default is 439b909c84bSDag-Erling Smørgrav.Dq no , 440b909c84bSDag-Erling Smørgravunless 441b909c84bSDag-Erling Smørgrav.Nm sshd 442b909c84bSDag-Erling Smørgravwas built without PAM support, in which case the default is 443545d5ecaSDag-Erling Smørgrav.Dq yes . 444b0a159ccSSimon L. B. NielsenNote that if 445810a15b1SDag-Erling Smørgrav.Cm ChallengeResponseAuthentication 446810a15b1SDag-Erling Smørgravis 447810a15b1SDag-Erling Smørgrav.Dq yes , 448810a15b1SDag-Erling Smørgravand the PAM authentication policy for 449810a15b1SDag-Erling Smørgrav.Nm sshd 450810a15b1SDag-Erling Smørgravincludes 451810a15b1SDag-Erling Smørgrav.Xr pam_unix 8 , 452810a15b1SDag-Erling Smørgravpassword authentication will be allowed through the challenge-response 453810a15b1SDag-Erling Smørgravmechanism regardless of the value of 454810a15b1SDag-Erling Smørgrav.Cm PasswordAuthentication . 455545d5ecaSDag-Erling Smørgrav.It Cm PermitEmptyPasswords 456545d5ecaSDag-Erling SmørgravWhen password authentication is allowed, it specifies whether the 457545d5ecaSDag-Erling Smørgravserver allows login to accounts with empty password strings. 458545d5ecaSDag-Erling SmørgravThe default is 459545d5ecaSDag-Erling Smørgrav.Dq no . 460545d5ecaSDag-Erling Smørgrav.It Cm PermitRootLogin 461545d5ecaSDag-Erling SmørgravSpecifies whether root can login using 462545d5ecaSDag-Erling Smørgrav.Xr ssh 1 . 463545d5ecaSDag-Erling SmørgravThe argument must be 464545d5ecaSDag-Erling Smørgrav.Dq yes , 465545d5ecaSDag-Erling Smørgrav.Dq without-password , 466545d5ecaSDag-Erling Smørgrav.Dq forced-commands-only 467545d5ecaSDag-Erling Smørgravor 468545d5ecaSDag-Erling Smørgrav.Dq no . 469545d5ecaSDag-Erling SmørgravThe default is 47035d4ccfbSDag-Erling Smørgrav.Dq no . 471810a15b1SDag-Erling SmørgravNote that if 472810a15b1SDag-Erling Smørgrav.Cm ChallengeResponseAuthentication 473810a15b1SDag-Erling Smørgravis 474810a15b1SDag-Erling Smørgrav.Dq yes , 475810a15b1SDag-Erling Smørgravthe root user may be allowed in with its password even if 476810a15b1SDag-Erling Smørgrav.Cm PermitRootLogin is set to 477810a15b1SDag-Erling Smørgrav.Dq without-password . 478545d5ecaSDag-Erling Smørgrav.Pp 479545d5ecaSDag-Erling SmørgravIf this option is set to 480545d5ecaSDag-Erling Smørgrav.Dq without-password 481545d5ecaSDag-Erling Smørgravpassword authentication is disabled for root. 482545d5ecaSDag-Erling Smørgrav.Pp 483545d5ecaSDag-Erling SmørgravIf this option is set to 484545d5ecaSDag-Erling Smørgrav.Dq forced-commands-only 485545d5ecaSDag-Erling Smørgravroot login with public key authentication will be allowed, 486545d5ecaSDag-Erling Smørgravbut only if the 487545d5ecaSDag-Erling Smørgrav.Ar command 488545d5ecaSDag-Erling Smørgravoption has been specified 489545d5ecaSDag-Erling Smørgrav(which may be useful for taking remote backups even if root login is 490cf2b5f3bSDag-Erling Smørgravnormally not allowed). 491cf2b5f3bSDag-Erling SmørgravAll other authentication methods are disabled for root. 492545d5ecaSDag-Erling Smørgrav.Pp 493545d5ecaSDag-Erling SmørgravIf this option is set to 494545d5ecaSDag-Erling Smørgrav.Dq no 495545d5ecaSDag-Erling Smørgravroot is not allowed to login. 496f388f5efSDag-Erling Smørgrav.It Cm PermitUserEnvironment 497f388f5efSDag-Erling SmørgravSpecifies whether 498f388f5efSDag-Erling Smørgrav.Pa ~/.ssh/environment 499f388f5efSDag-Erling Smørgravand 500f388f5efSDag-Erling Smørgrav.Cm environment= 501f388f5efSDag-Erling Smørgravoptions in 502f388f5efSDag-Erling Smørgrav.Pa ~/.ssh/authorized_keys 503f388f5efSDag-Erling Smørgravare processed by 504f388f5efSDag-Erling Smørgrav.Nm sshd . 505f388f5efSDag-Erling SmørgravThe default is 506f388f5efSDag-Erling Smørgrav.Dq no . 507f388f5efSDag-Erling SmørgravEnabling environment processing may enable users to bypass access 508f388f5efSDag-Erling Smørgravrestrictions in some configurations using mechanisms such as 509f388f5efSDag-Erling Smørgrav.Ev LD_PRELOAD . 510545d5ecaSDag-Erling Smørgrav.It Cm PidFile 511a82e551fSDag-Erling SmørgravSpecifies the file that contains the process ID of the 512545d5ecaSDag-Erling Smørgrav.Nm sshd 513545d5ecaSDag-Erling Smørgravdaemon. 514545d5ecaSDag-Erling SmørgravThe default is 515545d5ecaSDag-Erling Smørgrav.Pa /var/run/sshd.pid . 516545d5ecaSDag-Erling Smørgrav.It Cm Port 517545d5ecaSDag-Erling SmørgravSpecifies the port number that 518545d5ecaSDag-Erling Smørgrav.Nm sshd 519545d5ecaSDag-Erling Smørgravlistens on. 520545d5ecaSDag-Erling SmørgravThe default is 22. 521545d5ecaSDag-Erling SmørgravMultiple options of this type are permitted. 522545d5ecaSDag-Erling SmørgravSee also 523545d5ecaSDag-Erling Smørgrav.Cm ListenAddress . 524545d5ecaSDag-Erling Smørgrav.It Cm PrintLastLog 525545d5ecaSDag-Erling SmørgravSpecifies whether 526545d5ecaSDag-Erling Smørgrav.Nm sshd 527545d5ecaSDag-Erling Smørgravshould print the date and time when the user last logged in. 528545d5ecaSDag-Erling SmørgravThe default is 529545d5ecaSDag-Erling Smørgrav.Dq yes . 530545d5ecaSDag-Erling Smørgrav.It Cm PrintMotd 531545d5ecaSDag-Erling SmørgravSpecifies whether 532545d5ecaSDag-Erling Smørgrav.Nm sshd 533545d5ecaSDag-Erling Smørgravshould print 534545d5ecaSDag-Erling Smørgrav.Pa /etc/motd 535545d5ecaSDag-Erling Smørgravwhen a user logs in interactively. 536545d5ecaSDag-Erling Smørgrav(On some systems it is also printed by the shell, 537545d5ecaSDag-Erling Smørgrav.Pa /etc/profile , 538545d5ecaSDag-Erling Smørgravor equivalent.) 539545d5ecaSDag-Erling SmørgravThe default is 540545d5ecaSDag-Erling Smørgrav.Dq yes . 541545d5ecaSDag-Erling Smørgrav.It Cm Protocol 542545d5ecaSDag-Erling SmørgravSpecifies the protocol versions 543545d5ecaSDag-Erling Smørgrav.Nm sshd 544f388f5efSDag-Erling Smørgravsupports. 545545d5ecaSDag-Erling SmørgravThe possible values are 546545d5ecaSDag-Erling Smørgrav.Dq 1 547545d5ecaSDag-Erling Smørgravand 548545d5ecaSDag-Erling Smørgrav.Dq 2 . 549545d5ecaSDag-Erling SmørgravMultiple versions must be comma-separated. 550545d5ecaSDag-Erling SmørgravThe default is 551028c324aSDag-Erling Smørgrav.Dq 2 . 552f388f5efSDag-Erling SmørgravNote that the order of the protocol list does not indicate preference, 553f388f5efSDag-Erling Smørgravbecause the client selects among multiple protocol versions offered 554f388f5efSDag-Erling Smørgravby the server. 555f388f5efSDag-Erling SmørgravSpecifying 556f388f5efSDag-Erling Smørgrav.Dq 2,1 557f388f5efSDag-Erling Smørgravis identical to 558f388f5efSDag-Erling Smørgrav.Dq 1,2 . 559545d5ecaSDag-Erling Smørgrav.It Cm PubkeyAuthentication 560545d5ecaSDag-Erling SmørgravSpecifies whether public key authentication is allowed. 561545d5ecaSDag-Erling SmørgravThe default is 562545d5ecaSDag-Erling Smørgrav.Dq yes . 563545d5ecaSDag-Erling SmørgravNote that this option applies to protocol version 2 only. 564545d5ecaSDag-Erling Smørgrav.It Cm RhostsRSAAuthentication 56535d4ccfbSDag-Erling SmørgravSpecifies whether rhosts or 56635d4ccfbSDag-Erling Smørgrav.Pa /etc/hosts.equiv 56735d4ccfbSDag-Erling Smørgravauthentication together 568545d5ecaSDag-Erling Smørgravwith successful RSA host authentication is allowed. 569545d5ecaSDag-Erling SmørgravThe default is 570545d5ecaSDag-Erling Smørgrav.Dq no . 571545d5ecaSDag-Erling SmørgravThis option applies to protocol version 1 only. 572545d5ecaSDag-Erling Smørgrav.It Cm RSAAuthentication 573545d5ecaSDag-Erling SmørgravSpecifies whether pure RSA authentication is allowed. 574545d5ecaSDag-Erling SmørgravThe default is 575545d5ecaSDag-Erling Smørgrav.Dq yes . 576545d5ecaSDag-Erling SmørgravThis option applies to protocol version 1 only. 577545d5ecaSDag-Erling Smørgrav.It Cm ServerKeyBits 578545d5ecaSDag-Erling SmørgravDefines the number of bits in the ephemeral protocol version 1 server key. 579545d5ecaSDag-Erling SmørgravThe minimum value is 512, and the default is 768. 580545d5ecaSDag-Erling Smørgrav.It Cm StrictModes 581545d5ecaSDag-Erling SmørgravSpecifies whether 582545d5ecaSDag-Erling Smørgrav.Nm sshd 583545d5ecaSDag-Erling Smørgravshould check file modes and ownership of the 584545d5ecaSDag-Erling Smørgravuser's files and home directory before accepting login. 585545d5ecaSDag-Erling SmørgravThis is normally desirable because novices sometimes accidentally leave their 586545d5ecaSDag-Erling Smørgravdirectory or files world-writable. 587545d5ecaSDag-Erling SmørgravThe default is 588545d5ecaSDag-Erling Smørgrav.Dq yes . 589545d5ecaSDag-Erling Smørgrav.It Cm Subsystem 590545d5ecaSDag-Erling SmørgravConfigures an external subsystem (e.g., file transfer daemon). 591545d5ecaSDag-Erling SmørgravArguments should be a subsystem name and a command to execute upon subsystem 592545d5ecaSDag-Erling Smørgravrequest. 593545d5ecaSDag-Erling SmørgravThe command 594545d5ecaSDag-Erling Smørgrav.Xr sftp-server 8 595545d5ecaSDag-Erling Smørgravimplements the 596545d5ecaSDag-Erling Smørgrav.Dq sftp 597545d5ecaSDag-Erling Smørgravfile transfer subsystem. 598545d5ecaSDag-Erling SmørgravBy default no subsystems are defined. 599545d5ecaSDag-Erling SmørgravNote that this option applies to protocol version 2 only. 600545d5ecaSDag-Erling Smørgrav.It Cm SyslogFacility 601545d5ecaSDag-Erling SmørgravGives the facility code that is used when logging messages from 602545d5ecaSDag-Erling Smørgrav.Nm sshd . 603545d5ecaSDag-Erling SmørgravThe possible values are: DAEMON, USER, AUTH, LOCAL0, LOCAL1, LOCAL2, 604545d5ecaSDag-Erling SmørgravLOCAL3, LOCAL4, LOCAL5, LOCAL6, LOCAL7. 605545d5ecaSDag-Erling SmørgravThe default is AUTH. 606cf2b5f3bSDag-Erling Smørgrav.It Cm UseDNS 607cf2b5f3bSDag-Erling SmørgravSpecifies whether 608cf2b5f3bSDag-Erling Smørgrav.Nm sshd 609cf2b5f3bSDag-Erling Smørgravshould lookup the remote host name and check that 610cf2b5f3bSDag-Erling Smørgravthe resolved host name for the remote IP address maps back to the 611cf2b5f3bSDag-Erling Smørgravvery same IP address. 612cf2b5f3bSDag-Erling SmørgravThe default is 613cf2b5f3bSDag-Erling Smørgrav.Dq yes . 614545d5ecaSDag-Erling Smørgrav.It Cm UseLogin 615545d5ecaSDag-Erling SmørgravSpecifies whether 616545d5ecaSDag-Erling Smørgrav.Xr login 1 617545d5ecaSDag-Erling Smørgravis used for interactive login sessions. 618545d5ecaSDag-Erling SmørgravThe default is 619545d5ecaSDag-Erling Smørgrav.Dq no . 620545d5ecaSDag-Erling SmørgravNote that 621545d5ecaSDag-Erling Smørgrav.Xr login 1 622545d5ecaSDag-Erling Smørgravis never used for remote command execution. 623545d5ecaSDag-Erling SmørgravNote also, that if this is enabled, 624545d5ecaSDag-Erling Smørgrav.Cm X11Forwarding 625545d5ecaSDag-Erling Smørgravwill be disabled because 626545d5ecaSDag-Erling Smørgrav.Xr login 1 627545d5ecaSDag-Erling Smørgravdoes not know how to handle 628545d5ecaSDag-Erling Smørgrav.Xr xauth 1 629e73e9afaSDag-Erling Smørgravcookies. 630e73e9afaSDag-Erling SmørgravIf 631545d5ecaSDag-Erling Smørgrav.Cm UsePrivilegeSeparation 632545d5ecaSDag-Erling Smørgravis specified, it will be disabled after authentication. 633cf2b5f3bSDag-Erling Smørgrav.It Cm UsePAM 634cf2b5f3bSDag-Erling SmørgravEnables PAM authentication (via challenge-response) and session set up. 635cf2b5f3bSDag-Erling SmørgravIf you enable this, you should probably disable 636cf2b5f3bSDag-Erling Smørgrav.Cm PasswordAuthentication . 637cf2b5f3bSDag-Erling SmørgravIf you enable 638cf2b5f3bSDag-Erling Smørgrav.CM UsePAM 639cf2b5f3bSDag-Erling Smørgravthen you will not be able to run sshd as a non-root user. 640545d5ecaSDag-Erling Smørgrav.It Cm UsePrivilegeSeparation 641545d5ecaSDag-Erling SmørgravSpecifies whether 642545d5ecaSDag-Erling Smørgrav.Nm sshd 643545d5ecaSDag-Erling Smørgravseparates privileges by creating an unprivileged child process 644e73e9afaSDag-Erling Smørgravto deal with incoming network traffic. 645e73e9afaSDag-Erling SmørgravAfter successful authentication, another process will be created that has 646e73e9afaSDag-Erling Smørgravthe privilege of the authenticated user. 647e73e9afaSDag-Erling SmørgravThe goal of privilege separation is to prevent privilege 648545d5ecaSDag-Erling Smørgravescalation by containing any corruption within the unprivileged processes. 649545d5ecaSDag-Erling SmørgravThe default is 650545d5ecaSDag-Erling Smørgrav.Dq yes . 65135d4ccfbSDag-Erling Smørgrav.It Cm VersionAddendum 65235d4ccfbSDag-Erling SmørgravSpecifies a string to append to the regular version string to identify 65335d4ccfbSDag-Erling SmørgravOS- or site-specific modifications. 654ee8aeb14SDag-Erling SmørgravThe default is 655cf2b5f3bSDag-Erling Smørgrav.Dq FreeBSD-20040106 . 656545d5ecaSDag-Erling Smørgrav.It Cm X11DisplayOffset 657545d5ecaSDag-Erling SmørgravSpecifies the first display number available for 658545d5ecaSDag-Erling Smørgrav.Nm sshd Ns 's 659545d5ecaSDag-Erling SmørgravX11 forwarding. 660545d5ecaSDag-Erling SmørgravThis prevents 661545d5ecaSDag-Erling Smørgrav.Nm sshd 662545d5ecaSDag-Erling Smørgravfrom interfering with real X11 servers. 663545d5ecaSDag-Erling SmørgravThe default is 10. 664545d5ecaSDag-Erling Smørgrav.It Cm X11Forwarding 665545d5ecaSDag-Erling SmørgravSpecifies whether X11 forwarding is permitted. 666f388f5efSDag-Erling SmørgravThe argument must be 667f388f5efSDag-Erling Smørgrav.Dq yes 668f388f5efSDag-Erling Smørgravor 669f388f5efSDag-Erling Smørgrav.Dq no . 670545d5ecaSDag-Erling SmørgravThe default is 671ee8aeb14SDag-Erling Smørgrav.Dq yes . 672f388f5efSDag-Erling Smørgrav.Pp 673f388f5efSDag-Erling SmørgravWhen X11 forwarding is enabled, there may be additional exposure to 674f388f5efSDag-Erling Smørgravthe server and to client displays if the 675f388f5efSDag-Erling Smørgrav.Nm sshd 676f388f5efSDag-Erling Smørgravproxy display is configured to listen on the wildcard address (see 677f388f5efSDag-Erling Smørgrav.Cm X11UseLocalhost 678f388f5efSDag-Erling Smørgravbelow), however this is not the default. 679f388f5efSDag-Erling SmørgravAdditionally, the authentication spoofing and authentication data 680f388f5efSDag-Erling Smørgravverification and substitution occur on the client side. 681f388f5efSDag-Erling SmørgravThe security risk of using X11 forwarding is that the client's X11 682f388f5efSDag-Erling Smørgravdisplay server may be exposed to attack when the ssh client requests 683f388f5efSDag-Erling Smørgravforwarding (see the warnings for 684f388f5efSDag-Erling Smørgrav.Cm ForwardX11 685f388f5efSDag-Erling Smørgravin 686f388f5efSDag-Erling Smørgrav.Xr ssh_config 5 ) . 687f388f5efSDag-Erling SmørgravA system administrator may have a stance in which they want to 688f388f5efSDag-Erling Smørgravprotect clients that may expose themselves to attack by unwittingly 689f388f5efSDag-Erling Smørgravrequesting X11 forwarding, which can warrant a 690f388f5efSDag-Erling Smørgrav.Dq no 691f388f5efSDag-Erling Smørgravsetting. 692f388f5efSDag-Erling Smørgrav.Pp 693f388f5efSDag-Erling SmørgravNote that disabling X11 forwarding does not prevent users from 694f388f5efSDag-Erling Smørgravforwarding X11 traffic, as users can always install their own forwarders. 695545d5ecaSDag-Erling SmørgravX11 forwarding is automatically disabled if 696545d5ecaSDag-Erling Smørgrav.Cm UseLogin 697545d5ecaSDag-Erling Smørgravis enabled. 698545d5ecaSDag-Erling Smørgrav.It Cm X11UseLocalhost 699545d5ecaSDag-Erling SmørgravSpecifies whether 700545d5ecaSDag-Erling Smørgrav.Nm sshd 701545d5ecaSDag-Erling Smørgravshould bind the X11 forwarding server to the loopback address or to 702e73e9afaSDag-Erling Smørgravthe wildcard address. 703e73e9afaSDag-Erling SmørgravBy default, 704545d5ecaSDag-Erling Smørgrav.Nm sshd 705545d5ecaSDag-Erling Smørgravbinds the forwarding server to the loopback address and sets the 706545d5ecaSDag-Erling Smørgravhostname part of the 707545d5ecaSDag-Erling Smørgrav.Ev DISPLAY 708545d5ecaSDag-Erling Smørgravenvironment variable to 709545d5ecaSDag-Erling Smørgrav.Dq localhost . 710f388f5efSDag-Erling SmørgravThis prevents remote hosts from connecting to the proxy display. 711545d5ecaSDag-Erling SmørgravHowever, some older X11 clients may not function with this 712545d5ecaSDag-Erling Smørgravconfiguration. 713545d5ecaSDag-Erling Smørgrav.Cm X11UseLocalhost 714545d5ecaSDag-Erling Smørgravmay be set to 715545d5ecaSDag-Erling Smørgrav.Dq no 716545d5ecaSDag-Erling Smørgravto specify that the forwarding server should be bound to the wildcard 717545d5ecaSDag-Erling Smørgravaddress. 718545d5ecaSDag-Erling SmørgravThe argument must be 719545d5ecaSDag-Erling Smørgrav.Dq yes 720545d5ecaSDag-Erling Smørgravor 721545d5ecaSDag-Erling Smørgrav.Dq no . 722545d5ecaSDag-Erling SmørgravThe default is 723545d5ecaSDag-Erling Smørgrav.Dq yes . 724545d5ecaSDag-Erling Smørgrav.It Cm XAuthLocation 725f388f5efSDag-Erling SmørgravSpecifies the full pathname of the 726545d5ecaSDag-Erling Smørgrav.Xr xauth 1 727545d5ecaSDag-Erling Smørgravprogram. 728545d5ecaSDag-Erling SmørgravThe default is 729545d5ecaSDag-Erling Smørgrav.Pa /usr/X11R6/bin/xauth . 730545d5ecaSDag-Erling Smørgrav.El 731545d5ecaSDag-Erling Smørgrav.Ss Time Formats 732545d5ecaSDag-Erling Smørgrav.Nm sshd 733545d5ecaSDag-Erling Smørgravcommand-line arguments and configuration file options that specify time 734545d5ecaSDag-Erling Smørgravmay be expressed using a sequence of the form: 735545d5ecaSDag-Erling Smørgrav.Sm off 736f388f5efSDag-Erling Smørgrav.Ar time Op Ar qualifier , 737545d5ecaSDag-Erling Smørgrav.Sm on 738545d5ecaSDag-Erling Smørgravwhere 739545d5ecaSDag-Erling Smørgrav.Ar time 740545d5ecaSDag-Erling Smørgravis a positive integer value and 741545d5ecaSDag-Erling Smørgrav.Ar qualifier 742545d5ecaSDag-Erling Smørgravis one of the following: 743545d5ecaSDag-Erling Smørgrav.Pp 744545d5ecaSDag-Erling Smørgrav.Bl -tag -width Ds -compact -offset indent 745545d5ecaSDag-Erling Smørgrav.It Cm <none> 746545d5ecaSDag-Erling Smørgravseconds 747545d5ecaSDag-Erling Smørgrav.It Cm s | Cm S 748545d5ecaSDag-Erling Smørgravseconds 749545d5ecaSDag-Erling Smørgrav.It Cm m | Cm M 750545d5ecaSDag-Erling Smørgravminutes 751545d5ecaSDag-Erling Smørgrav.It Cm h | Cm H 752545d5ecaSDag-Erling Smørgravhours 753545d5ecaSDag-Erling Smørgrav.It Cm d | Cm D 754545d5ecaSDag-Erling Smørgravdays 755545d5ecaSDag-Erling Smørgrav.It Cm w | Cm W 756545d5ecaSDag-Erling Smørgravweeks 757545d5ecaSDag-Erling Smørgrav.El 758545d5ecaSDag-Erling Smørgrav.Pp 759545d5ecaSDag-Erling SmørgravEach member of the sequence is added together to calculate 760545d5ecaSDag-Erling Smørgravthe total time value. 761545d5ecaSDag-Erling Smørgrav.Pp 762545d5ecaSDag-Erling SmørgravTime format examples: 763545d5ecaSDag-Erling Smørgrav.Pp 764545d5ecaSDag-Erling Smørgrav.Bl -tag -width Ds -compact -offset indent 765545d5ecaSDag-Erling Smørgrav.It 600 766545d5ecaSDag-Erling Smørgrav600 seconds (10 minutes) 767545d5ecaSDag-Erling Smørgrav.It 10m 768545d5ecaSDag-Erling Smørgrav10 minutes 769545d5ecaSDag-Erling Smørgrav.It 1h30m 770545d5ecaSDag-Erling Smørgrav1 hour 30 minutes (90 minutes) 771545d5ecaSDag-Erling Smørgrav.El 772545d5ecaSDag-Erling Smørgrav.Sh FILES 773545d5ecaSDag-Erling Smørgrav.Bl -tag -width Ds 774545d5ecaSDag-Erling Smørgrav.It Pa /etc/ssh/sshd_config 775545d5ecaSDag-Erling SmørgravContains configuration data for 776545d5ecaSDag-Erling Smørgrav.Nm sshd . 777545d5ecaSDag-Erling SmørgravThis file should be writable by root only, but it is recommended 778545d5ecaSDag-Erling Smørgrav(though not necessary) that it be world-readable. 779545d5ecaSDag-Erling Smørgrav.El 780cf2b5f3bSDag-Erling Smørgrav.Sh SEE ALSO 781cf2b5f3bSDag-Erling Smørgrav.Xr sshd 8 782545d5ecaSDag-Erling Smørgrav.Sh AUTHORS 783545d5ecaSDag-Erling SmørgravOpenSSH is a derivative of the original and free 784545d5ecaSDag-Erling Smørgravssh 1.2.12 release by Tatu Ylonen. 785545d5ecaSDag-Erling SmørgravAaron Campbell, Bob Beck, Markus Friedl, Niels Provos, 786545d5ecaSDag-Erling SmørgravTheo de Raadt and Dug Song 787545d5ecaSDag-Erling Smørgravremoved many bugs, re-added newer features and 788545d5ecaSDag-Erling Smørgravcreated OpenSSH. 789545d5ecaSDag-Erling SmørgravMarkus Friedl contributed the support for SSH 790545d5ecaSDag-Erling Smørgravprotocol versions 1.5 and 2.0. 791545d5ecaSDag-Erling SmørgravNiels Provos and Markus Friedl contributed support 792545d5ecaSDag-Erling Smørgravfor privilege separation. 793