1545d5ecaSDag-Erling Smørgrav.\" 2545d5ecaSDag-Erling Smørgrav.\" Author: Tatu Ylonen <ylo@cs.hut.fi> 3545d5ecaSDag-Erling Smørgrav.\" Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland 4545d5ecaSDag-Erling Smørgrav.\" All rights reserved 5545d5ecaSDag-Erling Smørgrav.\" 6545d5ecaSDag-Erling Smørgrav.\" As far as I am concerned, the code I have written for this software 7545d5ecaSDag-Erling Smørgrav.\" can be used freely for any purpose. Any derived versions of this 8545d5ecaSDag-Erling Smørgrav.\" software must be clearly marked as such, and if the derived work is 9545d5ecaSDag-Erling Smørgrav.\" incompatible with the protocol description in the RFC file, it must be 10545d5ecaSDag-Erling Smørgrav.\" called by a name other than "ssh" or "Secure Shell". 11545d5ecaSDag-Erling Smørgrav.\" 12545d5ecaSDag-Erling Smørgrav.\" Copyright (c) 1999,2000 Markus Friedl. All rights reserved. 13545d5ecaSDag-Erling Smørgrav.\" Copyright (c) 1999 Aaron Campbell. All rights reserved. 14545d5ecaSDag-Erling Smørgrav.\" Copyright (c) 1999 Theo de Raadt. All rights reserved. 15545d5ecaSDag-Erling Smørgrav.\" 16545d5ecaSDag-Erling Smørgrav.\" Redistribution and use in source and binary forms, with or without 17545d5ecaSDag-Erling Smørgrav.\" modification, are permitted provided that the following conditions 18545d5ecaSDag-Erling Smørgrav.\" are met: 19545d5ecaSDag-Erling Smørgrav.\" 1. Redistributions of source code must retain the above copyright 20545d5ecaSDag-Erling Smørgrav.\" notice, this list of conditions and the following disclaimer. 21545d5ecaSDag-Erling Smørgrav.\" 2. Redistributions in binary form must reproduce the above copyright 22545d5ecaSDag-Erling Smørgrav.\" notice, this list of conditions and the following disclaimer in the 23545d5ecaSDag-Erling Smørgrav.\" documentation and/or other materials provided with the distribution. 24545d5ecaSDag-Erling Smørgrav.\" 25545d5ecaSDag-Erling Smørgrav.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 26545d5ecaSDag-Erling Smørgrav.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 27545d5ecaSDag-Erling Smørgrav.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 28545d5ecaSDag-Erling Smørgrav.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 29545d5ecaSDag-Erling Smørgrav.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 30545d5ecaSDag-Erling Smørgrav.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 31545d5ecaSDag-Erling Smørgrav.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 32545d5ecaSDag-Erling Smørgrav.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 33545d5ecaSDag-Erling Smørgrav.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 34545d5ecaSDag-Erling Smørgrav.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 35545d5ecaSDag-Erling Smørgrav.\" 36e9e8876aSEd Maste.\" $OpenBSD: sshd_config.5,v 1.335 2021/09/03 05:25:50 dtucker Exp $ 3735d4ccfbSDag-Erling Smørgrav.\" $FreeBSD$ 38*cea0d368SEd Maste.Dd $Mdocdate: December 4 2021 $ 39545d5ecaSDag-Erling Smørgrav.Dt SSHD_CONFIG 5 40545d5ecaSDag-Erling Smørgrav.Os 41545d5ecaSDag-Erling Smørgrav.Sh NAME 42545d5ecaSDag-Erling Smørgrav.Nm sshd_config 4319261079SEd Maste.Nd OpenSSH daemon configuration file 44545d5ecaSDag-Erling Smørgrav.Sh DESCRIPTION 45333ee039SDag-Erling Smørgrav.Xr sshd 8 46545d5ecaSDag-Erling Smørgravreads configuration data from 47545d5ecaSDag-Erling Smørgrav.Pa /etc/ssh/sshd_config 48545d5ecaSDag-Erling Smørgrav(or the file specified with 49545d5ecaSDag-Erling Smørgrav.Fl f 50545d5ecaSDag-Erling Smørgravon the command line). 51545d5ecaSDag-Erling SmørgravThe file contains keyword-argument pairs, one per line. 5247dd1d1bSDag-Erling SmørgravFor each keyword, the first obtained value will be used. 53545d5ecaSDag-Erling SmørgravLines starting with 54545d5ecaSDag-Erling Smørgrav.Ql # 55545d5ecaSDag-Erling Smørgravand empty lines are interpreted as comments. 56333ee039SDag-Erling SmørgravArguments may optionally be enclosed in double quotes 57333ee039SDag-Erling Smørgrav.Pq \&" 58333ee039SDag-Erling Smørgravin order to represent arguments containing spaces. 59545d5ecaSDag-Erling Smørgrav.Pp 60545d5ecaSDag-Erling SmørgravThe possible 61545d5ecaSDag-Erling Smørgravkeywords and their meanings are as follows (note that 62545d5ecaSDag-Erling Smørgravkeywords are case-insensitive and arguments are case-sensitive): 63545d5ecaSDag-Erling Smørgrav.Bl -tag -width Ds 6421e764dfSDag-Erling Smørgrav.It Cm AcceptEnv 6521e764dfSDag-Erling SmørgravSpecifies what environment variables sent by the client will be copied into 6621e764dfSDag-Erling Smørgravthe session's 6721e764dfSDag-Erling Smørgrav.Xr environ 7 . 6821e764dfSDag-Erling SmørgravSee 6921e764dfSDag-Erling Smørgrav.Cm SendEnv 70190cef3dSDag-Erling Smørgravand 71190cef3dSDag-Erling Smørgrav.Cm SetEnv 7221e764dfSDag-Erling Smørgravin 7321e764dfSDag-Erling Smørgrav.Xr ssh_config 5 7421e764dfSDag-Erling Smørgravfor how to configure the client. 75acc1a9efSDag-Erling SmørgravThe 76557f75e5SDag-Erling Smørgrav.Ev TERM 77190cef3dSDag-Erling Smørgravenvironment variable is always accepted whenever the client 78557f75e5SDag-Erling Smørgravrequests a pseudo-terminal as it is required by the protocol. 7921e764dfSDag-Erling SmørgravVariables are specified by name, which may contain the wildcard characters 80333ee039SDag-Erling Smørgrav.Ql * 8121e764dfSDag-Erling Smørgravand 8221e764dfSDag-Erling Smørgrav.Ql \&? . 8321e764dfSDag-Erling SmørgravMultiple environment variables may be separated by whitespace or spread 8421e764dfSDag-Erling Smørgravacross multiple 8521e764dfSDag-Erling Smørgrav.Cm AcceptEnv 8621e764dfSDag-Erling Smørgravdirectives. 8721e764dfSDag-Erling SmørgravBe warned that some environment variables could be used to bypass restricted 8821e764dfSDag-Erling Smørgravuser environments. 8921e764dfSDag-Erling SmørgravFor this reason, care should be taken in the use of this directive. 9021e764dfSDag-Erling SmørgravThe default is not to accept any environment variables. 91aa49c926SDag-Erling Smørgrav.It Cm AddressFamily 92aa49c926SDag-Erling SmørgravSpecifies which address family should be used by 93333ee039SDag-Erling Smørgrav.Xr sshd 8 . 94aa49c926SDag-Erling SmørgravValid arguments are 95ca86bcf2SDag-Erling Smørgrav.Cm any 96ca86bcf2SDag-Erling Smørgrav(the default), 97ca86bcf2SDag-Erling Smørgrav.Cm inet 98333ee039SDag-Erling Smørgrav(use IPv4 only), or 99ca86bcf2SDag-Erling Smørgrav.Cm inet6 100aa49c926SDag-Erling Smørgrav(use IPv6 only). 101d4af9e69SDag-Erling Smørgrav.It Cm AllowAgentForwarding 102d4af9e69SDag-Erling SmørgravSpecifies whether 103d4af9e69SDag-Erling Smørgrav.Xr ssh-agent 1 104d4af9e69SDag-Erling Smørgravforwarding is permitted. 105d4af9e69SDag-Erling SmørgravThe default is 106ca86bcf2SDag-Erling Smørgrav.Cm yes . 107d4af9e69SDag-Erling SmørgravNote that disabling agent forwarding does not improve security 108d4af9e69SDag-Erling Smørgravunless users are also denied shell access, as they can always install 109d4af9e69SDag-Erling Smørgravtheir own forwarders. 110545d5ecaSDag-Erling Smørgrav.It Cm AllowGroups 111545d5ecaSDag-Erling SmørgravThis keyword can be followed by a list of group name patterns, separated 112545d5ecaSDag-Erling Smørgravby spaces. 113545d5ecaSDag-Erling SmørgravIf specified, login is allowed only for users whose primary 114545d5ecaSDag-Erling Smørgravgroup or supplementary group list matches one of the patterns. 115545d5ecaSDag-Erling SmørgravOnly group names are valid; a numerical group ID is not recognized. 116545d5ecaSDag-Erling SmørgravBy default, login is allowed for all groups. 11719261079SEd MasteThe allow/deny groups directives are processed in the following order: 118333ee039SDag-Erling Smørgrav.Cm DenyGroups , 119333ee039SDag-Erling Smørgrav.Cm AllowGroups . 120333ee039SDag-Erling Smørgrav.Pp 121e4a9863fSDag-Erling SmørgravSee PATTERNS in 122333ee039SDag-Erling Smørgrav.Xr ssh_config 5 123333ee039SDag-Erling Smørgravfor more information on patterns. 124a0ee8cc6SDag-Erling Smørgrav.It Cm AllowStreamLocalForwarding 125a0ee8cc6SDag-Erling SmørgravSpecifies whether StreamLocal (Unix-domain socket) forwarding is permitted. 126a0ee8cc6SDag-Erling SmørgravThe available options are 127ca86bcf2SDag-Erling Smørgrav.Cm yes 128ca86bcf2SDag-Erling Smørgrav(the default) 129a0ee8cc6SDag-Erling Smørgravor 130ca86bcf2SDag-Erling Smørgrav.Cm all 131a0ee8cc6SDag-Erling Smørgravto allow StreamLocal forwarding, 132ca86bcf2SDag-Erling Smørgrav.Cm no 133a0ee8cc6SDag-Erling Smørgravto prevent all StreamLocal forwarding, 134ca86bcf2SDag-Erling Smørgrav.Cm local 135a0ee8cc6SDag-Erling Smørgravto allow local (from the perspective of 136a0ee8cc6SDag-Erling Smørgrav.Xr ssh 1 ) 137a0ee8cc6SDag-Erling Smørgravforwarding only or 138ca86bcf2SDag-Erling Smørgrav.Cm remote 139a0ee8cc6SDag-Erling Smørgravto allow remote forwarding only. 140a0ee8cc6SDag-Erling SmørgravNote that disabling StreamLocal forwarding does not improve security unless 141a0ee8cc6SDag-Erling Smørgravusers are also denied shell access, as they can always install their 142a0ee8cc6SDag-Erling Smørgravown forwarders. 143ca86bcf2SDag-Erling Smørgrav.It Cm AllowTcpForwarding 144ca86bcf2SDag-Erling SmørgravSpecifies whether TCP forwarding is permitted. 145ca86bcf2SDag-Erling SmørgravThe available options are 146ca86bcf2SDag-Erling Smørgrav.Cm yes 147ca86bcf2SDag-Erling Smørgrav(the default) 148ca86bcf2SDag-Erling Smørgravor 149ca86bcf2SDag-Erling Smørgrav.Cm all 150ca86bcf2SDag-Erling Smørgravto allow TCP forwarding, 151ca86bcf2SDag-Erling Smørgrav.Cm no 152ca86bcf2SDag-Erling Smørgravto prevent all TCP forwarding, 153ca86bcf2SDag-Erling Smørgrav.Cm local 154ca86bcf2SDag-Erling Smørgravto allow local (from the perspective of 155ca86bcf2SDag-Erling Smørgrav.Xr ssh 1 ) 156ca86bcf2SDag-Erling Smørgravforwarding only or 157ca86bcf2SDag-Erling Smørgrav.Cm remote 158ca86bcf2SDag-Erling Smørgravto allow remote forwarding only. 159ca86bcf2SDag-Erling SmørgravNote that disabling TCP forwarding does not improve security unless 160ca86bcf2SDag-Erling Smørgravusers are also denied shell access, as they can always install their 161ca86bcf2SDag-Erling Smørgravown forwarders. 162545d5ecaSDag-Erling Smørgrav.It Cm AllowUsers 163545d5ecaSDag-Erling SmørgravThis keyword can be followed by a list of user name patterns, separated 164545d5ecaSDag-Erling Smørgravby spaces. 165e73e9afaSDag-Erling SmørgravIf specified, login is allowed only for user names that 166545d5ecaSDag-Erling Smørgravmatch one of the patterns. 167545d5ecaSDag-Erling SmørgravOnly user names are valid; a numerical user ID is not recognized. 168545d5ecaSDag-Erling SmørgravBy default, login is allowed for all users. 169545d5ecaSDag-Erling SmørgravIf the pattern takes the form USER@HOST then USER and HOST 170545d5ecaSDag-Erling Smørgravare separately checked, restricting logins to particular 171545d5ecaSDag-Erling Smørgravusers from particular hosts. 172076ad2f8SDag-Erling SmørgravHOST criteria may additionally contain addresses to match in CIDR 173076ad2f8SDag-Erling Smørgravaddress/masklen format. 17419261079SEd MasteThe allow/deny users directives are processed in the following order: 175333ee039SDag-Erling Smørgrav.Cm DenyUsers , 17619261079SEd Maste.Cm AllowUsers . 177333ee039SDag-Erling Smørgrav.Pp 178e4a9863fSDag-Erling SmørgravSee PATTERNS in 179333ee039SDag-Erling Smørgrav.Xr ssh_config 5 180333ee039SDag-Erling Smørgravfor more information on patterns. 1816888a9beSDag-Erling Smørgrav.It Cm AuthenticationMethods 1826888a9beSDag-Erling SmørgravSpecifies the authentication methods that must be successfully completed 1836888a9beSDag-Erling Smørgravfor a user to be granted access. 184190cef3dSDag-Erling SmørgravThis option must be followed by one or more lists of comma-separated 185076ad2f8SDag-Erling Smørgravauthentication method names, or by the single string 186ca86bcf2SDag-Erling Smørgrav.Cm any 187076ad2f8SDag-Erling Smørgravto indicate the default behaviour of accepting any single authentication 188076ad2f8SDag-Erling Smørgravmethod. 189ca86bcf2SDag-Erling SmørgravIf the default is overridden, then successful authentication requires 190076ad2f8SDag-Erling Smørgravcompletion of every method in at least one of these lists. 1916888a9beSDag-Erling Smørgrav.Pp 192ca86bcf2SDag-Erling SmørgravFor example, 193ca86bcf2SDag-Erling Smørgrav.Qq publickey,password publickey,keyboard-interactive 1946888a9beSDag-Erling Smørgravwould require the user to complete public key authentication, followed by 1956888a9beSDag-Erling Smørgraveither password or keyboard interactive authentication. 1966888a9beSDag-Erling SmørgravOnly methods that are next in one or more lists are offered at each stage, 197ca86bcf2SDag-Erling Smørgravso for this example it would not be possible to attempt password or 1986888a9beSDag-Erling Smørgravkeyboard-interactive authentication before public key. 1996888a9beSDag-Erling Smørgrav.Pp 200e4a9863fSDag-Erling SmørgravFor keyboard interactive authentication it is also possible to 201e4a9863fSDag-Erling Smørgravrestrict authentication to a specific device by appending a 202e4a9863fSDag-Erling Smørgravcolon followed by the device identifier 203190cef3dSDag-Erling Smørgrav.Cm bsdauth 204e4a9863fSDag-Erling Smørgravor 205190cef3dSDag-Erling Smørgrav.Cm pam . 206e4a9863fSDag-Erling Smørgravdepending on the server configuration. 207e4a9863fSDag-Erling SmørgravFor example, 208ca86bcf2SDag-Erling Smørgrav.Qq keyboard-interactive:bsdauth 209e4a9863fSDag-Erling Smørgravwould restrict keyboard interactive authentication to the 210ca86bcf2SDag-Erling Smørgrav.Cm bsdauth 211e4a9863fSDag-Erling Smørgravdevice. 212e4a9863fSDag-Erling Smørgrav.Pp 213ca86bcf2SDag-Erling SmørgravIf the publickey method is listed more than once, 214bc5531deSDag-Erling Smørgrav.Xr sshd 8 215bc5531deSDag-Erling Smørgravverifies that keys that have been used successfully are not reused for 216bc5531deSDag-Erling Smørgravsubsequent authentications. 217ca86bcf2SDag-Erling SmørgravFor example, 218ca86bcf2SDag-Erling Smørgrav.Qq publickey,publickey 219ca86bcf2SDag-Erling Smørgravrequires successful authentication using two different public keys. 220bc5531deSDag-Erling Smørgrav.Pp 2216888a9beSDag-Erling SmørgravNote that each authentication method listed should also be explicitly enabled 2226888a9beSDag-Erling Smørgravin the configuration. 2234f52dfbbSDag-Erling Smørgrav.Pp 2244f52dfbbSDag-Erling SmørgravThe available authentication methods are: 2254f52dfbbSDag-Erling Smørgrav.Qq gssapi-with-mic , 2264f52dfbbSDag-Erling Smørgrav.Qq hostbased , 2274f52dfbbSDag-Erling Smørgrav.Qq keyboard-interactive , 2284f52dfbbSDag-Erling Smørgrav.Qq none 2294f52dfbbSDag-Erling Smørgrav(used for access to password-less accounts when 230190cef3dSDag-Erling Smørgrav.Cm PermitEmptyPasswords 2314f52dfbbSDag-Erling Smørgravis enabled), 2324f52dfbbSDag-Erling Smørgrav.Qq password 2334f52dfbbSDag-Erling Smørgravand 2344f52dfbbSDag-Erling Smørgrav.Qq publickey . 2356888a9beSDag-Erling Smørgrav.It Cm AuthorizedKeysCommand 2366888a9beSDag-Erling SmørgravSpecifies a program to be used to look up the user's public keys. 237557f75e5SDag-Erling SmørgravThe program must be owned by root, not writable by group or others and 238557f75e5SDag-Erling Smørgravspecified by an absolute path. 239557f75e5SDag-Erling SmørgravArguments to 240557f75e5SDag-Erling Smørgrav.Cm AuthorizedKeysCommand 241ca86bcf2SDag-Erling Smørgravaccept the tokens described in the 242ca86bcf2SDag-Erling Smørgrav.Sx TOKENS 243ca86bcf2SDag-Erling Smørgravsection. 244ca86bcf2SDag-Erling SmørgravIf no arguments are specified then the username of the target user is used. 245557f75e5SDag-Erling Smørgrav.Pp 246557f75e5SDag-Erling SmørgravThe program should produce on standard output zero or 247ca86bcf2SDag-Erling Smørgravmore lines of authorized_keys output (see 248ca86bcf2SDag-Erling Smørgrav.Sx AUTHORIZED_KEYS 249ca86bcf2SDag-Erling Smørgravin 2506888a9beSDag-Erling Smørgrav.Xr sshd 8 ) . 251ca86bcf2SDag-Erling Smørgrav.Cm AuthorizedKeysCommand 25219261079SEd Masteis tried after the usual 2536888a9beSDag-Erling Smørgrav.Cm AuthorizedKeysFile 25419261079SEd Mastefiles and will not be executed if a matching key is found there. 255ca86bcf2SDag-Erling SmørgravBy default, no 256ca86bcf2SDag-Erling Smørgrav.Cm AuthorizedKeysCommand 257ca86bcf2SDag-Erling Smørgravis run. 2586888a9beSDag-Erling Smørgrav.It Cm AuthorizedKeysCommandUser 259ca86bcf2SDag-Erling SmørgravSpecifies the user under whose account the 260ca86bcf2SDag-Erling Smørgrav.Cm AuthorizedKeysCommand 261ca86bcf2SDag-Erling Smørgravis run. 2626888a9beSDag-Erling SmørgravIt is recommended to use a dedicated user that has no other role on the host 2636888a9beSDag-Erling Smørgravthan running authorized keys commands. 264bc5531deSDag-Erling SmørgravIf 265bc5531deSDag-Erling Smørgrav.Cm AuthorizedKeysCommand 266bc5531deSDag-Erling Smørgravis specified but 267bc5531deSDag-Erling Smørgrav.Cm AuthorizedKeysCommandUser 268bc5531deSDag-Erling Smørgravis not, then 269bc5531deSDag-Erling Smørgrav.Xr sshd 8 270bc5531deSDag-Erling Smørgravwill refuse to start. 271545d5ecaSDag-Erling Smørgrav.It Cm AuthorizedKeysFile 272ca86bcf2SDag-Erling SmørgravSpecifies the file that contains the public keys used for user authentication. 27319261079SEd MasteThe format is described in the AUTHORIZED_KEYS FILE FORMAT section of 274e2f6069cSDag-Erling Smørgrav.Xr sshd 8 . 275ca86bcf2SDag-Erling SmørgravArguments to 276545d5ecaSDag-Erling Smørgrav.Cm AuthorizedKeysFile 277ca86bcf2SDag-Erling Smørgravaccept the tokens described in the 278ca86bcf2SDag-Erling Smørgrav.Sx TOKENS 279ca86bcf2SDag-Erling Smørgravsection. 280545d5ecaSDag-Erling SmørgravAfter expansion, 281545d5ecaSDag-Erling Smørgrav.Cm AuthorizedKeysFile 282545d5ecaSDag-Erling Smørgravis taken to be an absolute path or one relative to the user's home 283545d5ecaSDag-Erling Smørgravdirectory. 284e146993eSDag-Erling SmørgravMultiple files may be listed, separated by whitespace. 285acc1a9efSDag-Erling SmørgravAlternately this option may be set to 286ca86bcf2SDag-Erling Smørgrav.Cm none 287acc1a9efSDag-Erling Smørgravto skip checking for user keys in files. 288545d5ecaSDag-Erling SmørgravThe default is 289ca86bcf2SDag-Erling Smørgrav.Qq .ssh/authorized_keys .ssh/authorized_keys2 . 290557f75e5SDag-Erling Smørgrav.It Cm AuthorizedPrincipalsCommand 291557f75e5SDag-Erling SmørgravSpecifies a program to be used to generate the list of allowed 292557f75e5SDag-Erling Smørgravcertificate principals as per 293557f75e5SDag-Erling Smørgrav.Cm AuthorizedPrincipalsFile . 294557f75e5SDag-Erling SmørgravThe program must be owned by root, not writable by group or others and 295557f75e5SDag-Erling Smørgravspecified by an absolute path. 296557f75e5SDag-Erling SmørgravArguments to 297557f75e5SDag-Erling Smørgrav.Cm AuthorizedPrincipalsCommand 298ca86bcf2SDag-Erling Smørgravaccept the tokens described in the 299ca86bcf2SDag-Erling Smørgrav.Sx TOKENS 300ca86bcf2SDag-Erling Smørgravsection. 301ca86bcf2SDag-Erling SmørgravIf no arguments are specified then the username of the target user is used. 302557f75e5SDag-Erling Smørgrav.Pp 303557f75e5SDag-Erling SmørgravThe program should produce on standard output zero or 304557f75e5SDag-Erling Smørgravmore lines of 305557f75e5SDag-Erling Smørgrav.Cm AuthorizedPrincipalsFile 306557f75e5SDag-Erling Smørgravoutput. 307557f75e5SDag-Erling SmørgravIf either 308557f75e5SDag-Erling Smørgrav.Cm AuthorizedPrincipalsCommand 309557f75e5SDag-Erling Smørgravor 310557f75e5SDag-Erling Smørgrav.Cm AuthorizedPrincipalsFile 311557f75e5SDag-Erling Smørgravis specified, then certificates offered by the client for authentication 312557f75e5SDag-Erling Smørgravmust contain a principal that is listed. 313ca86bcf2SDag-Erling SmørgravBy default, no 314ca86bcf2SDag-Erling Smørgrav.Cm AuthorizedPrincipalsCommand 315ca86bcf2SDag-Erling Smørgravis run. 316557f75e5SDag-Erling Smørgrav.It Cm AuthorizedPrincipalsCommandUser 317ca86bcf2SDag-Erling SmørgravSpecifies the user under whose account the 318ca86bcf2SDag-Erling Smørgrav.Cm AuthorizedPrincipalsCommand 319ca86bcf2SDag-Erling Smørgravis run. 320557f75e5SDag-Erling SmørgravIt is recommended to use a dedicated user that has no other role on the host 321557f75e5SDag-Erling Smørgravthan running authorized principals commands. 322557f75e5SDag-Erling SmørgravIf 323557f75e5SDag-Erling Smørgrav.Cm AuthorizedPrincipalsCommand 324557f75e5SDag-Erling Smørgravis specified but 325557f75e5SDag-Erling Smørgrav.Cm AuthorizedPrincipalsCommandUser 326557f75e5SDag-Erling Smørgravis not, then 327557f75e5SDag-Erling Smørgrav.Xr sshd 8 328557f75e5SDag-Erling Smørgravwill refuse to start. 329e2f6069cSDag-Erling Smørgrav.It Cm AuthorizedPrincipalsFile 330e2f6069cSDag-Erling SmørgravSpecifies a file that lists principal names that are accepted for 331e2f6069cSDag-Erling Smørgravcertificate authentication. 332e2f6069cSDag-Erling SmørgravWhen using certificates signed by a key listed in 333e2f6069cSDag-Erling Smørgrav.Cm TrustedUserCAKeys , 334e2f6069cSDag-Erling Smørgravthis file lists names, one of which must appear in the certificate for it 335e2f6069cSDag-Erling Smørgravto be accepted for authentication. 336ca86bcf2SDag-Erling SmørgravNames are listed one per line preceded by key options (as described in 337ca86bcf2SDag-Erling Smørgrav.Sx AUTHORIZED_KEYS FILE FORMAT 338ca86bcf2SDag-Erling Smørgravin 339e2f6069cSDag-Erling Smørgrav.Xr sshd 8 ) . 340e2f6069cSDag-Erling SmørgravEmpty lines and comments starting with 341e2f6069cSDag-Erling Smørgrav.Ql # 342e2f6069cSDag-Erling Smørgravare ignored. 343e2f6069cSDag-Erling Smørgrav.Pp 344ca86bcf2SDag-Erling SmørgravArguments to 345e2f6069cSDag-Erling Smørgrav.Cm AuthorizedPrincipalsFile 346ca86bcf2SDag-Erling Smørgravaccept the tokens described in the 347ca86bcf2SDag-Erling Smørgrav.Sx TOKENS 348ca86bcf2SDag-Erling Smørgravsection. 349e2f6069cSDag-Erling SmørgravAfter expansion, 350e2f6069cSDag-Erling Smørgrav.Cm AuthorizedPrincipalsFile 351ca86bcf2SDag-Erling Smørgravis taken to be an absolute path or one relative to the user's home directory. 352462c32cbSDag-Erling SmørgravThe default is 353ca86bcf2SDag-Erling Smørgrav.Cm none , 354462c32cbSDag-Erling Smørgravi.e. not to use a principals file \(en in this case, the username 355e2f6069cSDag-Erling Smørgravof the user must appear in a certificate's principals list for it to be 356e2f6069cSDag-Erling Smørgravaccepted. 357ca86bcf2SDag-Erling Smørgrav.Pp 358e2f6069cSDag-Erling SmørgravNote that 359e2f6069cSDag-Erling Smørgrav.Cm AuthorizedPrincipalsFile 360e2f6069cSDag-Erling Smørgravis only used when authentication proceeds using a CA listed in 361e2f6069cSDag-Erling Smørgrav.Cm TrustedUserCAKeys 362e2f6069cSDag-Erling Smørgravand is not consulted for certification authorities trusted via 363e2f6069cSDag-Erling Smørgrav.Pa ~/.ssh/authorized_keys , 364e2f6069cSDag-Erling Smørgravthough the 365e2f6069cSDag-Erling Smørgrav.Cm principals= 366e2f6069cSDag-Erling Smørgravkey option offers a similar facility (see 367e2f6069cSDag-Erling Smørgrav.Xr sshd 8 368e2f6069cSDag-Erling Smørgravfor details). 369545d5ecaSDag-Erling Smørgrav.It Cm Banner 370545d5ecaSDag-Erling SmørgravThe contents of the specified file are sent to the remote user before 371545d5ecaSDag-Erling Smørgravauthentication is allowed. 372d4af9e69SDag-Erling SmørgravIf the argument is 373ca86bcf2SDag-Erling Smørgrav.Cm none 374d4af9e69SDag-Erling Smørgravthen no banner is displayed. 375545d5ecaSDag-Erling SmørgravBy default, no banner is displayed. 3762f513db7SEd Maste.It Cm CASignatureAlgorithms 3772f513db7SEd MasteSpecifies which algorithms are allowed for signing of certificates 3782f513db7SEd Masteby certificate authorities (CAs). 3792f513db7SEd MasteThe default is: 3802f513db7SEd Maste.Bd -literal -offset indent 38119261079SEd Mastessh-ed25519,ecdsa-sha2-nistp256, 38219261079SEd Masteecdsa-sha2-nistp384,ecdsa-sha2-nistp521, 38319261079SEd Mastesk-ssh-ed25519@openssh.com, 38419261079SEd Mastesk-ecdsa-sha2-nistp256@openssh.com, 38519261079SEd Mastersa-sha2-512,rsa-sha2-256 3862f513db7SEd Maste.Ed 3872f513db7SEd Maste.Pp 38819261079SEd MasteIf the specified list begins with a 38919261079SEd Maste.Sq + 39019261079SEd Mastecharacter, then the specified algorithms will be appended to the default set 39119261079SEd Masteinstead of replacing them. 39219261079SEd MasteIf the specified list begins with a 39319261079SEd Maste.Sq - 39419261079SEd Mastecharacter, then the specified algorithms (including wildcards) will be removed 39519261079SEd Mastefrom the default set instead of replacing them. 39619261079SEd Maste.Pp 3972f513db7SEd MasteCertificates signed using other algorithms will not be accepted for 3982f513db7SEd Mastepublic key or host-based authentication. 399d4af9e69SDag-Erling Smørgrav.It Cm ChrootDirectory 400b15c8340SDag-Erling SmørgravSpecifies the pathname of a directory to 401d4af9e69SDag-Erling Smørgrav.Xr chroot 2 402d4af9e69SDag-Erling Smørgravto after authentication. 403bc5531deSDag-Erling SmørgravAt session startup 404bc5531deSDag-Erling Smørgrav.Xr sshd 8 405bc5531deSDag-Erling Smørgravchecks that all components of the pathname are root-owned directories 406bc5531deSDag-Erling Smørgravwhich are not writable by any other user or group. 4077aee6ffeSDag-Erling SmørgravAfter the chroot, 4087aee6ffeSDag-Erling Smørgrav.Xr sshd 8 4097aee6ffeSDag-Erling Smørgravchanges the working directory to the user's home directory. 410ca86bcf2SDag-Erling SmørgravArguments to 411ca86bcf2SDag-Erling Smørgrav.Cm ChrootDirectory 412ca86bcf2SDag-Erling Smørgravaccept the tokens described in the 413ca86bcf2SDag-Erling Smørgrav.Sx TOKENS 414ca86bcf2SDag-Erling Smørgravsection. 415d4af9e69SDag-Erling Smørgrav.Pp 416d4af9e69SDag-Erling SmørgravThe 417d4af9e69SDag-Erling Smørgrav.Cm ChrootDirectory 418d4af9e69SDag-Erling Smørgravmust contain the necessary files and directories to support the 4197aee6ffeSDag-Erling Smørgravuser's session. 420d4af9e69SDag-Erling SmørgravFor an interactive session this requires at least a shell, typically 421d4af9e69SDag-Erling Smørgrav.Xr sh 1 , 422d4af9e69SDag-Erling Smørgravand basic 423d4af9e69SDag-Erling Smørgrav.Pa /dev 424d4af9e69SDag-Erling Smørgravnodes such as 425d4af9e69SDag-Erling Smørgrav.Xr null 4 , 426d4af9e69SDag-Erling Smørgrav.Xr zero 4 , 427d4af9e69SDag-Erling Smørgrav.Xr stdin 4 , 428d4af9e69SDag-Erling Smørgrav.Xr stdout 4 , 429d4af9e69SDag-Erling Smørgrav.Xr stderr 4 , 430d4af9e69SDag-Erling Smørgravand 431d4af9e69SDag-Erling Smørgrav.Xr tty 4 432d4af9e69SDag-Erling Smørgravdevices. 433ca86bcf2SDag-Erling SmørgravFor file transfer sessions using SFTP 434ca86bcf2SDag-Erling Smørgravno additional configuration of the environment is necessary if the in-process 435ca86bcf2SDag-Erling Smørgravsftp-server is used, 436a0ee8cc6SDag-Erling Smørgravthough sessions which use logging may require 4377aee6ffeSDag-Erling Smørgrav.Pa /dev/log 438a0ee8cc6SDag-Erling Smørgravinside the chroot directory on some operating systems (see 4397aee6ffeSDag-Erling Smørgrav.Xr sftp-server 8 440d4af9e69SDag-Erling Smørgravfor details). 441d4af9e69SDag-Erling Smørgrav.Pp 442bc5531deSDag-Erling SmørgravFor safety, it is very important that the directory hierarchy be 443bc5531deSDag-Erling Smørgravprevented from modification by other processes on the system (especially 444bc5531deSDag-Erling Smørgravthose outside the jail). 445bc5531deSDag-Erling SmørgravMisconfiguration can lead to unsafe environments which 446bc5531deSDag-Erling Smørgrav.Xr sshd 8 447bc5531deSDag-Erling Smørgravcannot detect. 448bc5531deSDag-Erling Smørgrav.Pp 449acc1a9efSDag-Erling SmørgravThe default is 450ca86bcf2SDag-Erling Smørgrav.Cm none , 451acc1a9efSDag-Erling Smørgravindicating not to 452d4af9e69SDag-Erling Smørgrav.Xr chroot 2 . 453545d5ecaSDag-Erling Smørgrav.It Cm Ciphers 454acc1a9efSDag-Erling SmørgravSpecifies the ciphers allowed. 455545d5ecaSDag-Erling SmørgravMultiple ciphers must be comma-separated. 45619261079SEd MasteIf the specified list begins with a 457eccfee6eSDag-Erling Smørgrav.Sq + 458eccfee6eSDag-Erling Smørgravcharacter, then the specified ciphers will be appended to the default set 459eccfee6eSDag-Erling Smørgravinstead of replacing them. 46019261079SEd MasteIf the specified list begins with a 461d93a896eSDag-Erling Smørgrav.Sq - 462d93a896eSDag-Erling Smørgravcharacter, then the specified ciphers (including wildcards) will be removed 463d93a896eSDag-Erling Smørgravfrom the default set instead of replacing them. 46419261079SEd MasteIf the specified list begins with a 46519261079SEd Maste.Sq ^ 46619261079SEd Mastecharacter, then the specified ciphers will be placed at the head of the 46719261079SEd Mastedefault set. 468eccfee6eSDag-Erling Smørgrav.Pp 469f7167e0eSDag-Erling SmørgravThe supported ciphers are: 470f7167e0eSDag-Erling Smørgrav.Pp 471a0ee8cc6SDag-Erling Smørgrav.Bl -item -compact -offset indent 472a0ee8cc6SDag-Erling Smørgrav.It 473a0ee8cc6SDag-Erling Smørgrav3des-cbc 474a0ee8cc6SDag-Erling Smørgrav.It 475a0ee8cc6SDag-Erling Smørgravaes128-cbc 476a0ee8cc6SDag-Erling Smørgrav.It 477a0ee8cc6SDag-Erling Smørgravaes192-cbc 478a0ee8cc6SDag-Erling Smørgrav.It 479a0ee8cc6SDag-Erling Smørgravaes256-cbc 480a0ee8cc6SDag-Erling Smørgrav.It 481a0ee8cc6SDag-Erling Smørgravaes128-ctr 482a0ee8cc6SDag-Erling Smørgrav.It 483a0ee8cc6SDag-Erling Smørgravaes192-ctr 484a0ee8cc6SDag-Erling Smørgrav.It 485a0ee8cc6SDag-Erling Smørgravaes256-ctr 486a0ee8cc6SDag-Erling Smørgrav.It 487a0ee8cc6SDag-Erling Smørgravaes128-gcm@openssh.com 488a0ee8cc6SDag-Erling Smørgrav.It 489a0ee8cc6SDag-Erling Smørgravaes256-gcm@openssh.com 490a0ee8cc6SDag-Erling Smørgrav.It 491a0ee8cc6SDag-Erling Smørgravchacha20-poly1305@openssh.com 492a0ee8cc6SDag-Erling Smørgrav.El 493f7167e0eSDag-Erling Smørgrav.Pp 494333ee039SDag-Erling SmørgravThe default is: 495a0ee8cc6SDag-Erling Smørgrav.Bd -literal -offset indent 496fc1ba28aSDag-Erling Smørgravchacha20-poly1305@openssh.com, 497a0ee8cc6SDag-Erling Smørgravaes128-ctr,aes192-ctr,aes256-ctr, 498952d18a2SEd Masteaes128-gcm@openssh.com,aes256-gcm@openssh.com 499545d5ecaSDag-Erling Smørgrav.Ed 500f7167e0eSDag-Erling Smørgrav.Pp 501ca86bcf2SDag-Erling SmørgravThe list of available ciphers may also be obtained using 502ca86bcf2SDag-Erling Smørgrav.Qq ssh -Q cipher . 503545d5ecaSDag-Erling Smørgrav.It Cm ClientAliveCountMax 504ca86bcf2SDag-Erling SmørgravSets the number of client alive messages which may be sent without 505333ee039SDag-Erling Smørgrav.Xr sshd 8 506cf2b5f3bSDag-Erling Smørgravreceiving any messages back from the client. 507cf2b5f3bSDag-Erling SmørgravIf this threshold is reached while client alive messages are being sent, 508333ee039SDag-Erling Smørgravsshd will disconnect the client, terminating the session. 509cf2b5f3bSDag-Erling SmørgravIt is important to note that the use of client alive messages is very 510cf2b5f3bSDag-Erling Smørgravdifferent from 511ca86bcf2SDag-Erling Smørgrav.Cm TCPKeepAlive . 512cf2b5f3bSDag-Erling SmørgravThe client alive messages are sent through the encrypted channel 513cf2b5f3bSDag-Erling Smørgravand therefore will not be spoofable. 514cf2b5f3bSDag-Erling SmørgravThe TCP keepalive option enabled by 5151ec0d754SDag-Erling Smørgrav.Cm TCPKeepAlive 516cf2b5f3bSDag-Erling Smørgravis spoofable. 517cf2b5f3bSDag-Erling SmørgravThe client alive mechanism is valuable when the client or 51819261079SEd Masteserver depend on knowing when a connection has become unresponsive. 519545d5ecaSDag-Erling Smørgrav.Pp 520cf2b5f3bSDag-Erling SmørgravThe default value is 3. 521cf2b5f3bSDag-Erling SmørgravIf 522545d5ecaSDag-Erling Smørgrav.Cm ClientAliveInterval 523ca86bcf2SDag-Erling Smørgravis set to 15, and 524545d5ecaSDag-Erling Smørgrav.Cm ClientAliveCountMax 525333ee039SDag-Erling Smørgravis left at the default, unresponsive SSH clients 526545d5ecaSDag-Erling Smørgravwill be disconnected after approximately 45 seconds. 52719261079SEd MasteSetting a zero 52819261079SEd Maste.Cm ClientAliveCountMax 52919261079SEd Mastedisables connection termination. 530d4ecd108SDag-Erling Smørgrav.It Cm ClientAliveInterval 531d4ecd108SDag-Erling SmørgravSets a timeout interval in seconds after which if no data has been received 532d4ecd108SDag-Erling Smørgravfrom the client, 533333ee039SDag-Erling Smørgrav.Xr sshd 8 534d4ecd108SDag-Erling Smørgravwill send a message through the encrypted 535d4ecd108SDag-Erling Smørgravchannel to request a response from the client. 536d4ecd108SDag-Erling SmørgravThe default 537d4ecd108SDag-Erling Smørgravis 0, indicating that these messages will not be sent to the client. 538545d5ecaSDag-Erling Smørgrav.It Cm Compression 539ca86bcf2SDag-Erling SmørgravSpecifies whether compression is enabled after 540d4ecd108SDag-Erling Smørgravthe user has authenticated successfully. 541545d5ecaSDag-Erling SmørgravThe argument must be 542ca86bcf2SDag-Erling Smørgrav.Cm yes , 543ca86bcf2SDag-Erling Smørgrav.Cm delayed 544ca86bcf2SDag-Erling Smørgrav(a legacy synonym for 545ca86bcf2SDag-Erling Smørgrav.Cm yes ) 546545d5ecaSDag-Erling Smørgravor 547ca86bcf2SDag-Erling Smørgrav.Cm no . 548545d5ecaSDag-Erling SmørgravThe default is 549ca86bcf2SDag-Erling Smørgrav.Cm yes . 550545d5ecaSDag-Erling Smørgrav.It Cm DenyGroups 551545d5ecaSDag-Erling SmørgravThis keyword can be followed by a list of group name patterns, separated 552545d5ecaSDag-Erling Smørgravby spaces. 553545d5ecaSDag-Erling SmørgravLogin is disallowed for users whose primary group or supplementary 554545d5ecaSDag-Erling Smørgravgroup list matches one of the patterns. 555545d5ecaSDag-Erling SmørgravOnly group names are valid; a numerical group ID is not recognized. 556545d5ecaSDag-Erling SmørgravBy default, login is allowed for all groups. 55719261079SEd MasteThe allow/deny groups directives are processed in the following order: 558333ee039SDag-Erling Smørgrav.Cm DenyGroups , 559333ee039SDag-Erling Smørgrav.Cm AllowGroups . 560333ee039SDag-Erling Smørgrav.Pp 561e4a9863fSDag-Erling SmørgravSee PATTERNS in 562333ee039SDag-Erling Smørgrav.Xr ssh_config 5 563333ee039SDag-Erling Smørgravfor more information on patterns. 564545d5ecaSDag-Erling Smørgrav.It Cm DenyUsers 565545d5ecaSDag-Erling SmørgravThis keyword can be followed by a list of user name patterns, separated 566545d5ecaSDag-Erling Smørgravby spaces. 567545d5ecaSDag-Erling SmørgravLogin is disallowed for user names that match one of the patterns. 568545d5ecaSDag-Erling SmørgravOnly user names are valid; a numerical user ID is not recognized. 569545d5ecaSDag-Erling SmørgravBy default, login is allowed for all users. 570545d5ecaSDag-Erling SmørgravIf the pattern takes the form USER@HOST then USER and HOST 571545d5ecaSDag-Erling Smørgravare separately checked, restricting logins to particular 572545d5ecaSDag-Erling Smørgravusers from particular hosts. 573076ad2f8SDag-Erling SmørgravHOST criteria may additionally contain addresses to match in CIDR 574076ad2f8SDag-Erling Smørgravaddress/masklen format. 57519261079SEd MasteThe allow/deny users directives are processed in the following order: 576333ee039SDag-Erling Smørgrav.Cm DenyUsers , 57719261079SEd Maste.Cm AllowUsers . 578333ee039SDag-Erling Smørgrav.Pp 579e4a9863fSDag-Erling SmørgravSee PATTERNS in 580333ee039SDag-Erling Smørgrav.Xr ssh_config 5 581333ee039SDag-Erling Smørgravfor more information on patterns. 582ca86bcf2SDag-Erling Smørgrav.It Cm DisableForwarding 583ca86bcf2SDag-Erling SmørgravDisables all forwarding features, including X11, 584ca86bcf2SDag-Erling Smørgrav.Xr ssh-agent 1 , 585ca86bcf2SDag-Erling SmørgravTCP and StreamLocal. 586ca86bcf2SDag-Erling SmørgravThis option overrides all other forwarding-related options and may 587ca86bcf2SDag-Erling Smørgravsimplify restricted configurations. 5884f52dfbbSDag-Erling Smørgrav.It Cm ExposeAuthInfo 5894f52dfbbSDag-Erling SmørgravWrites a temporary file containing a list of authentication methods and 5904f52dfbbSDag-Erling Smørgravpublic credentials (e.g. keys) used to authenticate the user. 5914f52dfbbSDag-Erling SmørgravThe location of the file is exposed to the user session through the 5924f52dfbbSDag-Erling Smørgrav.Ev SSH_USER_AUTH 5934f52dfbbSDag-Erling Smørgravenvironment variable. 5944f52dfbbSDag-Erling SmørgravThe default is 5954f52dfbbSDag-Erling Smørgrav.Cm no . 596bc5531deSDag-Erling Smørgrav.It Cm FingerprintHash 597bc5531deSDag-Erling SmørgravSpecifies the hash algorithm used when logging key fingerprints. 598bc5531deSDag-Erling SmørgravValid options are: 599ca86bcf2SDag-Erling Smørgrav.Cm md5 600bc5531deSDag-Erling Smørgravand 601ca86bcf2SDag-Erling Smørgrav.Cm sha256 . 602bc5531deSDag-Erling SmørgravThe default is 603ca86bcf2SDag-Erling Smørgrav.Cm sha256 . 604333ee039SDag-Erling Smørgrav.It Cm ForceCommand 605333ee039SDag-Erling SmørgravForces the execution of the command specified by 606333ee039SDag-Erling Smørgrav.Cm ForceCommand , 607d4af9e69SDag-Erling Smørgravignoring any command supplied by the client and 608d4af9e69SDag-Erling Smørgrav.Pa ~/.ssh/rc 609d4af9e69SDag-Erling Smørgravif present. 610333ee039SDag-Erling SmørgravThe command is invoked by using the user's login shell with the -c option. 611333ee039SDag-Erling SmørgravThis applies to shell, command, or subsystem execution. 612333ee039SDag-Erling SmørgravIt is most useful inside a 613333ee039SDag-Erling Smørgrav.Cm Match 614333ee039SDag-Erling Smørgravblock. 615333ee039SDag-Erling SmørgravThe command originally supplied by the client is available in the 616333ee039SDag-Erling Smørgrav.Ev SSH_ORIGINAL_COMMAND 617333ee039SDag-Erling Smørgravenvironment variable. 618d4af9e69SDag-Erling SmørgravSpecifying a command of 619ca86bcf2SDag-Erling Smørgrav.Cm internal-sftp 620ca86bcf2SDag-Erling Smørgravwill force the use of an in-process SFTP server that requires no support 621d4af9e69SDag-Erling Smørgravfiles when used with 622d4af9e69SDag-Erling Smørgrav.Cm ChrootDirectory . 623acc1a9efSDag-Erling SmørgravThe default is 624ca86bcf2SDag-Erling Smørgrav.Cm none . 625545d5ecaSDag-Erling Smørgrav.It Cm GatewayPorts 626545d5ecaSDag-Erling SmørgravSpecifies whether remote hosts are allowed to connect to ports 627545d5ecaSDag-Erling Smørgravforwarded for the client. 628545d5ecaSDag-Erling SmørgravBy default, 629333ee039SDag-Erling Smørgrav.Xr sshd 8 630e73e9afaSDag-Erling Smørgravbinds remote port forwardings to the loopback address. 631e73e9afaSDag-Erling SmørgravThis prevents other remote hosts from connecting to forwarded ports. 632545d5ecaSDag-Erling Smørgrav.Cm GatewayPorts 633333ee039SDag-Erling Smørgravcan be used to specify that sshd 634aa49c926SDag-Erling Smørgravshould allow remote port forwardings to bind to non-loopback addresses, thus 635aa49c926SDag-Erling Smørgravallowing other hosts to connect. 636aa49c926SDag-Erling SmørgravThe argument may be 637ca86bcf2SDag-Erling Smørgrav.Cm no 638aa49c926SDag-Erling Smørgravto force remote port forwardings to be available to the local host only, 639ca86bcf2SDag-Erling Smørgrav.Cm yes 640aa49c926SDag-Erling Smørgravto force remote port forwardings to bind to the wildcard address, or 641ca86bcf2SDag-Erling Smørgrav.Cm clientspecified 642aa49c926SDag-Erling Smørgravto allow the client to select the address to which the forwarding is bound. 643545d5ecaSDag-Erling SmørgravThe default is 644ca86bcf2SDag-Erling Smørgrav.Cm no . 645cf2b5f3bSDag-Erling Smørgrav.It Cm GSSAPIAuthentication 646cf2b5f3bSDag-Erling SmørgravSpecifies whether user authentication based on GSSAPI is allowed. 647cf2b5f3bSDag-Erling SmørgravThe default is 648ca86bcf2SDag-Erling Smørgrav.Cm no . 649cf2b5f3bSDag-Erling Smørgrav.It Cm GSSAPICleanupCredentials 650cf2b5f3bSDag-Erling SmørgravSpecifies whether to automatically destroy the user's credentials cache 651cf2b5f3bSDag-Erling Smørgravon logout. 652cf2b5f3bSDag-Erling SmørgravThe default is 653ca86bcf2SDag-Erling Smørgrav.Cm yes . 654557f75e5SDag-Erling Smørgrav.It Cm GSSAPIStrictAcceptorCheck 655557f75e5SDag-Erling SmørgravDetermines whether to be strict about the identity of the GSSAPI acceptor 656557f75e5SDag-Erling Smørgrava client authenticates against. 657557f75e5SDag-Erling SmørgravIf set to 658ca86bcf2SDag-Erling Smørgrav.Cm yes 659ca86bcf2SDag-Erling Smørgravthen the client must authenticate against the host 660557f75e5SDag-Erling Smørgravservice on the current hostname. 661557f75e5SDag-Erling SmørgravIf set to 662ca86bcf2SDag-Erling Smørgrav.Cm no 663557f75e5SDag-Erling Smørgravthen the client may authenticate against any service key stored in the 664557f75e5SDag-Erling Smørgravmachine's default store. 665557f75e5SDag-Erling SmørgravThis facility is provided to assist with operation on multi homed machines. 666557f75e5SDag-Erling SmørgravThe default is 667ca86bcf2SDag-Erling Smørgrav.Cm yes . 66819261079SEd Maste.It Cm HostbasedAcceptedAlgorithms 66919261079SEd MasteSpecifies the signature algorithms that will be accepted for hostbased 67019261079SEd Masteauthentication as a list of comma-separated patterns. 67119261079SEd MasteAlternately if the specified list begins with a 672eccfee6eSDag-Erling Smørgrav.Sq + 67319261079SEd Mastecharacter, then the specified signature algorithms will be appended to 67419261079SEd Mastethe default set instead of replacing them. 67519261079SEd MasteIf the specified list begins with a 676d93a896eSDag-Erling Smørgrav.Sq - 67719261079SEd Mastecharacter, then the specified signature algorithms (including wildcards) 67819261079SEd Mastewill be removed from the default set instead of replacing them. 67919261079SEd MasteIf the specified list begins with a 68019261079SEd Maste.Sq ^ 68119261079SEd Mastecharacter, then the specified signature algorithms will be placed at 68219261079SEd Mastethe head of the default set. 683eccfee6eSDag-Erling SmørgravThe default for this option is: 684eccfee6eSDag-Erling Smørgrav.Bd -literal -offset 3n 68519261079SEd Mastessh-ed25519-cert-v01@openssh.com, 686eccfee6eSDag-Erling Smørgravecdsa-sha2-nistp256-cert-v01@openssh.com, 687eccfee6eSDag-Erling Smørgravecdsa-sha2-nistp384-cert-v01@openssh.com, 688eccfee6eSDag-Erling Smørgravecdsa-sha2-nistp521-cert-v01@openssh.com, 68919261079SEd Mastesk-ssh-ed25519-cert-v01@openssh.com, 69019261079SEd Mastesk-ecdsa-sha2-nistp256-cert-v01@openssh.com, 69119261079SEd Mastersa-sha2-512-cert-v01@openssh.com, 69219261079SEd Mastersa-sha2-256-cert-v01@openssh.com, 69319261079SEd Mastessh-ed25519, 6949ded3306SDag-Erling Smørgravecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521, 69519261079SEd Mastesk-ssh-ed25519@openssh.com, 69619261079SEd Mastesk-ecdsa-sha2-nistp256@openssh.com, 697*cea0d368SEd Mastersa-sha2-512,rsa-sha2-256 698eccfee6eSDag-Erling Smørgrav.Ed 699eccfee6eSDag-Erling Smørgrav.Pp 70019261079SEd MasteThe list of available signature algorithms may also be obtained using 70119261079SEd Maste.Qq ssh -Q HostbasedAcceptedAlgorithms . 70219261079SEd MasteThis was formerly named HostbasedAcceptedKeyTypes. 703545d5ecaSDag-Erling Smørgrav.It Cm HostbasedAuthentication 704545d5ecaSDag-Erling SmørgravSpecifies whether rhosts or /etc/hosts.equiv authentication together 705545d5ecaSDag-Erling Smørgravwith successful public key client host authentication is allowed 706333ee039SDag-Erling Smørgrav(host-based authentication). 707545d5ecaSDag-Erling SmørgravThe default is 708ca86bcf2SDag-Erling Smørgrav.Cm no . 709333ee039SDag-Erling Smørgrav.It Cm HostbasedUsesNameFromPacketOnly 710333ee039SDag-Erling SmørgravSpecifies whether or not the server will attempt to perform a reverse 711333ee039SDag-Erling Smørgravname lookup when matching the name in the 712333ee039SDag-Erling Smørgrav.Pa ~/.shosts , 713333ee039SDag-Erling Smørgrav.Pa ~/.rhosts , 714333ee039SDag-Erling Smørgravand 715333ee039SDag-Erling Smørgrav.Pa /etc/hosts.equiv 716333ee039SDag-Erling Smørgravfiles during 717333ee039SDag-Erling Smørgrav.Cm HostbasedAuthentication . 718333ee039SDag-Erling SmørgravA setting of 719ca86bcf2SDag-Erling Smørgrav.Cm yes 720333ee039SDag-Erling Smørgravmeans that 721333ee039SDag-Erling Smørgrav.Xr sshd 8 722333ee039SDag-Erling Smørgravuses the name supplied by the client rather than 723333ee039SDag-Erling Smørgravattempting to resolve the name from the TCP connection itself. 724333ee039SDag-Erling SmørgravThe default is 725ca86bcf2SDag-Erling Smørgrav.Cm no . 726b15c8340SDag-Erling Smørgrav.It Cm HostCertificate 727b15c8340SDag-Erling SmørgravSpecifies a file containing a public host certificate. 728b15c8340SDag-Erling SmørgravThe certificate's public key must match a private host key already specified 729b15c8340SDag-Erling Smørgravby 730b15c8340SDag-Erling Smørgrav.Cm HostKey . 731b15c8340SDag-Erling SmørgravThe default behaviour of 732b15c8340SDag-Erling Smørgrav.Xr sshd 8 733b15c8340SDag-Erling Smørgravis not to load any certificates. 734545d5ecaSDag-Erling Smørgrav.It Cm HostKey 735545d5ecaSDag-Erling SmørgravSpecifies a file containing a private host key 736545d5ecaSDag-Erling Smørgravused by SSH. 737ca86bcf2SDag-Erling SmørgravThe defaults are 738f7167e0eSDag-Erling Smørgrav.Pa /etc/ssh/ssh_host_ecdsa_key , 739f7167e0eSDag-Erling Smørgrav.Pa /etc/ssh/ssh_host_ed25519_key 740d4af9e69SDag-Erling Smørgravand 741ca86bcf2SDag-Erling Smørgrav.Pa /etc/ssh/ssh_host_rsa_key . 742eccfee6eSDag-Erling Smørgrav.Pp 743545d5ecaSDag-Erling SmørgravNote that 744333ee039SDag-Erling Smørgrav.Xr sshd 8 745eccfee6eSDag-Erling Smørgravwill refuse to use a file if it is group/world-accessible 746eccfee6eSDag-Erling Smørgravand that the 747eccfee6eSDag-Erling Smørgrav.Cm HostKeyAlgorithms 748eccfee6eSDag-Erling Smørgravoption restricts which of the keys are actually used by 749eccfee6eSDag-Erling Smørgrav.Xr sshd 8 . 750eccfee6eSDag-Erling Smørgrav.Pp 751545d5ecaSDag-Erling SmørgravIt is possible to have multiple host key files. 752e4a9863fSDag-Erling SmørgravIt is also possible to specify public host key files instead. 753e4a9863fSDag-Erling SmørgravIn this case operations on the private key will be delegated 754e4a9863fSDag-Erling Smørgravto an 755e4a9863fSDag-Erling Smørgrav.Xr ssh-agent 1 . 756e4a9863fSDag-Erling Smørgrav.It Cm HostKeyAgent 757e4a9863fSDag-Erling SmørgravIdentifies the UNIX-domain socket used to communicate 758e4a9863fSDag-Erling Smørgravwith an agent that has access to the private host keys. 759076ad2f8SDag-Erling SmørgravIf the string 760ca86bcf2SDag-Erling Smørgrav.Qq SSH_AUTH_SOCK 761e4a9863fSDag-Erling Smørgravis specified, the location of the socket will be read from the 762e4a9863fSDag-Erling Smørgrav.Ev SSH_AUTH_SOCK 763e4a9863fSDag-Erling Smørgravenvironment variable. 764eccfee6eSDag-Erling Smørgrav.It Cm HostKeyAlgorithms 76519261079SEd MasteSpecifies the host key signature algorithms 766eccfee6eSDag-Erling Smørgravthat the server offers. 767eccfee6eSDag-Erling SmørgravThe default for this option is: 768eccfee6eSDag-Erling Smørgrav.Bd -literal -offset 3n 76919261079SEd Mastessh-ed25519-cert-v01@openssh.com, 770eccfee6eSDag-Erling Smørgravecdsa-sha2-nistp256-cert-v01@openssh.com, 771eccfee6eSDag-Erling Smørgravecdsa-sha2-nistp384-cert-v01@openssh.com, 772eccfee6eSDag-Erling Smørgravecdsa-sha2-nistp521-cert-v01@openssh.com, 77319261079SEd Mastesk-ssh-ed25519-cert-v01@openssh.com, 77419261079SEd Mastesk-ecdsa-sha2-nistp256-cert-v01@openssh.com, 77519261079SEd Mastersa-sha2-512-cert-v01@openssh.com, 77619261079SEd Mastersa-sha2-256-cert-v01@openssh.com, 77719261079SEd Mastessh-ed25519, 7789ded3306SDag-Erling Smørgravecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521, 77919261079SEd Mastesk-ssh-ed25519@openssh.com, 78019261079SEd Mastesk-ecdsa-sha2-nistp256@openssh.com, 781*cea0d368SEd Mastersa-sha2-512,rsa-sha2-256 782eccfee6eSDag-Erling Smørgrav.Ed 783eccfee6eSDag-Erling Smørgrav.Pp 78419261079SEd MasteThe list of available signature algorithms may also be obtained using 78519261079SEd Maste.Qq ssh -Q HostKeyAlgorithms . 786545d5ecaSDag-Erling Smørgrav.It Cm IgnoreRhosts 78719261079SEd MasteSpecifies whether to ignore per-user 788545d5ecaSDag-Erling Smørgrav.Pa .rhosts 789545d5ecaSDag-Erling Smørgravand 790545d5ecaSDag-Erling Smørgrav.Pa .shosts 79119261079SEd Mastefiles during 792545d5ecaSDag-Erling Smørgrav.Cm HostbasedAuthentication . 79319261079SEd MasteThe system-wide 794545d5ecaSDag-Erling Smørgrav.Pa /etc/hosts.equiv 795545d5ecaSDag-Erling Smørgravand 79635d4ccfbSDag-Erling Smørgrav.Pa /etc/ssh/shosts.equiv 79719261079SEd Masteare still used regardless of this setting. 79819261079SEd Maste.Pp 79919261079SEd MasteAccepted values are 80019261079SEd Maste.Cm yes 80119261079SEd Maste(the default) to ignore all per-user files, 80219261079SEd Maste.Cm shosts-only 80319261079SEd Masteto allow the use of 80419261079SEd Maste.Pa .shosts 80519261079SEd Mastebut to ignore 80619261079SEd Maste.Pa .rhosts 80719261079SEd Masteor 80819261079SEd Maste.Cm no 80919261079SEd Masteto allow both 81019261079SEd Maste.Pa .shosts 81119261079SEd Masteand 81219261079SEd Maste.Pa rhosts . 813545d5ecaSDag-Erling Smørgrav.It Cm IgnoreUserKnownHosts 814545d5ecaSDag-Erling SmørgravSpecifies whether 815333ee039SDag-Erling Smørgrav.Xr sshd 8 816545d5ecaSDag-Erling Smørgravshould ignore the user's 817d4ecd108SDag-Erling Smørgrav.Pa ~/.ssh/known_hosts 818545d5ecaSDag-Erling Smørgravduring 81947dd1d1bSDag-Erling Smørgrav.Cm HostbasedAuthentication 82047dd1d1bSDag-Erling Smørgravand use only the system-wide known hosts file 82147dd1d1bSDag-Erling Smørgrav.Pa /etc/ssh/known_hosts . 822545d5ecaSDag-Erling SmørgravThe default is 82319261079SEd Maste.Dq no . 82419261079SEd Maste.It Cm Include 82519261079SEd MasteInclude the specified configuration file(s). 82619261079SEd MasteMultiple pathnames may be specified and each pathname may contain 82719261079SEd Maste.Xr glob 7 82819261079SEd Mastewildcards that will be expanded and processed in lexical order. 82919261079SEd MasteFiles without absolute paths are assumed to be in 83019261079SEd Maste.Pa /etc/ssh . 83119261079SEd MasteAn 83219261079SEd Maste.Cm Include 83319261079SEd Mastedirective may appear inside a 83419261079SEd Maste.Cm Match 83519261079SEd Masteblock 83619261079SEd Masteto perform conditional inclusion. 8374a421b63SDag-Erling Smørgrav.It Cm IPQoS 8384a421b63SDag-Erling SmørgravSpecifies the IPv4 type-of-service or DSCP class for the connection. 8394a421b63SDag-Erling SmørgravAccepted values are 840ca86bcf2SDag-Erling Smørgrav.Cm af11 , 841ca86bcf2SDag-Erling Smørgrav.Cm af12 , 842ca86bcf2SDag-Erling Smørgrav.Cm af13 , 843ca86bcf2SDag-Erling Smørgrav.Cm af21 , 844ca86bcf2SDag-Erling Smørgrav.Cm af22 , 845ca86bcf2SDag-Erling Smørgrav.Cm af23 , 846ca86bcf2SDag-Erling Smørgrav.Cm af31 , 847ca86bcf2SDag-Erling Smørgrav.Cm af32 , 848ca86bcf2SDag-Erling Smørgrav.Cm af33 , 849ca86bcf2SDag-Erling Smørgrav.Cm af41 , 850ca86bcf2SDag-Erling Smørgrav.Cm af42 , 851ca86bcf2SDag-Erling Smørgrav.Cm af43 , 852ca86bcf2SDag-Erling Smørgrav.Cm cs0 , 853ca86bcf2SDag-Erling Smørgrav.Cm cs1 , 854ca86bcf2SDag-Erling Smørgrav.Cm cs2 , 855ca86bcf2SDag-Erling Smørgrav.Cm cs3 , 856ca86bcf2SDag-Erling Smørgrav.Cm cs4 , 857ca86bcf2SDag-Erling Smørgrav.Cm cs5 , 858ca86bcf2SDag-Erling Smørgrav.Cm cs6 , 859ca86bcf2SDag-Erling Smørgrav.Cm cs7 , 860ca86bcf2SDag-Erling Smørgrav.Cm ef , 86119261079SEd Maste.Cm le , 862ca86bcf2SDag-Erling Smørgrav.Cm lowdelay , 863ca86bcf2SDag-Erling Smørgrav.Cm throughput , 864ca86bcf2SDag-Erling Smørgrav.Cm reliability , 8654f52dfbbSDag-Erling Smørgrava numeric value, or 8664f52dfbbSDag-Erling Smørgrav.Cm none 8674f52dfbbSDag-Erling Smørgravto use the operating system default. 8684a421b63SDag-Erling SmørgravThis option may take one or two arguments, separated by whitespace. 8694a421b63SDag-Erling SmørgravIf one argument is specified, it is used as the packet class unconditionally. 8704a421b63SDag-Erling SmørgravIf two values are specified, the first is automatically selected for 8714a421b63SDag-Erling Smørgravinteractive sessions and the second for non-interactive sessions. 8724a421b63SDag-Erling SmørgravThe default is 873190cef3dSDag-Erling Smørgrav.Cm af21 874190cef3dSDag-Erling Smørgrav(Low-Latency Data) 8754a421b63SDag-Erling Smørgravfor interactive sessions and 876190cef3dSDag-Erling Smørgrav.Cm cs1 877190cef3dSDag-Erling Smørgrav(Lower Effort) 8784a421b63SDag-Erling Smørgravfor non-interactive sessions. 879b83788ffSDag-Erling Smørgrav.It Cm KbdInteractiveAuthentication 880b83788ffSDag-Erling SmørgravSpecifies whether to allow keyboard-interactive authentication. 88119261079SEd MasteAll authentication styles from 88219261079SEd Maste.Xr login.conf 5 88319261079SEd Masteare supported. 88419261079SEd MasteThe default is 88519261079SEd Maste.Cm yes . 886b83788ffSDag-Erling SmørgravThe argument to this keyword must be 887ca86bcf2SDag-Erling Smørgrav.Cm yes 888b83788ffSDag-Erling Smørgravor 889ca86bcf2SDag-Erling Smørgrav.Cm no . 890b83788ffSDag-Erling Smørgrav.Cm ChallengeResponseAuthentication 89119261079SEd Masteis a deprecated alias for this. 892545d5ecaSDag-Erling Smørgrav.It Cm KerberosAuthentication 893cf2b5f3bSDag-Erling SmørgravSpecifies whether the password provided by the user for 894545d5ecaSDag-Erling Smørgrav.Cm PasswordAuthentication 895cf2b5f3bSDag-Erling Smørgravwill be validated through the Kerberos KDC. 896545d5ecaSDag-Erling SmørgravTo use this option, the server needs a 897545d5ecaSDag-Erling SmørgravKerberos servtab which allows the verification of the KDC's identity. 898333ee039SDag-Erling SmørgravThe default is 899ca86bcf2SDag-Erling Smørgrav.Cm no . 9005962c0e9SDag-Erling Smørgrav.It Cm KerberosGetAFSToken 901b74df5b2SDag-Erling SmørgravIf AFS is active and the user has a Kerberos 5 TGT, attempt to acquire 9025962c0e9SDag-Erling Smørgravan AFS token before accessing the user's home directory. 903333ee039SDag-Erling SmørgravThe default is 904ca86bcf2SDag-Erling Smørgrav.Cm no . 905545d5ecaSDag-Erling Smørgrav.It Cm KerberosOrLocalPasswd 906333ee039SDag-Erling SmørgravIf password authentication through Kerberos fails then 907545d5ecaSDag-Erling Smørgravthe password will be validated via any additional local mechanism 908545d5ecaSDag-Erling Smørgravsuch as 909545d5ecaSDag-Erling Smørgrav.Pa /etc/passwd . 910333ee039SDag-Erling SmørgravThe default is 911ca86bcf2SDag-Erling Smørgrav.Cm yes . 912545d5ecaSDag-Erling Smørgrav.It Cm KerberosTicketCleanup 913545d5ecaSDag-Erling SmørgravSpecifies whether to automatically destroy the user's ticket cache 914545d5ecaSDag-Erling Smørgravfile on logout. 915333ee039SDag-Erling SmørgravThe default is 916ca86bcf2SDag-Erling Smørgrav.Cm yes . 9174a421b63SDag-Erling Smørgrav.It Cm KexAlgorithms 9184a421b63SDag-Erling SmørgravSpecifies the available KEX (Key Exchange) algorithms. 9194a421b63SDag-Erling SmørgravMultiple algorithms must be comma-separated. 92019261079SEd MasteAlternately if the specified list begins with a 921eccfee6eSDag-Erling Smørgrav.Sq + 922e9e8876aSEd Mastecharacter, then the specified algorithms will be appended to the default set 923eccfee6eSDag-Erling Smørgravinstead of replacing them. 92419261079SEd MasteIf the specified list begins with a 925d93a896eSDag-Erling Smørgrav.Sq - 926e9e8876aSEd Mastecharacter, then the specified algorithms (including wildcards) will be removed 927d93a896eSDag-Erling Smørgravfrom the default set instead of replacing them. 92819261079SEd MasteIf the specified list begins with a 92919261079SEd Maste.Sq ^ 930e9e8876aSEd Mastecharacter, then the specified algorithms will be placed at the head of the 93119261079SEd Mastedefault set. 932a0ee8cc6SDag-Erling SmørgravThe supported algorithms are: 933a0ee8cc6SDag-Erling Smørgrav.Pp 934a0ee8cc6SDag-Erling Smørgrav.Bl -item -compact -offset indent 935a0ee8cc6SDag-Erling Smørgrav.It 936ca86bcf2SDag-Erling Smørgravcurve25519-sha256 937ca86bcf2SDag-Erling Smørgrav.It 938a0ee8cc6SDag-Erling Smørgravcurve25519-sha256@libssh.org 939a0ee8cc6SDag-Erling Smørgrav.It 940a0ee8cc6SDag-Erling Smørgravdiffie-hellman-group1-sha1 941a0ee8cc6SDag-Erling Smørgrav.It 942a0ee8cc6SDag-Erling Smørgravdiffie-hellman-group14-sha1 943a0ee8cc6SDag-Erling Smørgrav.It 94447dd1d1bSDag-Erling Smørgravdiffie-hellman-group14-sha256 94547dd1d1bSDag-Erling Smørgrav.It 94647dd1d1bSDag-Erling Smørgravdiffie-hellman-group16-sha512 94747dd1d1bSDag-Erling Smørgrav.It 94847dd1d1bSDag-Erling Smørgravdiffie-hellman-group18-sha512 94947dd1d1bSDag-Erling Smørgrav.It 950a0ee8cc6SDag-Erling Smørgravdiffie-hellman-group-exchange-sha1 951a0ee8cc6SDag-Erling Smørgrav.It 952a0ee8cc6SDag-Erling Smørgravdiffie-hellman-group-exchange-sha256 953a0ee8cc6SDag-Erling Smørgrav.It 954a0ee8cc6SDag-Erling Smørgravecdh-sha2-nistp256 955a0ee8cc6SDag-Erling Smørgrav.It 956a0ee8cc6SDag-Erling Smørgravecdh-sha2-nistp384 957a0ee8cc6SDag-Erling Smørgrav.It 958a0ee8cc6SDag-Erling Smørgravecdh-sha2-nistp521 95919261079SEd Maste.It 96019261079SEd Mastesntrup761x25519-sha512@openssh.com 961a0ee8cc6SDag-Erling Smørgrav.El 962a0ee8cc6SDag-Erling Smørgrav.Pp 963a0ee8cc6SDag-Erling SmørgravThe default is: 964f7167e0eSDag-Erling Smørgrav.Bd -literal -offset indent 965ca86bcf2SDag-Erling Smørgravcurve25519-sha256,curve25519-sha256@libssh.org, 966f7167e0eSDag-Erling Smørgravecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521, 967f7167e0eSDag-Erling Smørgravdiffie-hellman-group-exchange-sha256, 96847dd1d1bSDag-Erling Smørgravdiffie-hellman-group16-sha512,diffie-hellman-group18-sha512, 96919261079SEd Mastediffie-hellman-group14-sha256 970f7167e0eSDag-Erling Smørgrav.Ed 971bc5531deSDag-Erling Smørgrav.Pp 972ca86bcf2SDag-Erling SmørgravThe list of available key exchange algorithms may also be obtained using 97319261079SEd Maste.Qq ssh -Q KexAlgorithms . 974545d5ecaSDag-Erling Smørgrav.It Cm ListenAddress 975545d5ecaSDag-Erling SmørgravSpecifies the local addresses 976333ee039SDag-Erling Smørgrav.Xr sshd 8 977545d5ecaSDag-Erling Smørgravshould listen on. 978545d5ecaSDag-Erling SmørgravThe following forms may be used: 979545d5ecaSDag-Erling Smørgrav.Pp 980545d5ecaSDag-Erling Smørgrav.Bl -item -offset indent -compact 981545d5ecaSDag-Erling Smørgrav.It 982545d5ecaSDag-Erling Smørgrav.Cm ListenAddress 983545d5ecaSDag-Erling Smørgrav.Sm off 98447dd1d1bSDag-Erling Smørgrav.Ar hostname | address 985545d5ecaSDag-Erling Smørgrav.Sm on 98647dd1d1bSDag-Erling Smørgrav.Op Cm rdomain Ar domain 987545d5ecaSDag-Erling Smørgrav.It 988545d5ecaSDag-Erling Smørgrav.Cm ListenAddress 989545d5ecaSDag-Erling Smørgrav.Sm off 99047dd1d1bSDag-Erling Smørgrav.Ar hostname : port 991545d5ecaSDag-Erling Smørgrav.Sm on 99247dd1d1bSDag-Erling Smørgrav.Op Cm rdomain Ar domain 993545d5ecaSDag-Erling Smørgrav.It 994545d5ecaSDag-Erling Smørgrav.Cm ListenAddress 995545d5ecaSDag-Erling Smørgrav.Sm off 99647dd1d1bSDag-Erling Smørgrav.Ar IPv4_address : port 997545d5ecaSDag-Erling Smørgrav.Sm on 99847dd1d1bSDag-Erling Smørgrav.Op Cm rdomain Ar domain 99947dd1d1bSDag-Erling Smørgrav.It 100047dd1d1bSDag-Erling Smørgrav.Cm ListenAddress 100147dd1d1bSDag-Erling Smørgrav.Sm off 100247dd1d1bSDag-Erling Smørgrav.Oo Ar hostname | address Oc : Ar port 100347dd1d1bSDag-Erling Smørgrav.Sm on 100447dd1d1bSDag-Erling Smørgrav.Op Cm rdomain Ar domain 1005545d5ecaSDag-Erling Smørgrav.El 1006545d5ecaSDag-Erling Smørgrav.Pp 100747dd1d1bSDag-Erling SmørgravThe optional 100847dd1d1bSDag-Erling Smørgrav.Cm rdomain 100947dd1d1bSDag-Erling Smørgravqualifier requests 101047dd1d1bSDag-Erling Smørgrav.Xr sshd 8 101147dd1d1bSDag-Erling Smørgravlisten in an explicit routing domain. 1012545d5ecaSDag-Erling SmørgravIf 1013545d5ecaSDag-Erling Smørgrav.Ar port 1014545d5ecaSDag-Erling Smørgravis not specified, 1015557f75e5SDag-Erling Smørgravsshd will listen on the address and all 1016545d5ecaSDag-Erling Smørgrav.Cm Port 1017cf2b5f3bSDag-Erling Smørgravoptions specified. 101847dd1d1bSDag-Erling SmørgravThe default is to listen on all local addresses on the current default 101947dd1d1bSDag-Erling Smørgravrouting domain. 1020e73e9afaSDag-Erling SmørgravMultiple 1021545d5ecaSDag-Erling Smørgrav.Cm ListenAddress 1022cf2b5f3bSDag-Erling Smørgravoptions are permitted. 102347dd1d1bSDag-Erling SmørgravFor more information on routing domains, see 102447dd1d1bSDag-Erling Smørgrav.Xr rdomain 4 . 1025545d5ecaSDag-Erling Smørgrav.It Cm LoginGraceTime 1026545d5ecaSDag-Erling SmørgravThe server disconnects after this time if the user has not 1027545d5ecaSDag-Erling Smørgravsuccessfully logged in. 1028545d5ecaSDag-Erling SmørgravIf the value is 0, there is no time limit. 1029f388f5efSDag-Erling SmørgravThe default is 120 seconds. 1030545d5ecaSDag-Erling Smørgrav.It Cm LogLevel 1031545d5ecaSDag-Erling SmørgravGives the verbosity level that is used when logging messages from 1032333ee039SDag-Erling Smørgrav.Xr sshd 8 . 1033545d5ecaSDag-Erling SmørgravThe possible values are: 1034333ee039SDag-Erling SmørgravQUIET, FATAL, ERROR, INFO, VERBOSE, DEBUG, DEBUG1, DEBUG2, and DEBUG3. 1035e73e9afaSDag-Erling SmørgravThe default is INFO. 1036e73e9afaSDag-Erling SmørgravDEBUG and DEBUG1 are equivalent. 1037e73e9afaSDag-Erling SmørgravDEBUG2 and DEBUG3 each specify higher levels of debugging output. 1038e73e9afaSDag-Erling SmørgravLogging with a DEBUG level violates the privacy of users and is not recommended. 103919261079SEd Maste.It Cm LogVerbose 104019261079SEd MasteSpecify one or more overrides to LogLevel. 104119261079SEd MasteAn override consists of a pattern lists that matches the source file, function 104219261079SEd Masteand line number to force detailed logging for. 104319261079SEd MasteFor example, an override pattern of: 104419261079SEd Maste.Bd -literal -offset indent 104519261079SEd Mastekex.c:*:1000,*:kex_exchange_identification():*,packet.c:* 104619261079SEd Maste.Ed 104719261079SEd Maste.Pp 104819261079SEd Mastewould enable detailed logging for line 1000 of 104919261079SEd Maste.Pa kex.c , 105019261079SEd Masteeverything in the 105119261079SEd Maste.Fn kex_exchange_identification 105219261079SEd Mastefunction, and all code in the 105319261079SEd Maste.Pa packet.c 105419261079SEd Mastefile. 105519261079SEd MasteThis option is intended for debugging and no overrides are enabled by default. 1056545d5ecaSDag-Erling Smørgrav.It Cm MACs 1057545d5ecaSDag-Erling SmørgravSpecifies the available MAC (message authentication code) algorithms. 1058acc1a9efSDag-Erling SmørgravThe MAC algorithm is used for data integrity protection. 1059545d5ecaSDag-Erling SmørgravMultiple algorithms must be comma-separated. 106019261079SEd MasteIf the specified list begins with a 1061eccfee6eSDag-Erling Smørgrav.Sq + 1062eccfee6eSDag-Erling Smørgravcharacter, then the specified algorithms will be appended to the default set 1063eccfee6eSDag-Erling Smørgravinstead of replacing them. 106419261079SEd MasteIf the specified list begins with a 1065d93a896eSDag-Erling Smørgrav.Sq - 1066d93a896eSDag-Erling Smørgravcharacter, then the specified algorithms (including wildcards) will be removed 1067d93a896eSDag-Erling Smørgravfrom the default set instead of replacing them. 106819261079SEd MasteIf the specified list begins with a 106919261079SEd Maste.Sq ^ 107019261079SEd Mastecharacter, then the specified algorithms will be placed at the head of the 107119261079SEd Mastedefault set. 1072eccfee6eSDag-Erling Smørgrav.Pp 10736888a9beSDag-Erling SmørgravThe algorithms that contain 1074ca86bcf2SDag-Erling Smørgrav.Qq -etm 10756888a9beSDag-Erling Smørgravcalculate the MAC after encryption (encrypt-then-mac). 10766888a9beSDag-Erling SmørgravThese are considered safer and their use recommended. 1077a0ee8cc6SDag-Erling SmørgravThe supported MACs are: 1078a0ee8cc6SDag-Erling Smørgrav.Pp 1079a0ee8cc6SDag-Erling Smørgrav.Bl -item -compact -offset indent 1080a0ee8cc6SDag-Erling Smørgrav.It 1081a0ee8cc6SDag-Erling Smørgravhmac-md5 1082a0ee8cc6SDag-Erling Smørgrav.It 1083a0ee8cc6SDag-Erling Smørgravhmac-md5-96 1084a0ee8cc6SDag-Erling Smørgrav.It 1085a0ee8cc6SDag-Erling Smørgravhmac-sha1 1086a0ee8cc6SDag-Erling Smørgrav.It 1087a0ee8cc6SDag-Erling Smørgravhmac-sha1-96 1088a0ee8cc6SDag-Erling Smørgrav.It 1089a0ee8cc6SDag-Erling Smørgravhmac-sha2-256 1090a0ee8cc6SDag-Erling Smørgrav.It 1091a0ee8cc6SDag-Erling Smørgravhmac-sha2-512 1092a0ee8cc6SDag-Erling Smørgrav.It 1093a0ee8cc6SDag-Erling Smørgravumac-64@openssh.com 1094a0ee8cc6SDag-Erling Smørgrav.It 1095a0ee8cc6SDag-Erling Smørgravumac-128@openssh.com 1096a0ee8cc6SDag-Erling Smørgrav.It 1097a0ee8cc6SDag-Erling Smørgravhmac-md5-etm@openssh.com 1098a0ee8cc6SDag-Erling Smørgrav.It 1099a0ee8cc6SDag-Erling Smørgravhmac-md5-96-etm@openssh.com 1100a0ee8cc6SDag-Erling Smørgrav.It 1101a0ee8cc6SDag-Erling Smørgravhmac-sha1-etm@openssh.com 1102a0ee8cc6SDag-Erling Smørgrav.It 1103a0ee8cc6SDag-Erling Smørgravhmac-sha1-96-etm@openssh.com 1104a0ee8cc6SDag-Erling Smørgrav.It 1105a0ee8cc6SDag-Erling Smørgravhmac-sha2-256-etm@openssh.com 1106a0ee8cc6SDag-Erling Smørgrav.It 1107a0ee8cc6SDag-Erling Smørgravhmac-sha2-512-etm@openssh.com 1108a0ee8cc6SDag-Erling Smørgrav.It 1109a0ee8cc6SDag-Erling Smørgravumac-64-etm@openssh.com 1110a0ee8cc6SDag-Erling Smørgrav.It 1111a0ee8cc6SDag-Erling Smørgravumac-128-etm@openssh.com 1112a0ee8cc6SDag-Erling Smørgrav.El 1113a0ee8cc6SDag-Erling Smørgrav.Pp 1114333ee039SDag-Erling SmørgravThe default is: 1115d4af9e69SDag-Erling Smørgrav.Bd -literal -offset indent 11166888a9beSDag-Erling Smørgravumac-64-etm@openssh.com,umac-128-etm@openssh.com, 11176888a9beSDag-Erling Smørgravhmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com, 1118acc1a9efSDag-Erling Smørgravhmac-sha1-etm@openssh.com, 1119a0ee8cc6SDag-Erling Smørgravumac-64@openssh.com,umac-128@openssh.com, 1120acc1a9efSDag-Erling Smørgravhmac-sha2-256,hmac-sha2-512,hmac-sha1 1121d4af9e69SDag-Erling Smørgrav.Ed 1122bc5531deSDag-Erling Smørgrav.Pp 1123ca86bcf2SDag-Erling SmørgravThe list of available MAC algorithms may also be obtained using 1124ca86bcf2SDag-Erling Smørgrav.Qq ssh -Q mac . 1125333ee039SDag-Erling Smørgrav.It Cm Match 1126333ee039SDag-Erling SmørgravIntroduces a conditional block. 1127333ee039SDag-Erling SmørgravIf all of the criteria on the 1128333ee039SDag-Erling Smørgrav.Cm Match 1129333ee039SDag-Erling Smørgravline are satisfied, the keywords on the following lines override those 1130333ee039SDag-Erling Smørgravset in the global section of the config file, until either another 1131333ee039SDag-Erling Smørgrav.Cm Match 1132333ee039SDag-Erling Smørgravline or the end of the file. 1133b83788ffSDag-Erling SmørgravIf a keyword appears in multiple 1134b83788ffSDag-Erling Smørgrav.Cm Match 1135bc5531deSDag-Erling Smørgravblocks that are satisfied, only the first instance of the keyword is 1136b83788ffSDag-Erling Smørgravapplied. 1137d4af9e69SDag-Erling Smørgrav.Pp 1138333ee039SDag-Erling SmørgravThe arguments to 1139333ee039SDag-Erling Smørgrav.Cm Match 1140f7167e0eSDag-Erling Smørgravare one or more criteria-pattern pairs or the single token 1141f7167e0eSDag-Erling Smørgrav.Cm All 1142f7167e0eSDag-Erling Smørgravwhich matches all criteria. 1143333ee039SDag-Erling SmørgravThe available criteria are 1144333ee039SDag-Erling Smørgrav.Cm User , 1145333ee039SDag-Erling Smørgrav.Cm Group , 1146333ee039SDag-Erling Smørgrav.Cm Host , 1147462c32cbSDag-Erling Smørgrav.Cm LocalAddress , 1148462c32cbSDag-Erling Smørgrav.Cm LocalPort , 114947dd1d1bSDag-Erling Smørgrav.Cm RDomain , 1150333ee039SDag-Erling Smørgravand 115147dd1d1bSDag-Erling Smørgrav.Cm Address 115247dd1d1bSDag-Erling Smørgrav(with 115347dd1d1bSDag-Erling Smørgrav.Cm RDomain 115447dd1d1bSDag-Erling Smørgravrepresenting the 115547dd1d1bSDag-Erling Smørgrav.Xr rdomain 4 115619261079SEd Masteon which the connection was received). 115747dd1d1bSDag-Erling Smørgrav.Pp 1158d4af9e69SDag-Erling SmørgravThe match patterns may consist of single entries or comma-separated 1159d4af9e69SDag-Erling Smørgravlists and may use the wildcard and negation operators described in the 1160ca86bcf2SDag-Erling Smørgrav.Sx PATTERNS 1161ca86bcf2SDag-Erling Smørgravsection of 1162d4af9e69SDag-Erling Smørgrav.Xr ssh_config 5 . 1163d4af9e69SDag-Erling Smørgrav.Pp 1164d4af9e69SDag-Erling SmørgravThe patterns in an 1165d4af9e69SDag-Erling Smørgrav.Cm Address 1166d4af9e69SDag-Erling Smørgravcriteria may additionally contain addresses to match in CIDR 1167ca86bcf2SDag-Erling Smørgravaddress/masklen format, 1168ca86bcf2SDag-Erling Smørgravsuch as 192.0.2.0/24 or 2001:db8::/32. 1169d4af9e69SDag-Erling SmørgravNote that the mask length provided must be consistent with the address - 1170d4af9e69SDag-Erling Smørgravit is an error to specify a mask length that is too long for the address 1171d4af9e69SDag-Erling Smørgravor one with bits set in this host portion of the address. 1172ca86bcf2SDag-Erling SmørgravFor example, 192.0.2.0/33 and 192.0.2.0/8, respectively. 1173d4af9e69SDag-Erling Smørgrav.Pp 1174333ee039SDag-Erling SmørgravOnly a subset of keywords may be used on the lines following a 1175333ee039SDag-Erling Smørgrav.Cm Match 1176333ee039SDag-Erling Smørgravkeyword. 1177333ee039SDag-Erling SmørgravAvailable keywords are 1178462c32cbSDag-Erling Smørgrav.Cm AcceptEnv , 1179cce7d346SDag-Erling Smørgrav.Cm AllowAgentForwarding , 1180462c32cbSDag-Erling Smørgrav.Cm AllowGroups , 1181bc5531deSDag-Erling Smørgrav.Cm AllowStreamLocalForwarding , 1182333ee039SDag-Erling Smørgrav.Cm AllowTcpForwarding , 1183462c32cbSDag-Erling Smørgrav.Cm AllowUsers , 11846888a9beSDag-Erling Smørgrav.Cm AuthenticationMethods , 11856888a9beSDag-Erling Smørgrav.Cm AuthorizedKeysCommand , 11866888a9beSDag-Erling Smørgrav.Cm AuthorizedKeysCommandUser , 1187e2f6069cSDag-Erling Smørgrav.Cm AuthorizedKeysFile , 1188acc1a9efSDag-Erling Smørgrav.Cm AuthorizedPrincipalsCommand , 1189acc1a9efSDag-Erling Smørgrav.Cm AuthorizedPrincipalsCommandUser , 1190e2f6069cSDag-Erling Smørgrav.Cm AuthorizedPrincipalsFile , 1191d4af9e69SDag-Erling Smørgrav.Cm Banner , 1192d4af9e69SDag-Erling Smørgrav.Cm ChrootDirectory , 1193ca86bcf2SDag-Erling Smørgrav.Cm ClientAliveCountMax , 1194ca86bcf2SDag-Erling Smørgrav.Cm ClientAliveInterval , 1195462c32cbSDag-Erling Smørgrav.Cm DenyGroups , 1196462c32cbSDag-Erling Smørgrav.Cm DenyUsers , 119719261079SEd Maste.Cm DisableForwarding , 1198333ee039SDag-Erling Smørgrav.Cm ForceCommand , 1199333ee039SDag-Erling Smørgrav.Cm GatewayPorts , 1200d4af9e69SDag-Erling Smørgrav.Cm GSSAPIAuthentication , 120119261079SEd Maste.Cm HostbasedAcceptedAlgorithms , 1202d4af9e69SDag-Erling Smørgrav.Cm HostbasedAuthentication , 1203e2f6069cSDag-Erling Smørgrav.Cm HostbasedUsesNameFromPacketOnly , 120419261079SEd Maste.Cm IgnoreRhosts , 120519261079SEd Maste.Cm Include , 1206bc5531deSDag-Erling Smørgrav.Cm IPQoS , 1207d4af9e69SDag-Erling Smørgrav.Cm KbdInteractiveAuthentication , 1208d4af9e69SDag-Erling Smørgrav.Cm KerberosAuthentication , 12094f52dfbbSDag-Erling Smørgrav.Cm LogLevel , 1210d4af9e69SDag-Erling Smørgrav.Cm MaxAuthTries , 1211d4af9e69SDag-Erling Smørgrav.Cm MaxSessions , 1212d4af9e69SDag-Erling Smørgrav.Cm PasswordAuthentication , 1213cce7d346SDag-Erling Smørgrav.Cm PermitEmptyPasswords , 1214190cef3dSDag-Erling Smørgrav.Cm PermitListen , 1215333ee039SDag-Erling Smørgrav.Cm PermitOpen , 1216d4af9e69SDag-Erling Smørgrav.Cm PermitRootLogin , 1217f7167e0eSDag-Erling Smørgrav.Cm PermitTTY , 1218e2f6069cSDag-Erling Smørgrav.Cm PermitTunnel , 1219a0ee8cc6SDag-Erling Smørgrav.Cm PermitUserRC , 122019261079SEd Maste.Cm PubkeyAcceptedAlgorithms , 1221b15c8340SDag-Erling Smørgrav.Cm PubkeyAuthentication , 1222e4a9863fSDag-Erling Smørgrav.Cm RekeyLimit , 1223bc5531deSDag-Erling Smørgrav.Cm RevokedKeys , 122447dd1d1bSDag-Erling Smørgrav.Cm RDomain , 1225190cef3dSDag-Erling Smørgrav.Cm SetEnv , 1226bc5531deSDag-Erling Smørgrav.Cm StreamLocalBindMask , 1227bc5531deSDag-Erling Smørgrav.Cm StreamLocalBindUnlink , 1228bc5531deSDag-Erling Smørgrav.Cm TrustedUserCAKeys , 1229333ee039SDag-Erling Smørgrav.Cm X11DisplayOffset , 1230cce7d346SDag-Erling Smørgrav.Cm X11Forwarding 1231333ee039SDag-Erling Smørgravand 123219261079SEd Maste.Cm X11UseLocalhost . 123321e764dfSDag-Erling Smørgrav.It Cm MaxAuthTries 123421e764dfSDag-Erling SmørgravSpecifies the maximum number of authentication attempts permitted per 123521e764dfSDag-Erling Smørgravconnection. 123621e764dfSDag-Erling SmørgravOnce the number of failures reaches half this value, 123721e764dfSDag-Erling Smørgravadditional failures are logged. 123821e764dfSDag-Erling SmørgravThe default is 6. 1239d4af9e69SDag-Erling Smørgrav.It Cm MaxSessions 1240acc1a9efSDag-Erling SmørgravSpecifies the maximum number of open shell, login or subsystem (e.g. sftp) 1241acc1a9efSDag-Erling Smørgravsessions permitted per network connection. 1242acc1a9efSDag-Erling SmørgravMultiple sessions may be established by clients that support connection 1243acc1a9efSDag-Erling Smørgravmultiplexing. 1244acc1a9efSDag-Erling SmørgravSetting 1245acc1a9efSDag-Erling Smørgrav.Cm MaxSessions 1246acc1a9efSDag-Erling Smørgravto 1 will effectively disable session multiplexing, whereas setting it to 0 1247acc1a9efSDag-Erling Smørgravwill prevent all shell, login and subsystem sessions while still permitting 1248acc1a9efSDag-Erling Smørgravforwarding. 1249d4af9e69SDag-Erling SmørgravThe default is 10. 1250545d5ecaSDag-Erling Smørgrav.It Cm MaxStartups 1251545d5ecaSDag-Erling SmørgravSpecifies the maximum number of concurrent unauthenticated connections to the 1252333ee039SDag-Erling SmørgravSSH daemon. 1253545d5ecaSDag-Erling SmørgravAdditional connections will be dropped until authentication succeeds or the 1254545d5ecaSDag-Erling Smørgrav.Cm LoginGraceTime 1255545d5ecaSDag-Erling Smørgravexpires for a connection. 12566888a9beSDag-Erling SmørgravThe default is 10:30:100. 1257545d5ecaSDag-Erling Smørgrav.Pp 1258545d5ecaSDag-Erling SmørgravAlternatively, random early drop can be enabled by specifying 1259545d5ecaSDag-Erling Smørgravthe three colon separated values 1260ca86bcf2SDag-Erling Smørgravstart:rate:full (e.g. "10:30:60"). 1261333ee039SDag-Erling Smørgrav.Xr sshd 8 1262ca86bcf2SDag-Erling Smørgravwill refuse connection attempts with a probability of rate/100 (30%) 1263ca86bcf2SDag-Erling Smørgravif there are currently start (10) unauthenticated connections. 1264545d5ecaSDag-Erling SmørgravThe probability increases linearly and all connection attempts 1265ca86bcf2SDag-Erling Smørgravare refused if the number of unauthenticated connections reaches full (60). 126619261079SEd Maste.It Cm ModuliFile 126719261079SEd MasteSpecifies the 126819261079SEd Maste.Xr moduli 5 126919261079SEd Mastefile that contains the Diffie-Hellman groups used for the 127019261079SEd Maste.Dq diffie-hellman-group-exchange-sha1 127119261079SEd Masteand 127219261079SEd Maste.Dq diffie-hellman-group-exchange-sha256 127319261079SEd Mastekey exchange methods. 127419261079SEd MasteThe default is 127519261079SEd Maste.Pa /etc/moduli . 1276545d5ecaSDag-Erling Smørgrav.It Cm PasswordAuthentication 1277545d5ecaSDag-Erling SmørgravSpecifies whether password authentication is allowed. 1278d4af9e69SDag-Erling SmørgravSee also 1279d4af9e69SDag-Erling Smørgrav.Cm UsePAM . 1280545d5ecaSDag-Erling SmørgravThe default is 1281ca86bcf2SDag-Erling Smørgrav.Cm no . 1282545d5ecaSDag-Erling Smørgrav.It Cm PermitEmptyPasswords 1283545d5ecaSDag-Erling SmørgravWhen password authentication is allowed, it specifies whether the 1284545d5ecaSDag-Erling Smørgravserver allows login to accounts with empty password strings. 1285545d5ecaSDag-Erling SmørgravThe default is 1286ca86bcf2SDag-Erling Smørgrav.Cm no . 1287190cef3dSDag-Erling Smørgrav.It Cm PermitListen 1288190cef3dSDag-Erling SmørgravSpecifies the addresses/ports on which a remote TCP port forwarding may listen. 1289190cef3dSDag-Erling SmørgravThe listen specification must be one of the following forms: 1290190cef3dSDag-Erling Smørgrav.Pp 1291190cef3dSDag-Erling Smørgrav.Bl -item -offset indent -compact 1292190cef3dSDag-Erling Smørgrav.It 1293190cef3dSDag-Erling Smørgrav.Cm PermitListen 1294190cef3dSDag-Erling Smørgrav.Sm off 1295190cef3dSDag-Erling Smørgrav.Ar port 1296190cef3dSDag-Erling Smørgrav.Sm on 1297190cef3dSDag-Erling Smørgrav.It 1298190cef3dSDag-Erling Smørgrav.Cm PermitListen 1299190cef3dSDag-Erling Smørgrav.Sm off 1300190cef3dSDag-Erling Smørgrav.Ar host : port 1301190cef3dSDag-Erling Smørgrav.Sm on 1302190cef3dSDag-Erling Smørgrav.El 1303190cef3dSDag-Erling Smørgrav.Pp 1304190cef3dSDag-Erling SmørgravMultiple permissions may be specified by separating them with whitespace. 1305190cef3dSDag-Erling SmørgravAn argument of 1306190cef3dSDag-Erling Smørgrav.Cm any 1307190cef3dSDag-Erling Smørgravcan be used to remove all restrictions and permit any listen requests. 1308190cef3dSDag-Erling SmørgravAn argument of 1309190cef3dSDag-Erling Smørgrav.Cm none 1310190cef3dSDag-Erling Smørgravcan be used to prohibit all listen requests. 1311190cef3dSDag-Erling SmørgravThe host name may contain wildcards as described in the PATTERNS section in 1312190cef3dSDag-Erling Smørgrav.Xr ssh_config 5 . 1313190cef3dSDag-Erling SmørgravThe wildcard 1314190cef3dSDag-Erling Smørgrav.Sq * 1315190cef3dSDag-Erling Smørgravcan also be used in place of a port number to allow all ports. 1316190cef3dSDag-Erling SmørgravBy default all port forwarding listen requests are permitted. 1317190cef3dSDag-Erling SmørgravNote that the 1318190cef3dSDag-Erling Smørgrav.Cm GatewayPorts 1319190cef3dSDag-Erling Smørgravoption may further restrict which addresses may be listened on. 1320190cef3dSDag-Erling SmørgravNote also that 1321190cef3dSDag-Erling Smørgrav.Xr ssh 1 1322190cef3dSDag-Erling Smørgravwill request a listen host of 1323190cef3dSDag-Erling Smørgrav.Dq localhost 132419261079SEd Masteif no listen host was specifically requested, and this name is 1325190cef3dSDag-Erling Smørgravtreated differently to explicit localhost addresses of 1326190cef3dSDag-Erling Smørgrav.Dq 127.0.0.1 1327190cef3dSDag-Erling Smørgravand 1328190cef3dSDag-Erling Smørgrav.Dq ::1 . 1329333ee039SDag-Erling Smørgrav.It Cm PermitOpen 1330333ee039SDag-Erling SmørgravSpecifies the destinations to which TCP port forwarding is permitted. 1331333ee039SDag-Erling SmørgravThe forwarding specification must be one of the following forms: 1332333ee039SDag-Erling Smørgrav.Pp 1333333ee039SDag-Erling Smørgrav.Bl -item -offset indent -compact 1334333ee039SDag-Erling Smørgrav.It 1335333ee039SDag-Erling Smørgrav.Cm PermitOpen 1336333ee039SDag-Erling Smørgrav.Sm off 1337333ee039SDag-Erling Smørgrav.Ar host : port 1338333ee039SDag-Erling Smørgrav.Sm on 1339333ee039SDag-Erling Smørgrav.It 1340333ee039SDag-Erling Smørgrav.Cm PermitOpen 1341333ee039SDag-Erling Smørgrav.Sm off 1342333ee039SDag-Erling Smørgrav.Ar IPv4_addr : port 1343333ee039SDag-Erling Smørgrav.Sm on 1344333ee039SDag-Erling Smørgrav.It 1345333ee039SDag-Erling Smørgrav.Cm PermitOpen 1346333ee039SDag-Erling Smørgrav.Sm off 1347333ee039SDag-Erling Smørgrav.Ar \&[ IPv6_addr \&] : port 1348333ee039SDag-Erling Smørgrav.Sm on 1349333ee039SDag-Erling Smørgrav.El 1350333ee039SDag-Erling Smørgrav.Pp 1351333ee039SDag-Erling SmørgravMultiple forwards may be specified by separating them with whitespace. 1352333ee039SDag-Erling SmørgravAn argument of 1353ca86bcf2SDag-Erling Smørgrav.Cm any 1354333ee039SDag-Erling Smørgravcan be used to remove all restrictions and permit any forwarding requests. 1355462c32cbSDag-Erling SmørgravAn argument of 1356ca86bcf2SDag-Erling Smørgrav.Cm none 1357462c32cbSDag-Erling Smørgravcan be used to prohibit all forwarding requests. 1358076ad2f8SDag-Erling SmørgravThe wildcard 1359ca86bcf2SDag-Erling Smørgrav.Sq * 136019261079SEd Mastecan be used for host or port to allow all hosts or ports respectively. 136119261079SEd MasteOtherwise, no pattern matching or address lookups are performed on supplied 136219261079SEd Mastenames. 1363333ee039SDag-Erling SmørgravBy default all port forwarding requests are permitted. 1364545d5ecaSDag-Erling Smørgrav.It Cm PermitRootLogin 1365545d5ecaSDag-Erling SmørgravSpecifies whether root can log in using 1366545d5ecaSDag-Erling Smørgrav.Xr ssh 1 . 1367545d5ecaSDag-Erling SmørgravThe argument must be 1368ca86bcf2SDag-Erling Smørgrav.Cm yes , 1369ca86bcf2SDag-Erling Smørgrav.Cm prohibit-password , 1370ca86bcf2SDag-Erling Smørgrav.Cm forced-commands-only , 1371545d5ecaSDag-Erling Smørgravor 1372ca86bcf2SDag-Erling Smørgrav.Cm no . 1373545d5ecaSDag-Erling SmørgravThe default is 1374ca86bcf2SDag-Erling Smørgrav.Cm no . 1375810a15b1SDag-Erling SmørgravNote that if 1376810a15b1SDag-Erling Smørgrav.Cm ChallengeResponseAuthentication 1377ca86bcf2SDag-Erling Smørgravand 1378ca86bcf2SDag-Erling Smørgrav.Cm UsePAM 1379ca86bcf2SDag-Erling Smørgravare both 1380ca86bcf2SDag-Erling Smørgrav.Cm yes , 1381ca86bcf2SDag-Erling Smørgravthis setting may be overridden by the PAM policy. 1382545d5ecaSDag-Erling Smørgrav.Pp 1383545d5ecaSDag-Erling SmørgravIf this option is set to 1384ca86bcf2SDag-Erling Smørgrav.Cm prohibit-password 138547dd1d1bSDag-Erling Smørgrav(or its deprecated alias, 138647dd1d1bSDag-Erling Smørgrav.Cm without-password ) , 1387eccfee6eSDag-Erling Smørgravpassword and keyboard-interactive authentication are disabled for root. 1388545d5ecaSDag-Erling Smørgrav.Pp 1389545d5ecaSDag-Erling SmørgravIf this option is set to 1390ca86bcf2SDag-Erling Smørgrav.Cm forced-commands-only , 1391545d5ecaSDag-Erling Smørgravroot login with public key authentication will be allowed, 1392545d5ecaSDag-Erling Smørgravbut only if the 1393545d5ecaSDag-Erling Smørgrav.Ar command 1394545d5ecaSDag-Erling Smørgravoption has been specified 1395545d5ecaSDag-Erling Smørgrav(which may be useful for taking remote backups even if root login is 1396cf2b5f3bSDag-Erling Smørgravnormally not allowed). 1397cf2b5f3bSDag-Erling SmørgravAll other authentication methods are disabled for root. 1398545d5ecaSDag-Erling Smørgrav.Pp 1399545d5ecaSDag-Erling SmørgravIf this option is set to 1400ca86bcf2SDag-Erling Smørgrav.Cm no , 1401545d5ecaSDag-Erling Smørgravroot is not allowed to log in. 1402f7167e0eSDag-Erling Smørgrav.It Cm PermitTTY 1403f7167e0eSDag-Erling SmørgravSpecifies whether 1404f7167e0eSDag-Erling Smørgrav.Xr pty 4 1405f7167e0eSDag-Erling Smørgravallocation is permitted. 1406f7167e0eSDag-Erling SmørgravThe default is 1407ca86bcf2SDag-Erling Smørgrav.Cm yes . 1408ca86bcf2SDag-Erling Smørgrav.It Cm PermitTunnel 1409ca86bcf2SDag-Erling SmørgravSpecifies whether 1410ca86bcf2SDag-Erling Smørgrav.Xr tun 4 1411ca86bcf2SDag-Erling Smørgravdevice forwarding is allowed. 1412ca86bcf2SDag-Erling SmørgravThe argument must be 1413ca86bcf2SDag-Erling Smørgrav.Cm yes , 1414ca86bcf2SDag-Erling Smørgrav.Cm point-to-point 1415ca86bcf2SDag-Erling Smørgrav(layer 3), 1416ca86bcf2SDag-Erling Smørgrav.Cm ethernet 1417ca86bcf2SDag-Erling Smørgrav(layer 2), or 1418ca86bcf2SDag-Erling Smørgrav.Cm no . 1419ca86bcf2SDag-Erling SmørgravSpecifying 1420ca86bcf2SDag-Erling Smørgrav.Cm yes 1421ca86bcf2SDag-Erling Smørgravpermits both 1422ca86bcf2SDag-Erling Smørgrav.Cm point-to-point 1423ca86bcf2SDag-Erling Smørgravand 1424ca86bcf2SDag-Erling Smørgrav.Cm ethernet . 1425ca86bcf2SDag-Erling SmørgravThe default is 1426ca86bcf2SDag-Erling Smørgrav.Cm no . 1427ca86bcf2SDag-Erling Smørgrav.Pp 1428ca86bcf2SDag-Erling SmørgravIndependent of this setting, the permissions of the selected 1429ca86bcf2SDag-Erling Smørgrav.Xr tun 4 1430ca86bcf2SDag-Erling Smørgravdevice must allow access to the user. 1431f388f5efSDag-Erling Smørgrav.It Cm PermitUserEnvironment 1432f388f5efSDag-Erling SmørgravSpecifies whether 1433f388f5efSDag-Erling Smørgrav.Pa ~/.ssh/environment 1434f388f5efSDag-Erling Smørgravand 1435f388f5efSDag-Erling Smørgrav.Cm environment= 1436f388f5efSDag-Erling Smørgravoptions in 1437f388f5efSDag-Erling Smørgrav.Pa ~/.ssh/authorized_keys 1438f388f5efSDag-Erling Smørgravare processed by 1439333ee039SDag-Erling Smørgrav.Xr sshd 8 . 1440190cef3dSDag-Erling SmørgravValid options are 1441190cef3dSDag-Erling Smørgrav.Cm yes , 1442190cef3dSDag-Erling Smørgrav.Cm no 1443190cef3dSDag-Erling Smørgravor a pattern-list specifying which environment variable names to accept 1444190cef3dSDag-Erling Smørgrav(for example 1445190cef3dSDag-Erling Smørgrav.Qq LANG,LC_* ) . 1446f388f5efSDag-Erling SmørgravThe default is 1447ca86bcf2SDag-Erling Smørgrav.Cm no . 1448f388f5efSDag-Erling SmørgravEnabling environment processing may enable users to bypass access 1449f388f5efSDag-Erling Smørgravrestrictions in some configurations using mechanisms such as 1450f388f5efSDag-Erling Smørgrav.Ev LD_PRELOAD . 1451a0ee8cc6SDag-Erling Smørgrav.It Cm PermitUserRC 1452a0ee8cc6SDag-Erling SmørgravSpecifies whether any 1453a0ee8cc6SDag-Erling Smørgrav.Pa ~/.ssh/rc 1454a0ee8cc6SDag-Erling Smørgravfile is executed. 1455a0ee8cc6SDag-Erling SmørgravThe default is 1456ca86bcf2SDag-Erling Smørgrav.Cm yes . 145719261079SEd Maste.It Cm PerSourceMaxStartups 145819261079SEd MasteSpecifies the number of unauthenticated connections allowed from a 145919261079SEd Mastegiven source address, or 146019261079SEd Maste.Dq none 146119261079SEd Masteif there is no limit. 146219261079SEd MasteThis limit is applied in addition to 146319261079SEd Maste.Cm MaxStartups , 146419261079SEd Mastewhichever is lower. 146519261079SEd MasteThe default is 146619261079SEd Maste.Cm none . 146719261079SEd Maste.It Cm PerSourceNetBlockSize 146819261079SEd MasteSpecifies the number of bits of source address that are grouped together 146919261079SEd Mastefor the purposes of applying PerSourceMaxStartups limits. 147019261079SEd MasteValues for IPv4 and optionally IPv6 may be specified, separated by a colon. 147119261079SEd MasteThe default is 147219261079SEd Maste.Cm 32:128 , 147319261079SEd Mastewhich means each address is considered individually. 1474545d5ecaSDag-Erling Smørgrav.It Cm PidFile 1475a82e551fSDag-Erling SmørgravSpecifies the file that contains the process ID of the 1476557f75e5SDag-Erling SmørgravSSH daemon, or 1477ca86bcf2SDag-Erling Smørgrav.Cm none 1478557f75e5SDag-Erling Smørgravto not write one. 1479545d5ecaSDag-Erling SmørgravThe default is 1480545d5ecaSDag-Erling Smørgrav.Pa /var/run/sshd.pid . 1481545d5ecaSDag-Erling Smørgrav.It Cm Port 1482545d5ecaSDag-Erling SmørgravSpecifies the port number that 1483333ee039SDag-Erling Smørgrav.Xr sshd 8 1484545d5ecaSDag-Erling Smørgravlistens on. 1485545d5ecaSDag-Erling SmørgravThe default is 22. 1486545d5ecaSDag-Erling SmørgravMultiple options of this type are permitted. 1487545d5ecaSDag-Erling SmørgravSee also 1488545d5ecaSDag-Erling Smørgrav.Cm ListenAddress . 1489545d5ecaSDag-Erling Smørgrav.It Cm PrintLastLog 1490545d5ecaSDag-Erling SmørgravSpecifies whether 1491333ee039SDag-Erling Smørgrav.Xr sshd 8 1492aa49c926SDag-Erling Smørgravshould print the date and time of the last user login when a user logs 1493aa49c926SDag-Erling Smørgravin interactively. 1494545d5ecaSDag-Erling SmørgravThe default is 1495ca86bcf2SDag-Erling Smørgrav.Cm yes . 1496545d5ecaSDag-Erling Smørgrav.It Cm PrintMotd 1497545d5ecaSDag-Erling SmørgravSpecifies whether 1498333ee039SDag-Erling Smørgrav.Xr sshd 8 1499545d5ecaSDag-Erling Smørgravshould print 1500545d5ecaSDag-Erling Smørgrav.Pa /etc/motd 1501545d5ecaSDag-Erling Smørgravwhen a user logs in interactively. 1502545d5ecaSDag-Erling Smørgrav(On some systems it is also printed by the shell, 1503545d5ecaSDag-Erling Smørgrav.Pa /etc/profile , 1504545d5ecaSDag-Erling Smørgravor equivalent.) 1505545d5ecaSDag-Erling SmørgravThe default is 1506ca86bcf2SDag-Erling Smørgrav.Cm yes . 150719261079SEd Maste.It Cm PubkeyAcceptedAlgorithms 150819261079SEd MasteSpecifies the signature algorithms that will be accepted for public key 150919261079SEd Masteauthentication as a list of comma-separated patterns. 151019261079SEd MasteAlternately if the specified list begins with a 1511eccfee6eSDag-Erling Smørgrav.Sq + 151219261079SEd Mastecharacter, then the specified algorithms will be appended to the default set 1513eccfee6eSDag-Erling Smørgravinstead of replacing them. 151419261079SEd MasteIf the specified list begins with a 1515d93a896eSDag-Erling Smørgrav.Sq - 151619261079SEd Mastecharacter, then the specified algorithms (including wildcards) will be removed 1517d93a896eSDag-Erling Smørgravfrom the default set instead of replacing them. 151819261079SEd MasteIf the specified list begins with a 151919261079SEd Maste.Sq ^ 152019261079SEd Mastecharacter, then the specified algorithms will be placed at the head of the 152119261079SEd Mastedefault set. 1522eccfee6eSDag-Erling SmørgravThe default for this option is: 1523eccfee6eSDag-Erling Smørgrav.Bd -literal -offset 3n 152419261079SEd Mastessh-ed25519-cert-v01@openssh.com, 1525eccfee6eSDag-Erling Smørgravecdsa-sha2-nistp256-cert-v01@openssh.com, 1526eccfee6eSDag-Erling Smørgravecdsa-sha2-nistp384-cert-v01@openssh.com, 1527eccfee6eSDag-Erling Smørgravecdsa-sha2-nistp521-cert-v01@openssh.com, 152819261079SEd Mastesk-ssh-ed25519-cert-v01@openssh.com, 152919261079SEd Mastesk-ecdsa-sha2-nistp256-cert-v01@openssh.com, 153019261079SEd Mastersa-sha2-512-cert-v01@openssh.com, 153119261079SEd Mastersa-sha2-256-cert-v01@openssh.com, 153219261079SEd Mastessh-ed25519, 15339ded3306SDag-Erling Smørgravecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521, 153419261079SEd Mastesk-ssh-ed25519@openssh.com, 153519261079SEd Mastesk-ecdsa-sha2-nistp256@openssh.com, 1536*cea0d368SEd Mastersa-sha2-512,rsa-sha2-256 1537eccfee6eSDag-Erling Smørgrav.Ed 1538eccfee6eSDag-Erling Smørgrav.Pp 153919261079SEd MasteThe list of available signature algorithms may also be obtained using 154019261079SEd Maste.Qq ssh -Q PubkeyAcceptedAlgorithms . 154119261079SEd Maste.It Cm PubkeyAuthOptions 154219261079SEd MasteSets one or more public key authentication options. 154319261079SEd MasteThe supported keywords are: 154419261079SEd Maste.Cm none 154519261079SEd Maste(the default; indicating no additional options are enabled), 154619261079SEd Maste.Cm touch-required 154719261079SEd Masteand 154819261079SEd Maste.Cm verify-required . 154919261079SEd Maste.Pp 155019261079SEd MasteThe 155119261079SEd Maste.Cm touch-required 155219261079SEd Masteoption causes public key authentication using a FIDO authenticator algorithm 155319261079SEd Maste(i.e.\& 155419261079SEd Maste.Cm ecdsa-sk 155519261079SEd Masteor 155619261079SEd Maste.Cm ed25519-sk ) 155719261079SEd Masteto always require the signature to attest that a physically present user 155819261079SEd Masteexplicitly confirmed the authentication (usually by touching the authenticator). 155919261079SEd MasteBy default, 156019261079SEd Maste.Xr sshd 8 156119261079SEd Masterequires user presence unless overridden with an authorized_keys option. 156219261079SEd MasteThe 156319261079SEd Maste.Cm touch-required 156419261079SEd Masteflag disables this override. 156519261079SEd Maste.Pp 156619261079SEd MasteThe 156719261079SEd Maste.Cm verify-required 156819261079SEd Masteoption requires a FIDO key signature attest that the user was verified, 156919261079SEd Mastee.g. via a PIN. 157019261079SEd Maste.Pp 157119261079SEd MasteNeither the 157219261079SEd Maste.Cm touch-required 157319261079SEd Masteor 157419261079SEd Maste.Cm verify-required 157519261079SEd Masteoptions have any effect for other, non-FIDO, public key types. 1576545d5ecaSDag-Erling Smørgrav.It Cm PubkeyAuthentication 1577545d5ecaSDag-Erling SmørgravSpecifies whether public key authentication is allowed. 1578545d5ecaSDag-Erling SmørgravThe default is 1579ca86bcf2SDag-Erling Smørgrav.Cm yes . 1580e4a9863fSDag-Erling Smørgrav.It Cm RekeyLimit 1581e4a9863fSDag-Erling SmørgravSpecifies the maximum amount of data that may be transmitted before the 158219261079SEd Mastesession key is renegotiated, optionally followed by a maximum amount of 1583e4a9863fSDag-Erling Smørgravtime that may pass before the session key is renegotiated. 1584e4a9863fSDag-Erling SmørgravThe first argument is specified in bytes and may have a suffix of 1585e4a9863fSDag-Erling Smørgrav.Sq K , 1586e4a9863fSDag-Erling Smørgrav.Sq M , 1587e4a9863fSDag-Erling Smørgravor 1588e4a9863fSDag-Erling Smørgrav.Sq G 1589e4a9863fSDag-Erling Smørgravto indicate Kilobytes, Megabytes, or Gigabytes, respectively. 1590e4a9863fSDag-Erling SmørgravThe default is between 1591e4a9863fSDag-Erling Smørgrav.Sq 1G 1592e4a9863fSDag-Erling Smørgravand 1593e4a9863fSDag-Erling Smørgrav.Sq 4G , 1594e4a9863fSDag-Erling Smørgravdepending on the cipher. 1595e4a9863fSDag-Erling SmørgravThe optional second value is specified in seconds and may use any of the 1596e4a9863fSDag-Erling Smørgravunits documented in the 1597e4a9863fSDag-Erling Smørgrav.Sx TIME FORMATS 1598e4a9863fSDag-Erling Smørgravsection. 1599e4a9863fSDag-Erling SmørgravThe default value for 1600e4a9863fSDag-Erling Smørgrav.Cm RekeyLimit 1601e4a9863fSDag-Erling Smørgravis 1602ca86bcf2SDag-Erling Smørgrav.Cm default none , 1603e4a9863fSDag-Erling Smørgravwhich means that rekeying is performed after the cipher's default amount 1604e4a9863fSDag-Erling Smørgravof data has been sent or received and no time based rekeying is done. 1605b15c8340SDag-Erling Smørgrav.It Cm RevokedKeys 1606557f75e5SDag-Erling SmørgravSpecifies revoked public keys file, or 1607ca86bcf2SDag-Erling Smørgrav.Cm none 1608557f75e5SDag-Erling Smørgravto not use one. 1609b15c8340SDag-Erling SmørgravKeys listed in this file will be refused for public key authentication. 1610b15c8340SDag-Erling SmørgravNote that if this file is not readable, then public key authentication will 1611b15c8340SDag-Erling Smørgravbe refused for all users. 16126888a9beSDag-Erling SmørgravKeys may be specified as a text file, listing one public key per line, or as 16136888a9beSDag-Erling Smørgravan OpenSSH Key Revocation List (KRL) as generated by 16146888a9beSDag-Erling Smørgrav.Xr ssh-keygen 1 . 1615e4a9863fSDag-Erling SmørgravFor more information on KRLs, see the KEY REVOCATION LISTS section in 16166888a9beSDag-Erling Smørgrav.Xr ssh-keygen 1 . 161747dd1d1bSDag-Erling Smørgrav.It Cm RDomain 161847dd1d1bSDag-Erling SmørgravSpecifies an explicit routing domain that is applied after authentication 161947dd1d1bSDag-Erling Smørgravhas completed. 162019261079SEd MasteThe user session, as well as any forwarded or listening IP sockets, 162147dd1d1bSDag-Erling Smørgravwill be bound to this 162247dd1d1bSDag-Erling Smørgrav.Xr rdomain 4 . 162347dd1d1bSDag-Erling SmørgravIf the routing domain is set to 162447dd1d1bSDag-Erling Smørgrav.Cm \&%D , 162547dd1d1bSDag-Erling Smørgravthen the domain in which the incoming connection was received will be applied. 162619261079SEd Maste.It Cm SecurityKeyProvider 162719261079SEd MasteSpecifies a path to a library that will be used when loading 162819261079SEd MasteFIDO authenticator-hosted keys, overriding the default of using 162919261079SEd Mastethe built-in USB HID support. 1630190cef3dSDag-Erling Smørgrav.It Cm SetEnv 1631190cef3dSDag-Erling SmørgravSpecifies one or more environment variables to set in child sessions started 1632190cef3dSDag-Erling Smørgravby 1633190cef3dSDag-Erling Smørgrav.Xr sshd 8 1634190cef3dSDag-Erling Smørgravas 1635190cef3dSDag-Erling Smørgrav.Dq NAME=VALUE . 1636190cef3dSDag-Erling SmørgravThe environment value may be quoted (e.g. if it contains whitespace 1637190cef3dSDag-Erling Smørgravcharacters). 1638190cef3dSDag-Erling SmørgravEnvironment variables set by 1639190cef3dSDag-Erling Smørgrav.Cm SetEnv 1640190cef3dSDag-Erling Smørgravoverride the default environment and any variables specified by the user 1641190cef3dSDag-Erling Smørgravvia 1642190cef3dSDag-Erling Smørgrav.Cm AcceptEnv 1643190cef3dSDag-Erling Smørgravor 1644190cef3dSDag-Erling Smørgrav.Cm PermitUserEnvironment . 1645a0ee8cc6SDag-Erling Smørgrav.It Cm StreamLocalBindMask 1646a0ee8cc6SDag-Erling SmørgravSets the octal file creation mode mask 1647a0ee8cc6SDag-Erling Smørgrav.Pq umask 1648a0ee8cc6SDag-Erling Smørgravused when creating a Unix-domain socket file for local or remote 1649a0ee8cc6SDag-Erling Smørgravport forwarding. 1650a0ee8cc6SDag-Erling SmørgravThis option is only used for port forwarding to a Unix-domain socket file. 1651a0ee8cc6SDag-Erling Smørgrav.Pp 1652a0ee8cc6SDag-Erling SmørgravThe default value is 0177, which creates a Unix-domain socket file that is 1653a0ee8cc6SDag-Erling Smørgravreadable and writable only by the owner. 1654a0ee8cc6SDag-Erling SmørgravNote that not all operating systems honor the file mode on Unix-domain 1655a0ee8cc6SDag-Erling Smørgravsocket files. 1656a0ee8cc6SDag-Erling Smørgrav.It Cm StreamLocalBindUnlink 1657a0ee8cc6SDag-Erling SmørgravSpecifies whether to remove an existing Unix-domain socket file for local 1658a0ee8cc6SDag-Erling Smørgravor remote port forwarding before creating a new one. 1659a0ee8cc6SDag-Erling SmørgravIf the socket file already exists and 1660a0ee8cc6SDag-Erling Smørgrav.Cm StreamLocalBindUnlink 1661a0ee8cc6SDag-Erling Smørgravis not enabled, 1662a0ee8cc6SDag-Erling Smørgrav.Nm sshd 1663a0ee8cc6SDag-Erling Smørgravwill be unable to forward the port to the Unix-domain socket file. 1664a0ee8cc6SDag-Erling SmørgravThis option is only used for port forwarding to a Unix-domain socket file. 1665a0ee8cc6SDag-Erling Smørgrav.Pp 1666a0ee8cc6SDag-Erling SmørgravThe argument must be 1667ca86bcf2SDag-Erling Smørgrav.Cm yes 1668a0ee8cc6SDag-Erling Smørgravor 1669ca86bcf2SDag-Erling Smørgrav.Cm no . 1670a0ee8cc6SDag-Erling SmørgravThe default is 1671ca86bcf2SDag-Erling Smørgrav.Cm no . 1672545d5ecaSDag-Erling Smørgrav.It Cm StrictModes 1673545d5ecaSDag-Erling SmørgravSpecifies whether 1674333ee039SDag-Erling Smørgrav.Xr sshd 8 1675545d5ecaSDag-Erling Smørgravshould check file modes and ownership of the 1676545d5ecaSDag-Erling Smørgravuser's files and home directory before accepting login. 1677545d5ecaSDag-Erling SmørgravThis is normally desirable because novices sometimes accidentally leave their 1678545d5ecaSDag-Erling Smørgravdirectory or files world-writable. 1679545d5ecaSDag-Erling SmørgravThe default is 1680ca86bcf2SDag-Erling Smørgrav.Cm yes . 1681b15c8340SDag-Erling SmørgravNote that this does not apply to 1682b15c8340SDag-Erling Smørgrav.Cm ChrootDirectory , 1683b15c8340SDag-Erling Smørgravwhose permissions and ownership are checked unconditionally. 1684545d5ecaSDag-Erling Smørgrav.It Cm Subsystem 1685333ee039SDag-Erling SmørgravConfigures an external subsystem (e.g. file transfer daemon). 1686333ee039SDag-Erling SmørgravArguments should be a subsystem name and a command (with optional arguments) 1687333ee039SDag-Erling Smørgravto execute upon subsystem request. 1688d4af9e69SDag-Erling Smørgrav.Pp 1689545d5ecaSDag-Erling SmørgravThe command 1690ca86bcf2SDag-Erling Smørgrav.Cm sftp-server 1691ca86bcf2SDag-Erling Smørgravimplements the SFTP file transfer subsystem. 1692d4af9e69SDag-Erling Smørgrav.Pp 1693d4af9e69SDag-Erling SmørgravAlternately the name 1694ca86bcf2SDag-Erling Smørgrav.Cm internal-sftp 1695ca86bcf2SDag-Erling Smørgravimplements an in-process SFTP server. 1696d4af9e69SDag-Erling SmørgravThis may simplify configurations using 1697d4af9e69SDag-Erling Smørgrav.Cm ChrootDirectory 1698d4af9e69SDag-Erling Smørgravto force a different filesystem root on clients. 1699d4af9e69SDag-Erling Smørgrav.Pp 1700545d5ecaSDag-Erling SmørgravBy default no subsystems are defined. 1701545d5ecaSDag-Erling Smørgrav.It Cm SyslogFacility 1702545d5ecaSDag-Erling SmørgravGives the facility code that is used when logging messages from 1703333ee039SDag-Erling Smørgrav.Xr sshd 8 . 1704545d5ecaSDag-Erling SmørgravThe possible values are: DAEMON, USER, AUTH, LOCAL0, LOCAL1, LOCAL2, 1705545d5ecaSDag-Erling SmørgravLOCAL3, LOCAL4, LOCAL5, LOCAL6, LOCAL7. 1706545d5ecaSDag-Erling SmørgravThe default is AUTH. 17071ec0d754SDag-Erling Smørgrav.It Cm TCPKeepAlive 17081ec0d754SDag-Erling SmørgravSpecifies whether the system should send TCP keepalive messages to the 17091ec0d754SDag-Erling Smørgravother side. 17101ec0d754SDag-Erling SmørgravIf they are sent, death of the connection or crash of one 17111ec0d754SDag-Erling Smørgravof the machines will be properly noticed. 17121ec0d754SDag-Erling SmørgravHowever, this means that 17131ec0d754SDag-Erling Smørgravconnections will die if the route is down temporarily, and some people 17141ec0d754SDag-Erling Smørgravfind it annoying. 17151ec0d754SDag-Erling SmørgravOn the other hand, if TCP keepalives are not sent, 17161ec0d754SDag-Erling Smørgravsessions may hang indefinitely on the server, leaving 1717ca86bcf2SDag-Erling Smørgrav.Qq ghost 17181ec0d754SDag-Erling Smørgravusers and consuming server resources. 17191ec0d754SDag-Erling Smørgrav.Pp 17201ec0d754SDag-Erling SmørgravThe default is 1721ca86bcf2SDag-Erling Smørgrav.Cm yes 17221ec0d754SDag-Erling Smørgrav(to send TCP keepalive messages), and the server will notice 17231ec0d754SDag-Erling Smørgravif the network goes down or the client host crashes. 17241ec0d754SDag-Erling SmørgravThis avoids infinitely hanging sessions. 17251ec0d754SDag-Erling Smørgrav.Pp 17261ec0d754SDag-Erling SmørgravTo disable TCP keepalive messages, the value should be set to 1727ca86bcf2SDag-Erling Smørgrav.Cm no . 1728b15c8340SDag-Erling Smørgrav.It Cm TrustedUserCAKeys 1729b15c8340SDag-Erling SmørgravSpecifies a file containing public keys of certificate authorities that are 1730557f75e5SDag-Erling Smørgravtrusted to sign user certificates for authentication, or 1731ca86bcf2SDag-Erling Smørgrav.Cm none 1732557f75e5SDag-Erling Smørgravto not use one. 1733b15c8340SDag-Erling SmørgravKeys are listed one per line; empty lines and comments starting with 1734b15c8340SDag-Erling Smørgrav.Ql # 1735b15c8340SDag-Erling Smørgravare allowed. 1736b15c8340SDag-Erling SmørgravIf a certificate is presented for authentication and has its signing CA key 1737b15c8340SDag-Erling Smørgravlisted in this file, then it may be used for authentication for any user 1738b15c8340SDag-Erling Smørgravlisted in the certificate's principals list. 1739b15c8340SDag-Erling SmørgravNote that certificates that lack a list of principals will not be permitted 1740b15c8340SDag-Erling Smørgravfor authentication using 1741b15c8340SDag-Erling Smørgrav.Cm TrustedUserCAKeys . 1742e4a9863fSDag-Erling SmørgravFor more details on certificates, see the CERTIFICATES section in 1743b15c8340SDag-Erling Smørgrav.Xr ssh-keygen 1 . 1744b2af61ecSKurt Lidl.It Cm UseBlacklist 1745b2af61ecSKurt LidlSpecifies whether 1746b2af61ecSKurt Lidl.Xr sshd 8 1747b2af61ecSKurt Lidlattempts to send authentication success and failure messages 1748b2af61ecSKurt Lidlto the 1749b2af61ecSKurt Lidl.Xr blacklistd 8 1750b2af61ecSKurt Lidldaemon. 1751b2af61ecSKurt LidlThe default is 1752ca86bcf2SDag-Erling Smørgrav.Cm no . 1753e426c743SEd MasteFor forward compatibility with an upcoming 1754e426c743SEd Maste.Xr blacklistd 1755e426c743SEd Masterename, the 1756e426c743SEd Maste.Cm UseBlocklist 1757e426c743SEd Mastealias can be used instead. 1758cf2b5f3bSDag-Erling Smørgrav.It Cm UseDNS 1759cf2b5f3bSDag-Erling SmørgravSpecifies whether 1760333ee039SDag-Erling Smørgrav.Xr sshd 8 1761eccfee6eSDag-Erling Smørgravshould look up the remote host name, and to check that 1762cf2b5f3bSDag-Erling Smørgravthe resolved host name for the remote IP address maps back to the 1763cf2b5f3bSDag-Erling Smørgravvery same IP address. 1764eccfee6eSDag-Erling Smørgrav.Pp 1765eccfee6eSDag-Erling SmørgravIf this option is set to 1766ca86bcf2SDag-Erling Smørgrav.Cm no , 1767c4cd1fa4SDag-Erling Smørgravthen only addresses and not host names may be used in 1768076ad2f8SDag-Erling Smørgrav.Pa ~/.ssh/authorized_keys 1769eccfee6eSDag-Erling Smørgrav.Cm from 1770eccfee6eSDag-Erling Smørgravand 1771fc1ba28aSDag-Erling Smørgrav.Nm 1772eccfee6eSDag-Erling Smørgrav.Cm Match 1773eccfee6eSDag-Erling Smørgrav.Cm Host 1774eccfee6eSDag-Erling Smørgravdirectives. 1775c4cd1fa4SDag-Erling SmørgravThe default is 1776c4cd1fa4SDag-Erling Smørgrav.Dq yes . 1777cf2b5f3bSDag-Erling Smørgrav.It Cm UsePAM 177821e764dfSDag-Erling SmørgravEnables the Pluggable Authentication Module interface. 177921e764dfSDag-Erling SmørgravIf set to 1780ca86bcf2SDag-Erling Smørgrav.Cm yes 178121e764dfSDag-Erling Smørgravthis will enable PAM authentication using 178219261079SEd Maste.Cm KbdInteractiveAuthentication 1783333ee039SDag-Erling Smørgravand 1784333ee039SDag-Erling Smørgrav.Cm PasswordAuthentication 1785333ee039SDag-Erling Smørgravin addition to PAM account and session module processing for all 1786333ee039SDag-Erling Smørgravauthentication types. 178721e764dfSDag-Erling Smørgrav.Pp 178819261079SEd MasteBecause PAM keyboard-interactive authentication usually serves an equivalent 178921e764dfSDag-Erling Smørgravrole to password authentication, you should disable either 179021e764dfSDag-Erling Smørgrav.Cm PasswordAuthentication 179121e764dfSDag-Erling Smørgravor 179219261079SEd Maste.Cm KbdInteractiveAuthentication . 179321e764dfSDag-Erling Smørgrav.Pp 179421e764dfSDag-Erling SmørgravIf 179521e764dfSDag-Erling Smørgrav.Cm UsePAM 179621e764dfSDag-Erling Smørgravis enabled, you will not be able to run 179721e764dfSDag-Erling Smørgrav.Xr sshd 8 179821e764dfSDag-Erling Smørgravas a non-root user. 179921e764dfSDag-Erling SmørgravThe default is 1800ca86bcf2SDag-Erling Smørgrav.Cm yes . 180135d4ccfbSDag-Erling Smørgrav.It Cm VersionAddendum 1802462c32cbSDag-Erling SmørgravOptionally specifies additional text to append to the SSH protocol banner 1803462c32cbSDag-Erling Smørgravsent by the server upon connection. 1804ee8aeb14SDag-Erling SmørgravThe default is 1805e9e8876aSEd Maste.Qq FreeBSD-20211221 . 18066e571081SBryan DreweryThe value 1807ca86bcf2SDag-Erling Smørgrav.Cm none 18086e571081SBryan Drewerymay be used to disable this. 1809545d5ecaSDag-Erling Smørgrav.It Cm X11DisplayOffset 1810545d5ecaSDag-Erling SmørgravSpecifies the first display number available for 1811333ee039SDag-Erling Smørgrav.Xr sshd 8 Ns 's 1812545d5ecaSDag-Erling SmørgravX11 forwarding. 1813333ee039SDag-Erling SmørgravThis prevents sshd from interfering with real X11 servers. 1814545d5ecaSDag-Erling SmørgravThe default is 10. 1815545d5ecaSDag-Erling Smørgrav.It Cm X11Forwarding 1816545d5ecaSDag-Erling SmørgravSpecifies whether X11 forwarding is permitted. 1817f388f5efSDag-Erling SmørgravThe argument must be 1818ca86bcf2SDag-Erling Smørgrav.Cm yes 1819f388f5efSDag-Erling Smørgravor 1820ca86bcf2SDag-Erling Smørgrav.Cm no . 1821545d5ecaSDag-Erling SmørgravThe default is 1822ca86bcf2SDag-Erling Smørgrav.Cm yes . 1823f388f5efSDag-Erling Smørgrav.Pp 1824f388f5efSDag-Erling SmørgravWhen X11 forwarding is enabled, there may be additional exposure to 1825f388f5efSDag-Erling Smørgravthe server and to client displays if the 1826333ee039SDag-Erling Smørgrav.Xr sshd 8 1827f388f5efSDag-Erling Smørgravproxy display is configured to listen on the wildcard address (see 1828ca86bcf2SDag-Erling Smørgrav.Cm X11UseLocalhost ) , 1829ca86bcf2SDag-Erling Smørgravthough this is not the default. 1830f388f5efSDag-Erling SmørgravAdditionally, the authentication spoofing and authentication data 1831f388f5efSDag-Erling Smørgravverification and substitution occur on the client side. 1832f388f5efSDag-Erling SmørgravThe security risk of using X11 forwarding is that the client's X11 1833333ee039SDag-Erling Smørgravdisplay server may be exposed to attack when the SSH client requests 1834f388f5efSDag-Erling Smørgravforwarding (see the warnings for 1835f388f5efSDag-Erling Smørgrav.Cm ForwardX11 1836f388f5efSDag-Erling Smørgravin 1837f388f5efSDag-Erling Smørgrav.Xr ssh_config 5 ) . 1838f388f5efSDag-Erling SmørgravA system administrator may have a stance in which they want to 1839f388f5efSDag-Erling Smørgravprotect clients that may expose themselves to attack by unwittingly 1840f388f5efSDag-Erling Smørgravrequesting X11 forwarding, which can warrant a 1841ca86bcf2SDag-Erling Smørgrav.Cm no 1842f388f5efSDag-Erling Smørgravsetting. 1843f388f5efSDag-Erling Smørgrav.Pp 1844f388f5efSDag-Erling SmørgravNote that disabling X11 forwarding does not prevent users from 1845f388f5efSDag-Erling Smørgravforwarding X11 traffic, as users can always install their own forwarders. 1846545d5ecaSDag-Erling Smørgrav.It Cm X11UseLocalhost 1847545d5ecaSDag-Erling SmørgravSpecifies whether 1848333ee039SDag-Erling Smørgrav.Xr sshd 8 1849545d5ecaSDag-Erling Smørgravshould bind the X11 forwarding server to the loopback address or to 1850e73e9afaSDag-Erling Smørgravthe wildcard address. 1851e73e9afaSDag-Erling SmørgravBy default, 1852333ee039SDag-Erling Smørgravsshd binds the forwarding server to the loopback address and sets the 1853545d5ecaSDag-Erling Smørgravhostname part of the 1854545d5ecaSDag-Erling Smørgrav.Ev DISPLAY 1855545d5ecaSDag-Erling Smørgravenvironment variable to 1856ca86bcf2SDag-Erling Smørgrav.Cm localhost . 1857f388f5efSDag-Erling SmørgravThis prevents remote hosts from connecting to the proxy display. 1858545d5ecaSDag-Erling SmørgravHowever, some older X11 clients may not function with this 1859545d5ecaSDag-Erling Smørgravconfiguration. 1860545d5ecaSDag-Erling Smørgrav.Cm X11UseLocalhost 1861545d5ecaSDag-Erling Smørgravmay be set to 1862ca86bcf2SDag-Erling Smørgrav.Cm no 1863545d5ecaSDag-Erling Smørgravto specify that the forwarding server should be bound to the wildcard 1864545d5ecaSDag-Erling Smørgravaddress. 1865545d5ecaSDag-Erling SmørgravThe argument must be 1866ca86bcf2SDag-Erling Smørgrav.Cm yes 1867545d5ecaSDag-Erling Smørgravor 1868ca86bcf2SDag-Erling Smørgrav.Cm no . 1869545d5ecaSDag-Erling SmørgravThe default is 1870ca86bcf2SDag-Erling Smørgrav.Cm yes . 1871545d5ecaSDag-Erling Smørgrav.It Cm XAuthLocation 1872f388f5efSDag-Erling SmørgravSpecifies the full pathname of the 1873545d5ecaSDag-Erling Smørgrav.Xr xauth 1 1874557f75e5SDag-Erling Smørgravprogram, or 1875ca86bcf2SDag-Erling Smørgrav.Cm none 1876557f75e5SDag-Erling Smørgravto not use one. 1877545d5ecaSDag-Erling SmørgravThe default is 1878ffea3f5aSDag-Erling Smørgrav.Pa /usr/local/bin/xauth . 1879545d5ecaSDag-Erling Smørgrav.El 1880333ee039SDag-Erling Smørgrav.Sh TIME FORMATS 1881333ee039SDag-Erling Smørgrav.Xr sshd 8 1882545d5ecaSDag-Erling Smørgravcommand-line arguments and configuration file options that specify time 1883545d5ecaSDag-Erling Smørgravmay be expressed using a sequence of the form: 1884545d5ecaSDag-Erling Smørgrav.Sm off 1885f388f5efSDag-Erling Smørgrav.Ar time Op Ar qualifier , 1886545d5ecaSDag-Erling Smørgrav.Sm on 1887545d5ecaSDag-Erling Smørgravwhere 1888545d5ecaSDag-Erling Smørgrav.Ar time 1889545d5ecaSDag-Erling Smørgravis a positive integer value and 1890545d5ecaSDag-Erling Smørgrav.Ar qualifier 1891545d5ecaSDag-Erling Smørgravis one of the following: 1892545d5ecaSDag-Erling Smørgrav.Pp 1893545d5ecaSDag-Erling Smørgrav.Bl -tag -width Ds -compact -offset indent 1894333ee039SDag-Erling Smørgrav.It Aq Cm none 1895545d5ecaSDag-Erling Smørgravseconds 1896545d5ecaSDag-Erling Smørgrav.It Cm s | Cm S 1897545d5ecaSDag-Erling Smørgravseconds 1898545d5ecaSDag-Erling Smørgrav.It Cm m | Cm M 1899545d5ecaSDag-Erling Smørgravminutes 1900545d5ecaSDag-Erling Smørgrav.It Cm h | Cm H 1901545d5ecaSDag-Erling Smørgravhours 1902545d5ecaSDag-Erling Smørgrav.It Cm d | Cm D 1903545d5ecaSDag-Erling Smørgravdays 1904545d5ecaSDag-Erling Smørgrav.It Cm w | Cm W 1905545d5ecaSDag-Erling Smørgravweeks 1906545d5ecaSDag-Erling Smørgrav.El 1907545d5ecaSDag-Erling Smørgrav.Pp 1908545d5ecaSDag-Erling SmørgravEach member of the sequence is added together to calculate 1909545d5ecaSDag-Erling Smørgravthe total time value. 1910545d5ecaSDag-Erling Smørgrav.Pp 1911545d5ecaSDag-Erling SmørgravTime format examples: 1912545d5ecaSDag-Erling Smørgrav.Pp 1913545d5ecaSDag-Erling Smørgrav.Bl -tag -width Ds -compact -offset indent 1914545d5ecaSDag-Erling Smørgrav.It 600 1915545d5ecaSDag-Erling Smørgrav600 seconds (10 minutes) 1916545d5ecaSDag-Erling Smørgrav.It 10m 1917545d5ecaSDag-Erling Smørgrav10 minutes 1918545d5ecaSDag-Erling Smørgrav.It 1h30m 1919545d5ecaSDag-Erling Smørgrav1 hour 30 minutes (90 minutes) 1920545d5ecaSDag-Erling Smørgrav.El 1921ca86bcf2SDag-Erling Smørgrav.Sh TOKENS 1922ca86bcf2SDag-Erling SmørgravArguments to some keywords can make use of tokens, 1923ca86bcf2SDag-Erling Smørgravwhich are expanded at runtime: 1924ca86bcf2SDag-Erling Smørgrav.Pp 1925ca86bcf2SDag-Erling Smørgrav.Bl -tag -width XXXX -offset indent -compact 1926ca86bcf2SDag-Erling Smørgrav.It %% 1927ca86bcf2SDag-Erling SmørgravA literal 1928ca86bcf2SDag-Erling Smørgrav.Sq % . 192947dd1d1bSDag-Erling Smørgrav.It \&%D 193047dd1d1bSDag-Erling SmørgravThe routing domain in which the incoming connection was received. 1931ca86bcf2SDag-Erling Smørgrav.It %F 1932ca86bcf2SDag-Erling SmørgravThe fingerprint of the CA key. 1933ca86bcf2SDag-Erling Smørgrav.It %f 1934ca86bcf2SDag-Erling SmørgravThe fingerprint of the key or certificate. 1935ca86bcf2SDag-Erling Smørgrav.It %h 1936ca86bcf2SDag-Erling SmørgravThe home directory of the user. 1937ca86bcf2SDag-Erling Smørgrav.It %i 1938ca86bcf2SDag-Erling SmørgravThe key ID in the certificate. 1939ca86bcf2SDag-Erling Smørgrav.It %K 1940ca86bcf2SDag-Erling SmørgravThe base64-encoded CA key. 1941ca86bcf2SDag-Erling Smørgrav.It %k 1942ca86bcf2SDag-Erling SmørgravThe base64-encoded key or certificate for authentication. 1943ca86bcf2SDag-Erling Smørgrav.It %s 1944ca86bcf2SDag-Erling SmørgravThe serial number of the certificate. 1945ca86bcf2SDag-Erling Smørgrav.It \&%T 1946ca86bcf2SDag-Erling SmørgravThe type of the CA key. 1947ca86bcf2SDag-Erling Smørgrav.It %t 1948ca86bcf2SDag-Erling SmørgravThe key or certificate type. 1949190cef3dSDag-Erling Smørgrav.It \&%U 1950190cef3dSDag-Erling SmørgravThe numeric user ID of the target user. 1951ca86bcf2SDag-Erling Smørgrav.It %u 1952ca86bcf2SDag-Erling SmørgravThe username. 1953ca86bcf2SDag-Erling Smørgrav.El 1954ca86bcf2SDag-Erling Smørgrav.Pp 1955ca86bcf2SDag-Erling Smørgrav.Cm AuthorizedKeysCommand 1956190cef3dSDag-Erling Smørgravaccepts the tokens %%, %f, %h, %k, %t, %U, and %u. 1957ca86bcf2SDag-Erling Smørgrav.Pp 1958ca86bcf2SDag-Erling Smørgrav.Cm AuthorizedKeysFile 1959190cef3dSDag-Erling Smørgravaccepts the tokens %%, %h, %U, and %u. 1960ca86bcf2SDag-Erling Smørgrav.Pp 1961ca86bcf2SDag-Erling Smørgrav.Cm AuthorizedPrincipalsCommand 1962190cef3dSDag-Erling Smørgravaccepts the tokens %%, %F, %f, %h, %i, %K, %k, %s, %T, %t, %U, and %u. 1963ca86bcf2SDag-Erling Smørgrav.Pp 1964ca86bcf2SDag-Erling Smørgrav.Cm AuthorizedPrincipalsFile 1965190cef3dSDag-Erling Smørgravaccepts the tokens %%, %h, %U, and %u. 1966ca86bcf2SDag-Erling Smørgrav.Pp 1967ca86bcf2SDag-Erling Smørgrav.Cm ChrootDirectory 1968190cef3dSDag-Erling Smørgravaccepts the tokens %%, %h, %U, and %u. 196947dd1d1bSDag-Erling Smørgrav.Pp 197047dd1d1bSDag-Erling Smørgrav.Cm RoutingDomain 197147dd1d1bSDag-Erling Smørgravaccepts the token %D. 1972545d5ecaSDag-Erling Smørgrav.Sh FILES 1973545d5ecaSDag-Erling Smørgrav.Bl -tag -width Ds 1974545d5ecaSDag-Erling Smørgrav.It Pa /etc/ssh/sshd_config 1975545d5ecaSDag-Erling SmørgravContains configuration data for 1976333ee039SDag-Erling Smørgrav.Xr sshd 8 . 1977545d5ecaSDag-Erling SmørgravThis file should be writable by root only, but it is recommended 1978545d5ecaSDag-Erling Smørgrav(though not necessary) that it be world-readable. 1979545d5ecaSDag-Erling Smørgrav.El 1980cf2b5f3bSDag-Erling Smørgrav.Sh SEE ALSO 1981ca86bcf2SDag-Erling Smørgrav.Xr sftp-server 8 , 1982cf2b5f3bSDag-Erling Smørgrav.Xr sshd 8 1983545d5ecaSDag-Erling Smørgrav.Sh AUTHORS 1984ca86bcf2SDag-Erling Smørgrav.An -nosplit 1985545d5ecaSDag-Erling SmørgravOpenSSH is a derivative of the original and free 1986ca86bcf2SDag-Erling Smørgravssh 1.2.12 release by 1987ca86bcf2SDag-Erling Smørgrav.An Tatu Ylonen . 1988ca86bcf2SDag-Erling Smørgrav.An Aaron Campbell , Bob Beck , Markus Friedl , Niels Provos , 1989ca86bcf2SDag-Erling Smørgrav.An Theo de Raadt 1990ca86bcf2SDag-Erling Smørgravand 1991ca86bcf2SDag-Erling Smørgrav.An Dug Song 1992545d5ecaSDag-Erling Smørgravremoved many bugs, re-added newer features and 1993545d5ecaSDag-Erling Smørgravcreated OpenSSH. 1994ca86bcf2SDag-Erling Smørgrav.An Markus Friedl 1995ca86bcf2SDag-Erling Smørgravcontributed the support for SSH protocol versions 1.5 and 2.0. 1996ca86bcf2SDag-Erling Smørgrav.An Niels Provos 1997ca86bcf2SDag-Erling Smørgravand 1998ca86bcf2SDag-Erling Smørgrav.An Markus Friedl 1999ca86bcf2SDag-Erling Smørgravcontributed support for privilege separation. 2000