xref: /freebsd/crypto/openssh/sshd_config.5 (revision cce7d3464f90246064915b2a37a95ef8a07c7370)
1545d5ecaSDag-Erling Smørgrav.\"  -*- nroff -*-
2545d5ecaSDag-Erling Smørgrav.\"
3545d5ecaSDag-Erling Smørgrav.\" Author: Tatu Ylonen <ylo@cs.hut.fi>
4545d5ecaSDag-Erling Smørgrav.\" Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
5545d5ecaSDag-Erling Smørgrav.\"                    All rights reserved
6545d5ecaSDag-Erling Smørgrav.\"
7545d5ecaSDag-Erling Smørgrav.\" As far as I am concerned, the code I have written for this software
8545d5ecaSDag-Erling Smørgrav.\" can be used freely for any purpose.  Any derived versions of this
9545d5ecaSDag-Erling Smørgrav.\" software must be clearly marked as such, and if the derived work is
10545d5ecaSDag-Erling Smørgrav.\" incompatible with the protocol description in the RFC file, it must be
11545d5ecaSDag-Erling Smørgrav.\" called by a name other than "ssh" or "Secure Shell".
12545d5ecaSDag-Erling Smørgrav.\"
13545d5ecaSDag-Erling Smørgrav.\" Copyright (c) 1999,2000 Markus Friedl.  All rights reserved.
14545d5ecaSDag-Erling Smørgrav.\" Copyright (c) 1999 Aaron Campbell.  All rights reserved.
15545d5ecaSDag-Erling Smørgrav.\" Copyright (c) 1999 Theo de Raadt.  All rights reserved.
16545d5ecaSDag-Erling Smørgrav.\"
17545d5ecaSDag-Erling Smørgrav.\" Redistribution and use in source and binary forms, with or without
18545d5ecaSDag-Erling Smørgrav.\" modification, are permitted provided that the following conditions
19545d5ecaSDag-Erling Smørgrav.\" are met:
20545d5ecaSDag-Erling Smørgrav.\" 1. Redistributions of source code must retain the above copyright
21545d5ecaSDag-Erling Smørgrav.\"    notice, this list of conditions and the following disclaimer.
22545d5ecaSDag-Erling Smørgrav.\" 2. Redistributions in binary form must reproduce the above copyright
23545d5ecaSDag-Erling Smørgrav.\"    notice, this list of conditions and the following disclaimer in the
24545d5ecaSDag-Erling Smørgrav.\"    documentation and/or other materials provided with the distribution.
25545d5ecaSDag-Erling Smørgrav.\"
26545d5ecaSDag-Erling Smørgrav.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
27545d5ecaSDag-Erling Smørgrav.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
28545d5ecaSDag-Erling Smørgrav.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
29545d5ecaSDag-Erling Smørgrav.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
30545d5ecaSDag-Erling Smørgrav.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
31545d5ecaSDag-Erling Smørgrav.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
32545d5ecaSDag-Erling Smørgrav.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
33545d5ecaSDag-Erling Smørgrav.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
34545d5ecaSDag-Erling Smørgrav.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
35545d5ecaSDag-Erling Smørgrav.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
36545d5ecaSDag-Erling Smørgrav.\"
37cce7d346SDag-Erling Smørgrav.\" $OpenBSD: sshd_config.5,v 1.102 2009/02/22 23:59:25 djm Exp $
3835d4ccfbSDag-Erling Smørgrav.\" $FreeBSD$
39cce7d346SDag-Erling Smørgrav.Dd February 22 2009
40545d5ecaSDag-Erling Smørgrav.Dt SSHD_CONFIG 5
41545d5ecaSDag-Erling Smørgrav.Os
42545d5ecaSDag-Erling Smørgrav.Sh NAME
43545d5ecaSDag-Erling Smørgrav.Nm sshd_config
44545d5ecaSDag-Erling Smørgrav.Nd OpenSSH SSH daemon configuration file
45545d5ecaSDag-Erling Smørgrav.Sh SYNOPSIS
46d4af9e69SDag-Erling Smørgrav.Nm /etc/ssh/sshd_config
47545d5ecaSDag-Erling Smørgrav.Sh DESCRIPTION
48333ee039SDag-Erling Smørgrav.Xr sshd 8
49545d5ecaSDag-Erling Smørgravreads configuration data from
50545d5ecaSDag-Erling Smørgrav.Pa /etc/ssh/sshd_config
51545d5ecaSDag-Erling Smørgrav(or the file specified with
52545d5ecaSDag-Erling Smørgrav.Fl f
53545d5ecaSDag-Erling Smørgravon the command line).
54545d5ecaSDag-Erling SmørgravThe file contains keyword-argument pairs, one per line.
55545d5ecaSDag-Erling SmørgravLines starting with
56545d5ecaSDag-Erling Smørgrav.Ql #
57545d5ecaSDag-Erling Smørgravand empty lines are interpreted as comments.
58333ee039SDag-Erling SmørgravArguments may optionally be enclosed in double quotes
59333ee039SDag-Erling Smørgrav.Pq \&"
60333ee039SDag-Erling Smørgravin order to represent arguments containing spaces.
61545d5ecaSDag-Erling Smørgrav.Pp
62545d5ecaSDag-Erling SmørgravThe possible
63545d5ecaSDag-Erling Smørgravkeywords and their meanings are as follows (note that
64545d5ecaSDag-Erling Smørgravkeywords are case-insensitive and arguments are case-sensitive):
65545d5ecaSDag-Erling Smørgrav.Bl -tag -width Ds
6621e764dfSDag-Erling Smørgrav.It Cm AcceptEnv
6721e764dfSDag-Erling SmørgravSpecifies what environment variables sent by the client will be copied into
6821e764dfSDag-Erling Smørgravthe session's
6921e764dfSDag-Erling Smørgrav.Xr environ 7 .
7021e764dfSDag-Erling SmørgravSee
7121e764dfSDag-Erling Smørgrav.Cm SendEnv
7221e764dfSDag-Erling Smørgravin
7321e764dfSDag-Erling Smørgrav.Xr ssh_config 5
7421e764dfSDag-Erling Smørgravfor how to configure the client.
7521e764dfSDag-Erling SmørgravNote that environment passing is only supported for protocol 2.
7621e764dfSDag-Erling SmørgravVariables are specified by name, which may contain the wildcard characters
77333ee039SDag-Erling Smørgrav.Ql *
7821e764dfSDag-Erling Smørgravand
7921e764dfSDag-Erling Smørgrav.Ql \&? .
8021e764dfSDag-Erling SmørgravMultiple environment variables may be separated by whitespace or spread
8121e764dfSDag-Erling Smørgravacross multiple
8221e764dfSDag-Erling Smørgrav.Cm AcceptEnv
8321e764dfSDag-Erling Smørgravdirectives.
8421e764dfSDag-Erling SmørgravBe warned that some environment variables could be used to bypass restricted
8521e764dfSDag-Erling Smørgravuser environments.
8621e764dfSDag-Erling SmørgravFor this reason, care should be taken in the use of this directive.
8721e764dfSDag-Erling SmørgravThe default is not to accept any environment variables.
88aa49c926SDag-Erling Smørgrav.It Cm AddressFamily
89aa49c926SDag-Erling SmørgravSpecifies which address family should be used by
90333ee039SDag-Erling Smørgrav.Xr sshd 8 .
91aa49c926SDag-Erling SmørgravValid arguments are
92aa49c926SDag-Erling Smørgrav.Dq any ,
93aa49c926SDag-Erling Smørgrav.Dq inet
94333ee039SDag-Erling Smørgrav(use IPv4 only), or
95aa49c926SDag-Erling Smørgrav.Dq inet6
96aa49c926SDag-Erling Smørgrav(use IPv6 only).
97aa49c926SDag-Erling SmørgravThe default is
98aa49c926SDag-Erling Smørgrav.Dq any .
99d4af9e69SDag-Erling Smørgrav.It Cm AllowAgentForwarding
100d4af9e69SDag-Erling SmørgravSpecifies whether
101d4af9e69SDag-Erling Smørgrav.Xr ssh-agent 1
102d4af9e69SDag-Erling Smørgravforwarding is permitted.
103d4af9e69SDag-Erling SmørgravThe default is
104d4af9e69SDag-Erling Smørgrav.Dq yes .
105d4af9e69SDag-Erling SmørgravNote that disabling agent forwarding does not improve security
106d4af9e69SDag-Erling Smørgravunless users are also denied shell access, as they can always install
107d4af9e69SDag-Erling Smørgravtheir own forwarders.
108545d5ecaSDag-Erling Smørgrav.It Cm AllowGroups
109545d5ecaSDag-Erling SmørgravThis keyword can be followed by a list of group name patterns, separated
110545d5ecaSDag-Erling Smørgravby spaces.
111545d5ecaSDag-Erling SmørgravIf specified, login is allowed only for users whose primary
112545d5ecaSDag-Erling Smørgravgroup or supplementary group list matches one of the patterns.
113545d5ecaSDag-Erling SmørgravOnly group names are valid; a numerical group ID is not recognized.
114545d5ecaSDag-Erling SmørgravBy default, login is allowed for all groups.
115333ee039SDag-Erling SmørgravThe allow/deny directives are processed in the following order:
116333ee039SDag-Erling Smørgrav.Cm DenyUsers ,
117333ee039SDag-Erling Smørgrav.Cm AllowUsers ,
118333ee039SDag-Erling Smørgrav.Cm DenyGroups ,
119333ee039SDag-Erling Smørgravand finally
120333ee039SDag-Erling Smørgrav.Cm AllowGroups .
121333ee039SDag-Erling Smørgrav.Pp
122333ee039SDag-Erling SmørgravSee
123333ee039SDag-Erling Smørgrav.Sx PATTERNS
124333ee039SDag-Erling Smørgravin
125333ee039SDag-Erling Smørgrav.Xr ssh_config 5
126333ee039SDag-Erling Smørgravfor more information on patterns.
127545d5ecaSDag-Erling Smørgrav.It Cm AllowTcpForwarding
128545d5ecaSDag-Erling SmørgravSpecifies whether TCP forwarding is permitted.
129545d5ecaSDag-Erling SmørgravThe default is
130545d5ecaSDag-Erling Smørgrav.Dq yes .
131545d5ecaSDag-Erling SmørgravNote that disabling TCP forwarding does not improve security unless
132545d5ecaSDag-Erling Smørgravusers are also denied shell access, as they can always install their
133545d5ecaSDag-Erling Smørgravown forwarders.
134545d5ecaSDag-Erling Smørgrav.It Cm AllowUsers
135545d5ecaSDag-Erling SmørgravThis keyword can be followed by a list of user name patterns, separated
136545d5ecaSDag-Erling Smørgravby spaces.
137e73e9afaSDag-Erling SmørgravIf specified, login is allowed only for user names that
138545d5ecaSDag-Erling Smørgravmatch one of the patterns.
139545d5ecaSDag-Erling SmørgravOnly user names are valid; a numerical user ID is not recognized.
140545d5ecaSDag-Erling SmørgravBy default, login is allowed for all users.
141545d5ecaSDag-Erling SmørgravIf the pattern takes the form USER@HOST then USER and HOST
142545d5ecaSDag-Erling Smørgravare separately checked, restricting logins to particular
143545d5ecaSDag-Erling Smørgravusers from particular hosts.
144333ee039SDag-Erling SmørgravThe allow/deny directives are processed in the following order:
145333ee039SDag-Erling Smørgrav.Cm DenyUsers ,
146333ee039SDag-Erling Smørgrav.Cm AllowUsers ,
147333ee039SDag-Erling Smørgrav.Cm DenyGroups ,
148333ee039SDag-Erling Smørgravand finally
149333ee039SDag-Erling Smørgrav.Cm AllowGroups .
150333ee039SDag-Erling Smørgrav.Pp
151333ee039SDag-Erling SmørgravSee
152333ee039SDag-Erling Smørgrav.Sx PATTERNS
153333ee039SDag-Erling Smørgravin
154333ee039SDag-Erling Smørgrav.Xr ssh_config 5
155333ee039SDag-Erling Smørgravfor more information on patterns.
156545d5ecaSDag-Erling Smørgrav.It Cm AuthorizedKeysFile
157545d5ecaSDag-Erling SmørgravSpecifies the file that contains the public keys that can be used
158545d5ecaSDag-Erling Smørgravfor user authentication.
159545d5ecaSDag-Erling Smørgrav.Cm AuthorizedKeysFile
160545d5ecaSDag-Erling Smørgravmay contain tokens of the form %T which are substituted during connection
161333ee039SDag-Erling Smørgravsetup.
162cf2b5f3bSDag-Erling SmørgravThe following tokens are defined: %% is replaced by a literal '%',
163333ee039SDag-Erling Smørgrav%h is replaced by the home directory of the user being authenticated, and
164545d5ecaSDag-Erling Smørgrav%u is replaced by the username of that user.
165545d5ecaSDag-Erling SmørgravAfter expansion,
166545d5ecaSDag-Erling Smørgrav.Cm AuthorizedKeysFile
167545d5ecaSDag-Erling Smørgravis taken to be an absolute path or one relative to the user's home
168545d5ecaSDag-Erling Smørgravdirectory.
169545d5ecaSDag-Erling SmørgravThe default is
170545d5ecaSDag-Erling Smørgrav.Dq .ssh/authorized_keys .
171545d5ecaSDag-Erling Smørgrav.It Cm Banner
172545d5ecaSDag-Erling SmørgravThe contents of the specified file are sent to the remote user before
173545d5ecaSDag-Erling Smørgravauthentication is allowed.
174d4af9e69SDag-Erling SmørgravIf the argument is
175d4af9e69SDag-Erling Smørgrav.Dq none
176d4af9e69SDag-Erling Smørgravthen no banner is displayed.
177545d5ecaSDag-Erling SmørgravThis option is only available for protocol version 2.
178545d5ecaSDag-Erling SmørgravBy default, no banner is displayed.
179545d5ecaSDag-Erling Smørgrav.It Cm ChallengeResponseAuthentication
180ee8aeb14SDag-Erling SmørgravSpecifies whether challenge-response authentication is allowed.
181d4af9e69SDag-Erling SmørgravSee also
182d4af9e69SDag-Erling Smørgrav.Cm UsePAM .
183545d5ecaSDag-Erling SmørgravThe default is
184545d5ecaSDag-Erling Smørgrav.Dq yes .
185d4af9e69SDag-Erling Smørgrav.It Cm ChrootDirectory
186d4af9e69SDag-Erling SmørgravSpecifies a path to
187d4af9e69SDag-Erling Smørgrav.Xr chroot 2
188d4af9e69SDag-Erling Smørgravto after authentication.
189d4af9e69SDag-Erling SmørgravThis path, and all its components, must be root-owned directories that are
190d4af9e69SDag-Erling Smørgravnot writable by any other user or group.
191d4af9e69SDag-Erling Smørgrav.Pp
192d4af9e69SDag-Erling SmørgravThe path may contain the following tokens that are expanded at runtime once
193d4af9e69SDag-Erling Smørgravthe connecting user has been authenticated: %% is replaced by a literal '%',
194d4af9e69SDag-Erling Smørgrav%h is replaced by the home directory of the user being authenticated, and
195d4af9e69SDag-Erling Smørgrav%u is replaced by the username of that user.
196d4af9e69SDag-Erling Smørgrav.Pp
197d4af9e69SDag-Erling SmørgravThe
198d4af9e69SDag-Erling Smørgrav.Cm ChrootDirectory
199d4af9e69SDag-Erling Smørgravmust contain the necessary files and directories to support the
200d4af9e69SDag-Erling Smørgravusers' session.
201d4af9e69SDag-Erling SmørgravFor an interactive session this requires at least a shell, typically
202d4af9e69SDag-Erling Smørgrav.Xr sh 1 ,
203d4af9e69SDag-Erling Smørgravand basic
204d4af9e69SDag-Erling Smørgrav.Pa /dev
205d4af9e69SDag-Erling Smørgravnodes such as
206d4af9e69SDag-Erling Smørgrav.Xr null 4 ,
207d4af9e69SDag-Erling Smørgrav.Xr zero 4 ,
208d4af9e69SDag-Erling Smørgrav.Xr stdin 4 ,
209d4af9e69SDag-Erling Smørgrav.Xr stdout 4 ,
210d4af9e69SDag-Erling Smørgrav.Xr stderr 4 ,
211d4af9e69SDag-Erling Smørgrav.Xr arandom 4
212d4af9e69SDag-Erling Smørgravand
213d4af9e69SDag-Erling Smørgrav.Xr tty 4
214d4af9e69SDag-Erling Smørgravdevices.
215d4af9e69SDag-Erling SmørgravFor file transfer sessions using
216d4af9e69SDag-Erling Smørgrav.Dq sftp ,
217d4af9e69SDag-Erling Smørgravno additional configuration of the environment is necessary if the
218d4af9e69SDag-Erling Smørgravin-process sftp server is used (see
219d4af9e69SDag-Erling Smørgrav.Cm Subsystem
220d4af9e69SDag-Erling Smørgravfor details).
221d4af9e69SDag-Erling Smørgrav.Pp
222d4af9e69SDag-Erling SmørgravThe default is not to
223d4af9e69SDag-Erling Smørgrav.Xr chroot 2 .
224545d5ecaSDag-Erling Smørgrav.It Cm Ciphers
225545d5ecaSDag-Erling SmørgravSpecifies the ciphers allowed for protocol version 2.
226545d5ecaSDag-Erling SmørgravMultiple ciphers must be comma-separated.
22721e764dfSDag-Erling SmørgravThe supported ciphers are
22821e764dfSDag-Erling Smørgrav.Dq 3des-cbc ,
22921e764dfSDag-Erling Smørgrav.Dq aes128-cbc ,
23021e764dfSDag-Erling Smørgrav.Dq aes192-cbc ,
23121e764dfSDag-Erling Smørgrav.Dq aes256-cbc ,
23221e764dfSDag-Erling Smørgrav.Dq aes128-ctr ,
23321e764dfSDag-Erling Smørgrav.Dq aes192-ctr ,
23421e764dfSDag-Erling Smørgrav.Dq aes256-ctr ,
235d4ecd108SDag-Erling Smørgrav.Dq arcfour128 ,
236d4ecd108SDag-Erling Smørgrav.Dq arcfour256 ,
23721e764dfSDag-Erling Smørgrav.Dq arcfour ,
23821e764dfSDag-Erling Smørgrav.Dq blowfish-cbc ,
23921e764dfSDag-Erling Smørgravand
24021e764dfSDag-Erling Smørgrav.Dq cast128-cbc .
241333ee039SDag-Erling SmørgravThe default is:
242333ee039SDag-Erling Smørgrav.Bd -literal -offset 3n
243cce7d346SDag-Erling Smørgravaes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,
244cce7d346SDag-Erling Smørgravaes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,
245cce7d346SDag-Erling Smørgravaes256-cbc,arcfour
246545d5ecaSDag-Erling Smørgrav.Ed
247545d5ecaSDag-Erling Smørgrav.It Cm ClientAliveCountMax
248b74df5b2SDag-Erling SmørgravSets the number of client alive messages (see below) which may be
249545d5ecaSDag-Erling Smørgravsent without
250333ee039SDag-Erling Smørgrav.Xr sshd 8
251cf2b5f3bSDag-Erling Smørgravreceiving any messages back from the client.
252cf2b5f3bSDag-Erling SmørgravIf this threshold is reached while client alive messages are being sent,
253333ee039SDag-Erling Smørgravsshd will disconnect the client, terminating the session.
254cf2b5f3bSDag-Erling SmørgravIt is important to note that the use of client alive messages is very
255cf2b5f3bSDag-Erling Smørgravdifferent from
2561ec0d754SDag-Erling Smørgrav.Cm TCPKeepAlive
257cf2b5f3bSDag-Erling Smørgrav(below).
258cf2b5f3bSDag-Erling SmørgravThe client alive messages are sent through the encrypted channel
259cf2b5f3bSDag-Erling Smørgravand therefore will not be spoofable.
260cf2b5f3bSDag-Erling SmørgravThe TCP keepalive option enabled by
2611ec0d754SDag-Erling Smørgrav.Cm TCPKeepAlive
262cf2b5f3bSDag-Erling Smørgravis spoofable.
263cf2b5f3bSDag-Erling SmørgravThe client alive mechanism is valuable when the client or
264545d5ecaSDag-Erling Smørgravserver depend on knowing when a connection has become inactive.
265545d5ecaSDag-Erling Smørgrav.Pp
266cf2b5f3bSDag-Erling SmørgravThe default value is 3.
267cf2b5f3bSDag-Erling SmørgravIf
268545d5ecaSDag-Erling Smørgrav.Cm ClientAliveInterval
269b74df5b2SDag-Erling Smørgrav(see below) is set to 15, and
270545d5ecaSDag-Erling Smørgrav.Cm ClientAliveCountMax
271333ee039SDag-Erling Smørgravis left at the default, unresponsive SSH clients
272545d5ecaSDag-Erling Smørgravwill be disconnected after approximately 45 seconds.
273333ee039SDag-Erling SmørgravThis option applies to protocol version 2 only.
274d4ecd108SDag-Erling Smørgrav.It Cm ClientAliveInterval
275d4ecd108SDag-Erling SmørgravSets a timeout interval in seconds after which if no data has been received
276d4ecd108SDag-Erling Smørgravfrom the client,
277333ee039SDag-Erling Smørgrav.Xr sshd 8
278d4ecd108SDag-Erling Smørgravwill send a message through the encrypted
279d4ecd108SDag-Erling Smørgravchannel to request a response from the client.
280d4ecd108SDag-Erling SmørgravThe default
281d4ecd108SDag-Erling Smørgravis 0, indicating that these messages will not be sent to the client.
282d4ecd108SDag-Erling SmørgravThis option applies to protocol version 2 only.
283545d5ecaSDag-Erling Smørgrav.It Cm Compression
284d4ecd108SDag-Erling SmørgravSpecifies whether compression is allowed, or delayed until
285d4ecd108SDag-Erling Smørgravthe user has authenticated successfully.
286545d5ecaSDag-Erling SmørgravThe argument must be
287d4ecd108SDag-Erling Smørgrav.Dq yes ,
288d4ecd108SDag-Erling Smørgrav.Dq delayed ,
289545d5ecaSDag-Erling Smørgravor
290545d5ecaSDag-Erling Smørgrav.Dq no .
291545d5ecaSDag-Erling SmørgravThe default is
292d4ecd108SDag-Erling Smørgrav.Dq delayed .
293545d5ecaSDag-Erling Smørgrav.It Cm DenyGroups
294545d5ecaSDag-Erling SmørgravThis keyword can be followed by a list of group name patterns, separated
295545d5ecaSDag-Erling Smørgravby spaces.
296545d5ecaSDag-Erling SmørgravLogin is disallowed for users whose primary group or supplementary
297545d5ecaSDag-Erling Smørgravgroup list matches one of the patterns.
298545d5ecaSDag-Erling SmørgravOnly group names are valid; a numerical group ID is not recognized.
299545d5ecaSDag-Erling SmørgravBy default, login is allowed for all groups.
300333ee039SDag-Erling SmørgravThe allow/deny directives are processed in the following order:
301333ee039SDag-Erling Smørgrav.Cm DenyUsers ,
302333ee039SDag-Erling Smørgrav.Cm AllowUsers ,
303333ee039SDag-Erling Smørgrav.Cm DenyGroups ,
304333ee039SDag-Erling Smørgravand finally
305333ee039SDag-Erling Smørgrav.Cm AllowGroups .
306333ee039SDag-Erling Smørgrav.Pp
307333ee039SDag-Erling SmørgravSee
308333ee039SDag-Erling Smørgrav.Sx PATTERNS
309333ee039SDag-Erling Smørgravin
310333ee039SDag-Erling Smørgrav.Xr ssh_config 5
311333ee039SDag-Erling Smørgravfor more information on patterns.
312545d5ecaSDag-Erling Smørgrav.It Cm DenyUsers
313545d5ecaSDag-Erling SmørgravThis keyword can be followed by a list of user name patterns, separated
314545d5ecaSDag-Erling Smørgravby spaces.
315545d5ecaSDag-Erling SmørgravLogin is disallowed for user names that match one of the patterns.
316545d5ecaSDag-Erling SmørgravOnly user names are valid; a numerical user ID is not recognized.
317545d5ecaSDag-Erling SmørgravBy default, login is allowed for all users.
318545d5ecaSDag-Erling SmørgravIf the pattern takes the form USER@HOST then USER and HOST
319545d5ecaSDag-Erling Smørgravare separately checked, restricting logins to particular
320545d5ecaSDag-Erling Smørgravusers from particular hosts.
321333ee039SDag-Erling SmørgravThe allow/deny directives are processed in the following order:
322333ee039SDag-Erling Smørgrav.Cm DenyUsers ,
323333ee039SDag-Erling Smørgrav.Cm AllowUsers ,
324333ee039SDag-Erling Smørgrav.Cm DenyGroups ,
325333ee039SDag-Erling Smørgravand finally
326333ee039SDag-Erling Smørgrav.Cm AllowGroups .
327333ee039SDag-Erling Smørgrav.Pp
328333ee039SDag-Erling SmørgravSee
329333ee039SDag-Erling Smørgrav.Sx PATTERNS
330333ee039SDag-Erling Smørgravin
331333ee039SDag-Erling Smørgrav.Xr ssh_config 5
332333ee039SDag-Erling Smørgravfor more information on patterns.
333333ee039SDag-Erling Smørgrav.It Cm ForceCommand
334333ee039SDag-Erling SmørgravForces the execution of the command specified by
335333ee039SDag-Erling Smørgrav.Cm ForceCommand ,
336d4af9e69SDag-Erling Smørgravignoring any command supplied by the client and
337d4af9e69SDag-Erling Smørgrav.Pa ~/.ssh/rc
338d4af9e69SDag-Erling Smørgravif present.
339333ee039SDag-Erling SmørgravThe command is invoked by using the user's login shell with the -c option.
340333ee039SDag-Erling SmørgravThis applies to shell, command, or subsystem execution.
341333ee039SDag-Erling SmørgravIt is most useful inside a
342333ee039SDag-Erling Smørgrav.Cm Match
343333ee039SDag-Erling Smørgravblock.
344333ee039SDag-Erling SmørgravThe command originally supplied by the client is available in the
345333ee039SDag-Erling Smørgrav.Ev SSH_ORIGINAL_COMMAND
346333ee039SDag-Erling Smørgravenvironment variable.
347d4af9e69SDag-Erling SmørgravSpecifying a command of
348d4af9e69SDag-Erling Smørgrav.Dq internal-sftp
349d4af9e69SDag-Erling Smørgravwill force the use of an in-process sftp server that requires no support
350d4af9e69SDag-Erling Smørgravfiles when used with
351d4af9e69SDag-Erling Smørgrav.Cm ChrootDirectory .
352545d5ecaSDag-Erling Smørgrav.It Cm GatewayPorts
353545d5ecaSDag-Erling SmørgravSpecifies whether remote hosts are allowed to connect to ports
354545d5ecaSDag-Erling Smørgravforwarded for the client.
355545d5ecaSDag-Erling SmørgravBy default,
356333ee039SDag-Erling Smørgrav.Xr sshd 8
357e73e9afaSDag-Erling Smørgravbinds remote port forwardings to the loopback address.
358e73e9afaSDag-Erling SmørgravThis prevents other remote hosts from connecting to forwarded ports.
359545d5ecaSDag-Erling Smørgrav.Cm GatewayPorts
360333ee039SDag-Erling Smørgravcan be used to specify that sshd
361aa49c926SDag-Erling Smørgravshould allow remote port forwardings to bind to non-loopback addresses, thus
362aa49c926SDag-Erling Smørgravallowing other hosts to connect.
363aa49c926SDag-Erling SmørgravThe argument may be
364aa49c926SDag-Erling Smørgrav.Dq no
365aa49c926SDag-Erling Smørgravto force remote port forwardings to be available to the local host only,
366545d5ecaSDag-Erling Smørgrav.Dq yes
367aa49c926SDag-Erling Smørgravto force remote port forwardings to bind to the wildcard address, or
368aa49c926SDag-Erling Smørgrav.Dq clientspecified
369aa49c926SDag-Erling Smørgravto allow the client to select the address to which the forwarding is bound.
370545d5ecaSDag-Erling SmørgravThe default is
371545d5ecaSDag-Erling Smørgrav.Dq no .
372cf2b5f3bSDag-Erling Smørgrav.It Cm GSSAPIAuthentication
373cf2b5f3bSDag-Erling SmørgravSpecifies whether user authentication based on GSSAPI is allowed.
374cf2b5f3bSDag-Erling SmørgravThe default is
375cf2b5f3bSDag-Erling Smørgrav.Dq no .
376cf2b5f3bSDag-Erling SmørgravNote that this option applies to protocol version 2 only.
377cf2b5f3bSDag-Erling Smørgrav.It Cm GSSAPICleanupCredentials
378cf2b5f3bSDag-Erling SmørgravSpecifies whether to automatically destroy the user's credentials cache
379cf2b5f3bSDag-Erling Smørgravon logout.
380cf2b5f3bSDag-Erling SmørgravThe default is
381cf2b5f3bSDag-Erling Smørgrav.Dq yes .
382cf2b5f3bSDag-Erling SmørgravNote that this option applies to protocol version 2 only.
383545d5ecaSDag-Erling Smørgrav.It Cm HostbasedAuthentication
384545d5ecaSDag-Erling SmørgravSpecifies whether rhosts or /etc/hosts.equiv authentication together
385545d5ecaSDag-Erling Smørgravwith successful public key client host authentication is allowed
386333ee039SDag-Erling Smørgrav(host-based authentication).
387545d5ecaSDag-Erling SmørgravThis option is similar to
388545d5ecaSDag-Erling Smørgrav.Cm RhostsRSAAuthentication
389545d5ecaSDag-Erling Smørgravand applies to protocol version 2 only.
390545d5ecaSDag-Erling SmørgravThe default is
391545d5ecaSDag-Erling Smørgrav.Dq no .
392333ee039SDag-Erling Smørgrav.It Cm HostbasedUsesNameFromPacketOnly
393333ee039SDag-Erling SmørgravSpecifies whether or not the server will attempt to perform a reverse
394333ee039SDag-Erling Smørgravname lookup when matching the name in the
395333ee039SDag-Erling Smørgrav.Pa ~/.shosts ,
396333ee039SDag-Erling Smørgrav.Pa ~/.rhosts ,
397333ee039SDag-Erling Smørgravand
398333ee039SDag-Erling Smørgrav.Pa /etc/hosts.equiv
399333ee039SDag-Erling Smørgravfiles during
400333ee039SDag-Erling Smørgrav.Cm HostbasedAuthentication .
401333ee039SDag-Erling SmørgravA setting of
402333ee039SDag-Erling Smørgrav.Dq yes
403333ee039SDag-Erling Smørgravmeans that
404333ee039SDag-Erling Smørgrav.Xr sshd 8
405333ee039SDag-Erling Smørgravuses the name supplied by the client rather than
406333ee039SDag-Erling Smørgravattempting to resolve the name from the TCP connection itself.
407333ee039SDag-Erling SmørgravThe default is
408333ee039SDag-Erling Smørgrav.Dq no .
409545d5ecaSDag-Erling Smørgrav.It Cm HostKey
410545d5ecaSDag-Erling SmørgravSpecifies a file containing a private host key
411545d5ecaSDag-Erling Smørgravused by SSH.
412545d5ecaSDag-Erling SmørgravThe default is
413545d5ecaSDag-Erling Smørgrav.Pa /etc/ssh/ssh_host_key
414545d5ecaSDag-Erling Smørgravfor protocol version 1, and
415d4af9e69SDag-Erling Smørgrav.Pa /etc/ssh/ssh_host_rsa_key
416d4af9e69SDag-Erling Smørgravand
417545d5ecaSDag-Erling Smørgrav.Pa /etc/ssh/ssh_host_dsa_key
418545d5ecaSDag-Erling Smørgravfor protocol version 2.
419545d5ecaSDag-Erling SmørgravNote that
420333ee039SDag-Erling Smørgrav.Xr sshd 8
421545d5ecaSDag-Erling Smørgravwill refuse to use a file if it is group/world-accessible.
422545d5ecaSDag-Erling SmørgravIt is possible to have multiple host key files.
423545d5ecaSDag-Erling Smørgrav.Dq rsa1
424545d5ecaSDag-Erling Smørgravkeys are used for version 1 and
425545d5ecaSDag-Erling Smørgrav.Dq dsa
426545d5ecaSDag-Erling Smørgravor
427545d5ecaSDag-Erling Smørgrav.Dq rsa
428545d5ecaSDag-Erling Smørgravare used for version 2 of the SSH protocol.
429545d5ecaSDag-Erling Smørgrav.It Cm IgnoreRhosts
430545d5ecaSDag-Erling SmørgravSpecifies that
431545d5ecaSDag-Erling Smørgrav.Pa .rhosts
432545d5ecaSDag-Erling Smørgravand
433545d5ecaSDag-Erling Smørgrav.Pa .shosts
434545d5ecaSDag-Erling Smørgravfiles will not be used in
435545d5ecaSDag-Erling Smørgrav.Cm RhostsRSAAuthentication
436545d5ecaSDag-Erling Smørgravor
437545d5ecaSDag-Erling Smørgrav.Cm HostbasedAuthentication .
438545d5ecaSDag-Erling Smørgrav.Pp
439545d5ecaSDag-Erling Smørgrav.Pa /etc/hosts.equiv
440545d5ecaSDag-Erling Smørgravand
44135d4ccfbSDag-Erling Smørgrav.Pa /etc/ssh/shosts.equiv
442545d5ecaSDag-Erling Smørgravare still used.
443545d5ecaSDag-Erling SmørgravThe default is
444545d5ecaSDag-Erling Smørgrav.Dq yes .
445545d5ecaSDag-Erling Smørgrav.It Cm IgnoreUserKnownHosts
446545d5ecaSDag-Erling SmørgravSpecifies whether
447333ee039SDag-Erling Smørgrav.Xr sshd 8
448545d5ecaSDag-Erling Smørgravshould ignore the user's
449d4ecd108SDag-Erling Smørgrav.Pa ~/.ssh/known_hosts
450545d5ecaSDag-Erling Smørgravduring
451545d5ecaSDag-Erling Smørgrav.Cm RhostsRSAAuthentication
452545d5ecaSDag-Erling Smørgravor
453545d5ecaSDag-Erling Smørgrav.Cm HostbasedAuthentication .
454545d5ecaSDag-Erling SmørgravThe default is
455545d5ecaSDag-Erling Smørgrav.Dq no .
456545d5ecaSDag-Erling Smørgrav.It Cm KerberosAuthentication
457cf2b5f3bSDag-Erling SmørgravSpecifies whether the password provided by the user for
458545d5ecaSDag-Erling Smørgrav.Cm PasswordAuthentication
459cf2b5f3bSDag-Erling Smørgravwill be validated through the Kerberos KDC.
460545d5ecaSDag-Erling SmørgravTo use this option, the server needs a
461545d5ecaSDag-Erling SmørgravKerberos servtab which allows the verification of the KDC's identity.
462333ee039SDag-Erling SmørgravThe default is
463545d5ecaSDag-Erling Smørgrav.Dq no .
4645962c0e9SDag-Erling Smørgrav.It Cm KerberosGetAFSToken
465b74df5b2SDag-Erling SmørgravIf AFS is active and the user has a Kerberos 5 TGT, attempt to acquire
4665962c0e9SDag-Erling Smørgravan AFS token before accessing the user's home directory.
467333ee039SDag-Erling SmørgravThe default is
4685962c0e9SDag-Erling Smørgrav.Dq no .
469545d5ecaSDag-Erling Smørgrav.It Cm KerberosOrLocalPasswd
470333ee039SDag-Erling SmørgravIf password authentication through Kerberos fails then
471545d5ecaSDag-Erling Smørgravthe password will be validated via any additional local mechanism
472545d5ecaSDag-Erling Smørgravsuch as
473545d5ecaSDag-Erling Smørgrav.Pa /etc/passwd .
474333ee039SDag-Erling SmørgravThe default is
475545d5ecaSDag-Erling Smørgrav.Dq yes .
476545d5ecaSDag-Erling Smørgrav.It Cm KerberosTicketCleanup
477545d5ecaSDag-Erling SmørgravSpecifies whether to automatically destroy the user's ticket cache
478545d5ecaSDag-Erling Smørgravfile on logout.
479333ee039SDag-Erling SmørgravThe default is
480545d5ecaSDag-Erling Smørgrav.Dq yes .
481545d5ecaSDag-Erling Smørgrav.It Cm KeyRegenerationInterval
482545d5ecaSDag-Erling SmørgravIn protocol version 1, the ephemeral server key is automatically regenerated
483545d5ecaSDag-Erling Smørgravafter this many seconds (if it has been used).
484545d5ecaSDag-Erling SmørgravThe purpose of regeneration is to prevent
485545d5ecaSDag-Erling Smørgravdecrypting captured sessions by later breaking into the machine and
486545d5ecaSDag-Erling Smørgravstealing the keys.
487545d5ecaSDag-Erling SmørgravThe key is never stored anywhere.
488545d5ecaSDag-Erling SmørgravIf the value is 0, the key is never regenerated.
489545d5ecaSDag-Erling SmørgravThe default is 3600 (seconds).
490545d5ecaSDag-Erling Smørgrav.It Cm ListenAddress
491545d5ecaSDag-Erling SmørgravSpecifies the local addresses
492333ee039SDag-Erling Smørgrav.Xr sshd 8
493545d5ecaSDag-Erling Smørgravshould listen on.
494545d5ecaSDag-Erling SmørgravThe following forms may be used:
495545d5ecaSDag-Erling Smørgrav.Pp
496545d5ecaSDag-Erling Smørgrav.Bl -item -offset indent -compact
497545d5ecaSDag-Erling Smørgrav.It
498545d5ecaSDag-Erling Smørgrav.Cm ListenAddress
499545d5ecaSDag-Erling Smørgrav.Sm off
500545d5ecaSDag-Erling Smørgrav.Ar host No | Ar IPv4_addr No | Ar IPv6_addr
501545d5ecaSDag-Erling Smørgrav.Sm on
502545d5ecaSDag-Erling Smørgrav.It
503545d5ecaSDag-Erling Smørgrav.Cm ListenAddress
504545d5ecaSDag-Erling Smørgrav.Sm off
505545d5ecaSDag-Erling Smørgrav.Ar host No | Ar IPv4_addr No : Ar port
506545d5ecaSDag-Erling Smørgrav.Sm on
507545d5ecaSDag-Erling Smørgrav.It
508545d5ecaSDag-Erling Smørgrav.Cm ListenAddress
509545d5ecaSDag-Erling Smørgrav.Sm off
510545d5ecaSDag-Erling Smørgrav.Oo
511545d5ecaSDag-Erling Smørgrav.Ar host No | Ar IPv6_addr Oc : Ar port
512545d5ecaSDag-Erling Smørgrav.Sm on
513545d5ecaSDag-Erling Smørgrav.El
514545d5ecaSDag-Erling Smørgrav.Pp
515545d5ecaSDag-Erling SmørgravIf
516545d5ecaSDag-Erling Smørgrav.Ar port
517545d5ecaSDag-Erling Smørgravis not specified,
518333ee039SDag-Erling Smørgravsshd will listen on the address and all prior
519545d5ecaSDag-Erling Smørgrav.Cm Port
520cf2b5f3bSDag-Erling Smørgravoptions specified.
521cf2b5f3bSDag-Erling SmørgravThe default is to listen on all local addresses.
522e73e9afaSDag-Erling SmørgravMultiple
523545d5ecaSDag-Erling Smørgrav.Cm ListenAddress
524cf2b5f3bSDag-Erling Smørgravoptions are permitted.
525cf2b5f3bSDag-Erling SmørgravAdditionally, any
526545d5ecaSDag-Erling Smørgrav.Cm Port
527333ee039SDag-Erling Smørgravoptions must precede this option for non-port qualified addresses.
528545d5ecaSDag-Erling Smørgrav.It Cm LoginGraceTime
529545d5ecaSDag-Erling SmørgravThe server disconnects after this time if the user has not
530545d5ecaSDag-Erling Smørgravsuccessfully logged in.
531545d5ecaSDag-Erling SmørgravIf the value is 0, there is no time limit.
532f388f5efSDag-Erling SmørgravThe default is 120 seconds.
533545d5ecaSDag-Erling Smørgrav.It Cm LogLevel
534545d5ecaSDag-Erling SmørgravGives the verbosity level that is used when logging messages from
535333ee039SDag-Erling Smørgrav.Xr sshd 8 .
536545d5ecaSDag-Erling SmørgravThe possible values are:
537333ee039SDag-Erling SmørgravQUIET, FATAL, ERROR, INFO, VERBOSE, DEBUG, DEBUG1, DEBUG2, and DEBUG3.
538e73e9afaSDag-Erling SmørgravThe default is INFO.
539e73e9afaSDag-Erling SmørgravDEBUG and DEBUG1 are equivalent.
540e73e9afaSDag-Erling SmørgravDEBUG2 and DEBUG3 each specify higher levels of debugging output.
541e73e9afaSDag-Erling SmørgravLogging with a DEBUG level violates the privacy of users and is not recommended.
542545d5ecaSDag-Erling Smørgrav.It Cm MACs
543545d5ecaSDag-Erling SmørgravSpecifies the available MAC (message authentication code) algorithms.
544545d5ecaSDag-Erling SmørgravThe MAC algorithm is used in protocol version 2
545545d5ecaSDag-Erling Smørgravfor data integrity protection.
546545d5ecaSDag-Erling SmørgravMultiple algorithms must be comma-separated.
547333ee039SDag-Erling SmørgravThe default is:
548d4af9e69SDag-Erling Smørgrav.Bd -literal -offset indent
549d4af9e69SDag-Erling Smørgravhmac-md5,hmac-sha1,umac-64@openssh.com,
550d4af9e69SDag-Erling Smørgravhmac-ripemd160,hmac-sha1-96,hmac-md5-96
551d4af9e69SDag-Erling Smørgrav.Ed
552333ee039SDag-Erling Smørgrav.It Cm Match
553333ee039SDag-Erling SmørgravIntroduces a conditional block.
554333ee039SDag-Erling SmørgravIf all of the criteria on the
555333ee039SDag-Erling Smørgrav.Cm Match
556333ee039SDag-Erling Smørgravline are satisfied, the keywords on the following lines override those
557333ee039SDag-Erling Smørgravset in the global section of the config file, until either another
558333ee039SDag-Erling Smørgrav.Cm Match
559333ee039SDag-Erling Smørgravline or the end of the file.
560d4af9e69SDag-Erling Smørgrav.Pp
561333ee039SDag-Erling SmørgravThe arguments to
562333ee039SDag-Erling Smørgrav.Cm Match
563333ee039SDag-Erling Smørgravare one or more criteria-pattern pairs.
564333ee039SDag-Erling SmørgravThe available criteria are
565333ee039SDag-Erling Smørgrav.Cm User ,
566333ee039SDag-Erling Smørgrav.Cm Group ,
567333ee039SDag-Erling Smørgrav.Cm Host ,
568333ee039SDag-Erling Smørgravand
569333ee039SDag-Erling Smørgrav.Cm Address .
570d4af9e69SDag-Erling SmørgravThe match patterns may consist of single entries or comma-separated
571d4af9e69SDag-Erling Smørgravlists and may use the wildcard and negation operators described in the
572d4af9e69SDag-Erling Smørgrav.Sx PATTERNS
573d4af9e69SDag-Erling Smørgravsection of
574d4af9e69SDag-Erling Smørgrav.Xr ssh_config 5 .
575d4af9e69SDag-Erling Smørgrav.Pp
576d4af9e69SDag-Erling SmørgravThe patterns in an
577d4af9e69SDag-Erling Smørgrav.Cm Address
578d4af9e69SDag-Erling Smørgravcriteria may additionally contain addresses to match in CIDR
579d4af9e69SDag-Erling Smørgravaddress/masklen format, e.g.\&
580d4af9e69SDag-Erling Smørgrav.Dq 192.0.2.0/24
581d4af9e69SDag-Erling Smørgravor
582d4af9e69SDag-Erling Smørgrav.Dq 3ffe:ffff::/32 .
583d4af9e69SDag-Erling SmørgravNote that the mask length provided must be consistent with the address -
584d4af9e69SDag-Erling Smørgravit is an error to specify a mask length that is too long for the address
585d4af9e69SDag-Erling Smørgravor one with bits set in this host portion of the address.
586d4af9e69SDag-Erling SmørgravFor example,
587d4af9e69SDag-Erling Smørgrav.Dq 192.0.2.0/33
588d4af9e69SDag-Erling Smørgravand
589d4af9e69SDag-Erling Smørgrav.Dq 192.0.2.0/8
590d4af9e69SDag-Erling Smørgravrespectively.
591d4af9e69SDag-Erling Smørgrav.Pp
592333ee039SDag-Erling SmørgravOnly a subset of keywords may be used on the lines following a
593333ee039SDag-Erling Smørgrav.Cm Match
594333ee039SDag-Erling Smørgravkeyword.
595333ee039SDag-Erling SmørgravAvailable keywords are
596cce7d346SDag-Erling Smørgrav.Cm AllowAgentForwarding ,
597333ee039SDag-Erling Smørgrav.Cm AllowTcpForwarding ,
598d4af9e69SDag-Erling Smørgrav.Cm Banner ,
599d4af9e69SDag-Erling Smørgrav.Cm ChrootDirectory ,
600333ee039SDag-Erling Smørgrav.Cm ForceCommand ,
601333ee039SDag-Erling Smørgrav.Cm GatewayPorts ,
602d4af9e69SDag-Erling Smørgrav.Cm GSSAPIAuthentication ,
603d4af9e69SDag-Erling Smørgrav.Cm HostbasedAuthentication ,
604d4af9e69SDag-Erling Smørgrav.Cm KbdInteractiveAuthentication ,
605d4af9e69SDag-Erling Smørgrav.Cm KerberosAuthentication ,
606d4af9e69SDag-Erling Smørgrav.Cm MaxAuthTries ,
607d4af9e69SDag-Erling Smørgrav.Cm MaxSessions ,
608d4af9e69SDag-Erling Smørgrav.Cm PasswordAuthentication ,
609cce7d346SDag-Erling Smørgrav.Cm PermitEmptyPasswords ,
610333ee039SDag-Erling Smørgrav.Cm PermitOpen ,
611d4af9e69SDag-Erling Smørgrav.Cm PermitRootLogin ,
612d4af9e69SDag-Erling Smørgrav.Cm RhostsRSAAuthentication ,
613d4af9e69SDag-Erling Smørgrav.Cm RSAAuthentication ,
614333ee039SDag-Erling Smørgrav.Cm X11DisplayOffset ,
615cce7d346SDag-Erling Smørgrav.Cm X11Forwarding
616333ee039SDag-Erling Smørgravand
617333ee039SDag-Erling Smørgrav.Cm X11UseLocalHost .
61821e764dfSDag-Erling Smørgrav.It Cm MaxAuthTries
61921e764dfSDag-Erling SmørgravSpecifies the maximum number of authentication attempts permitted per
62021e764dfSDag-Erling Smørgravconnection.
62121e764dfSDag-Erling SmørgravOnce the number of failures reaches half this value,
62221e764dfSDag-Erling Smørgravadditional failures are logged.
62321e764dfSDag-Erling SmørgravThe default is 6.
624d4af9e69SDag-Erling Smørgrav.It Cm MaxSessions
625d4af9e69SDag-Erling SmørgravSpecifies the maximum number of open sessions permitted per network connection.
626d4af9e69SDag-Erling SmørgravThe default is 10.
627545d5ecaSDag-Erling Smørgrav.It Cm MaxStartups
628545d5ecaSDag-Erling SmørgravSpecifies the maximum number of concurrent unauthenticated connections to the
629333ee039SDag-Erling SmørgravSSH daemon.
630545d5ecaSDag-Erling SmørgravAdditional connections will be dropped until authentication succeeds or the
631545d5ecaSDag-Erling Smørgrav.Cm LoginGraceTime
632545d5ecaSDag-Erling Smørgravexpires for a connection.
633545d5ecaSDag-Erling SmørgravThe default is 10.
634545d5ecaSDag-Erling Smørgrav.Pp
635545d5ecaSDag-Erling SmørgravAlternatively, random early drop can be enabled by specifying
636545d5ecaSDag-Erling Smørgravthe three colon separated values
637545d5ecaSDag-Erling Smørgrav.Dq start:rate:full
638333ee039SDag-Erling Smørgrav(e.g. "10:30:60").
639333ee039SDag-Erling Smørgrav.Xr sshd 8
640545d5ecaSDag-Erling Smørgravwill refuse connection attempts with a probability of
641545d5ecaSDag-Erling Smørgrav.Dq rate/100
642545d5ecaSDag-Erling Smørgrav(30%)
643545d5ecaSDag-Erling Smørgravif there are currently
644545d5ecaSDag-Erling Smørgrav.Dq start
645545d5ecaSDag-Erling Smørgrav(10)
646545d5ecaSDag-Erling Smørgravunauthenticated connections.
647545d5ecaSDag-Erling SmørgravThe probability increases linearly and all connection attempts
648545d5ecaSDag-Erling Smørgravare refused if the number of unauthenticated connections reaches
649545d5ecaSDag-Erling Smørgrav.Dq full
650545d5ecaSDag-Erling Smørgrav(60).
651545d5ecaSDag-Erling Smørgrav.It Cm PasswordAuthentication
652545d5ecaSDag-Erling SmørgravSpecifies whether password authentication is allowed.
653d4af9e69SDag-Erling SmørgravSee also
654d4af9e69SDag-Erling Smørgrav.Cm UsePAM .
655545d5ecaSDag-Erling SmørgravThe default is
656d4af9e69SDag-Erling Smørgrav.Dq no .
657545d5ecaSDag-Erling Smørgrav.It Cm PermitEmptyPasswords
658545d5ecaSDag-Erling SmørgravWhen password authentication is allowed, it specifies whether the
659545d5ecaSDag-Erling Smørgravserver allows login to accounts with empty password strings.
660545d5ecaSDag-Erling SmørgravThe default is
661545d5ecaSDag-Erling Smørgrav.Dq no .
662333ee039SDag-Erling Smørgrav.It Cm PermitOpen
663333ee039SDag-Erling SmørgravSpecifies the destinations to which TCP port forwarding is permitted.
664333ee039SDag-Erling SmørgravThe forwarding specification must be one of the following forms:
665333ee039SDag-Erling Smørgrav.Pp
666333ee039SDag-Erling Smørgrav.Bl -item -offset indent -compact
667333ee039SDag-Erling Smørgrav.It
668333ee039SDag-Erling Smørgrav.Cm PermitOpen
669333ee039SDag-Erling Smørgrav.Sm off
670333ee039SDag-Erling Smørgrav.Ar host : port
671333ee039SDag-Erling Smørgrav.Sm on
672333ee039SDag-Erling Smørgrav.It
673333ee039SDag-Erling Smørgrav.Cm PermitOpen
674333ee039SDag-Erling Smørgrav.Sm off
675333ee039SDag-Erling Smørgrav.Ar IPv4_addr : port
676333ee039SDag-Erling Smørgrav.Sm on
677333ee039SDag-Erling Smørgrav.It
678333ee039SDag-Erling Smørgrav.Cm PermitOpen
679333ee039SDag-Erling Smørgrav.Sm off
680333ee039SDag-Erling Smørgrav.Ar \&[ IPv6_addr \&] : port
681333ee039SDag-Erling Smørgrav.Sm on
682333ee039SDag-Erling Smørgrav.El
683333ee039SDag-Erling Smørgrav.Pp
684333ee039SDag-Erling SmørgravMultiple forwards may be specified by separating them with whitespace.
685333ee039SDag-Erling SmørgravAn argument of
686333ee039SDag-Erling Smørgrav.Dq any
687333ee039SDag-Erling Smørgravcan be used to remove all restrictions and permit any forwarding requests.
688333ee039SDag-Erling SmørgravBy default all port forwarding requests are permitted.
689545d5ecaSDag-Erling Smørgrav.It Cm PermitRootLogin
690545d5ecaSDag-Erling SmørgravSpecifies whether root can log in using
691545d5ecaSDag-Erling Smørgrav.Xr ssh 1 .
692545d5ecaSDag-Erling SmørgravThe argument must be
693545d5ecaSDag-Erling Smørgrav.Dq yes ,
694545d5ecaSDag-Erling Smørgrav.Dq without-password ,
695333ee039SDag-Erling Smørgrav.Dq forced-commands-only ,
696545d5ecaSDag-Erling Smørgravor
697545d5ecaSDag-Erling Smørgrav.Dq no .
698545d5ecaSDag-Erling SmørgravThe default is
69935d4ccfbSDag-Erling Smørgrav.Dq no .
700810a15b1SDag-Erling SmørgravNote that if
701810a15b1SDag-Erling Smørgrav.Cm ChallengeResponseAuthentication
702810a15b1SDag-Erling Smørgravis
703810a15b1SDag-Erling Smørgrav.Dq yes ,
704810a15b1SDag-Erling Smørgravthe root user may be allowed in with its password even if
705810a15b1SDag-Erling Smørgrav.Cm PermitRootLogin is set to
706810a15b1SDag-Erling Smørgrav.Dq without-password .
707545d5ecaSDag-Erling Smørgrav.Pp
708545d5ecaSDag-Erling SmørgravIf this option is set to
709333ee039SDag-Erling Smørgrav.Dq without-password ,
710aa49c926SDag-Erling Smørgravpassword authentication is disabled for root.
711545d5ecaSDag-Erling Smørgrav.Pp
712545d5ecaSDag-Erling SmørgravIf this option is set to
713333ee039SDag-Erling Smørgrav.Dq forced-commands-only ,
714545d5ecaSDag-Erling Smørgravroot login with public key authentication will be allowed,
715545d5ecaSDag-Erling Smørgravbut only if the
716545d5ecaSDag-Erling Smørgrav.Ar command
717545d5ecaSDag-Erling Smørgravoption has been specified
718545d5ecaSDag-Erling Smørgrav(which may be useful for taking remote backups even if root login is
719cf2b5f3bSDag-Erling Smørgravnormally not allowed).
720cf2b5f3bSDag-Erling SmørgravAll other authentication methods are disabled for root.
721545d5ecaSDag-Erling Smørgrav.Pp
722545d5ecaSDag-Erling SmørgravIf this option is set to
723333ee039SDag-Erling Smørgrav.Dq no ,
724545d5ecaSDag-Erling Smørgravroot is not allowed to log in.
725b74df5b2SDag-Erling Smørgrav.It Cm PermitTunnel
726b74df5b2SDag-Erling SmørgravSpecifies whether
727b74df5b2SDag-Erling Smørgrav.Xr tun 4
728b74df5b2SDag-Erling Smørgravdevice forwarding is allowed.
729b74df5b2SDag-Erling SmørgravThe argument must be
730b74df5b2SDag-Erling Smørgrav.Dq yes ,
731333ee039SDag-Erling Smørgrav.Dq point-to-point
732333ee039SDag-Erling Smørgrav(layer 3),
733b74df5b2SDag-Erling Smørgrav.Dq ethernet
734333ee039SDag-Erling Smørgrav(layer 2), or
735b74df5b2SDag-Erling Smørgrav.Dq no .
736333ee039SDag-Erling SmørgravSpecifying
737333ee039SDag-Erling Smørgrav.Dq yes
738333ee039SDag-Erling Smørgravpermits both
739333ee039SDag-Erling Smørgrav.Dq point-to-point
740333ee039SDag-Erling Smørgravand
741333ee039SDag-Erling Smørgrav.Dq ethernet .
742b74df5b2SDag-Erling SmørgravThe default is
743b74df5b2SDag-Erling Smørgrav.Dq no .
744f388f5efSDag-Erling Smørgrav.It Cm PermitUserEnvironment
745f388f5efSDag-Erling SmørgravSpecifies whether
746f388f5efSDag-Erling Smørgrav.Pa ~/.ssh/environment
747f388f5efSDag-Erling Smørgravand
748f388f5efSDag-Erling Smørgrav.Cm environment=
749f388f5efSDag-Erling Smørgravoptions in
750f388f5efSDag-Erling Smørgrav.Pa ~/.ssh/authorized_keys
751f388f5efSDag-Erling Smørgravare processed by
752333ee039SDag-Erling Smørgrav.Xr sshd 8 .
753f388f5efSDag-Erling SmørgravThe default is
754f388f5efSDag-Erling Smørgrav.Dq no .
755f388f5efSDag-Erling SmørgravEnabling environment processing may enable users to bypass access
756f388f5efSDag-Erling Smørgravrestrictions in some configurations using mechanisms such as
757f388f5efSDag-Erling Smørgrav.Ev LD_PRELOAD .
758545d5ecaSDag-Erling Smørgrav.It Cm PidFile
759a82e551fSDag-Erling SmørgravSpecifies the file that contains the process ID of the
760333ee039SDag-Erling SmørgravSSH daemon.
761545d5ecaSDag-Erling SmørgravThe default is
762545d5ecaSDag-Erling Smørgrav.Pa /var/run/sshd.pid .
763545d5ecaSDag-Erling Smørgrav.It Cm Port
764545d5ecaSDag-Erling SmørgravSpecifies the port number that
765333ee039SDag-Erling Smørgrav.Xr sshd 8
766545d5ecaSDag-Erling Smørgravlistens on.
767545d5ecaSDag-Erling SmørgravThe default is 22.
768545d5ecaSDag-Erling SmørgravMultiple options of this type are permitted.
769545d5ecaSDag-Erling SmørgravSee also
770545d5ecaSDag-Erling Smørgrav.Cm ListenAddress .
771545d5ecaSDag-Erling Smørgrav.It Cm PrintLastLog
772545d5ecaSDag-Erling SmørgravSpecifies whether
773333ee039SDag-Erling Smørgrav.Xr sshd 8
774aa49c926SDag-Erling Smørgravshould print the date and time of the last user login when a user logs
775aa49c926SDag-Erling Smørgravin interactively.
776545d5ecaSDag-Erling SmørgravThe default is
777545d5ecaSDag-Erling Smørgrav.Dq yes .
778545d5ecaSDag-Erling Smørgrav.It Cm PrintMotd
779545d5ecaSDag-Erling SmørgravSpecifies whether
780333ee039SDag-Erling Smørgrav.Xr sshd 8
781545d5ecaSDag-Erling Smørgravshould print
782545d5ecaSDag-Erling Smørgrav.Pa /etc/motd
783545d5ecaSDag-Erling Smørgravwhen a user logs in interactively.
784545d5ecaSDag-Erling Smørgrav(On some systems it is also printed by the shell,
785545d5ecaSDag-Erling Smørgrav.Pa /etc/profile ,
786545d5ecaSDag-Erling Smørgravor equivalent.)
787545d5ecaSDag-Erling SmørgravThe default is
788545d5ecaSDag-Erling Smørgrav.Dq yes .
789545d5ecaSDag-Erling Smørgrav.It Cm Protocol
790545d5ecaSDag-Erling SmørgravSpecifies the protocol versions
791333ee039SDag-Erling Smørgrav.Xr sshd 8
792f388f5efSDag-Erling Smørgravsupports.
793545d5ecaSDag-Erling SmørgravThe possible values are
794333ee039SDag-Erling Smørgrav.Sq 1
795545d5ecaSDag-Erling Smørgravand
796333ee039SDag-Erling Smørgrav.Sq 2 .
797545d5ecaSDag-Erling SmørgravMultiple versions must be comma-separated.
798545d5ecaSDag-Erling SmørgravThe default is
799028c324aSDag-Erling Smørgrav.Dq 2 .
800f388f5efSDag-Erling SmørgravNote that the order of the protocol list does not indicate preference,
801f388f5efSDag-Erling Smørgravbecause the client selects among multiple protocol versions offered
802f388f5efSDag-Erling Smørgravby the server.
803f388f5efSDag-Erling SmørgravSpecifying
804f388f5efSDag-Erling Smørgrav.Dq 2,1
805f388f5efSDag-Erling Smørgravis identical to
806f388f5efSDag-Erling Smørgrav.Dq 1,2 .
807545d5ecaSDag-Erling Smørgrav.It Cm PubkeyAuthentication
808545d5ecaSDag-Erling SmørgravSpecifies whether public key authentication is allowed.
809545d5ecaSDag-Erling SmørgravThe default is
810545d5ecaSDag-Erling Smørgrav.Dq yes .
811545d5ecaSDag-Erling SmørgravNote that this option applies to protocol version 2 only.
812545d5ecaSDag-Erling Smørgrav.It Cm RhostsRSAAuthentication
81335d4ccfbSDag-Erling SmørgravSpecifies whether rhosts or
81435d4ccfbSDag-Erling Smørgrav.Pa /etc/hosts.equiv
81535d4ccfbSDag-Erling Smørgravauthentication together
816545d5ecaSDag-Erling Smørgravwith successful RSA host authentication is allowed.
817545d5ecaSDag-Erling SmørgravThe default is
818545d5ecaSDag-Erling Smørgrav.Dq no .
819545d5ecaSDag-Erling SmørgravThis option applies to protocol version 1 only.
820545d5ecaSDag-Erling Smørgrav.It Cm RSAAuthentication
821545d5ecaSDag-Erling SmørgravSpecifies whether pure RSA authentication is allowed.
822545d5ecaSDag-Erling SmørgravThe default is
823545d5ecaSDag-Erling Smørgrav.Dq yes .
824545d5ecaSDag-Erling SmørgravThis option applies to protocol version 1 only.
825545d5ecaSDag-Erling Smørgrav.It Cm ServerKeyBits
826545d5ecaSDag-Erling SmørgravDefines the number of bits in the ephemeral protocol version 1 server key.
827d4af9e69SDag-Erling SmørgravThe minimum value is 512, and the default is 1024.
828545d5ecaSDag-Erling Smørgrav.It Cm StrictModes
829545d5ecaSDag-Erling SmørgravSpecifies whether
830333ee039SDag-Erling Smørgrav.Xr sshd 8
831545d5ecaSDag-Erling Smørgravshould check file modes and ownership of the
832545d5ecaSDag-Erling Smørgravuser's files and home directory before accepting login.
833545d5ecaSDag-Erling SmørgravThis is normally desirable because novices sometimes accidentally leave their
834545d5ecaSDag-Erling Smørgravdirectory or files world-writable.
835545d5ecaSDag-Erling SmørgravThe default is
836545d5ecaSDag-Erling Smørgrav.Dq yes .
837545d5ecaSDag-Erling Smørgrav.It Cm Subsystem
838333ee039SDag-Erling SmørgravConfigures an external subsystem (e.g. file transfer daemon).
839333ee039SDag-Erling SmørgravArguments should be a subsystem name and a command (with optional arguments)
840333ee039SDag-Erling Smørgravto execute upon subsystem request.
841d4af9e69SDag-Erling Smørgrav.Pp
842545d5ecaSDag-Erling SmørgravThe command
843545d5ecaSDag-Erling Smørgrav.Xr sftp-server 8
844545d5ecaSDag-Erling Smørgravimplements the
845545d5ecaSDag-Erling Smørgrav.Dq sftp
846545d5ecaSDag-Erling Smørgravfile transfer subsystem.
847d4af9e69SDag-Erling Smørgrav.Pp
848d4af9e69SDag-Erling SmørgravAlternately the name
849d4af9e69SDag-Erling Smørgrav.Dq internal-sftp
850d4af9e69SDag-Erling Smørgravimplements an in-process
851d4af9e69SDag-Erling Smørgrav.Dq sftp
852d4af9e69SDag-Erling Smørgravserver.
853d4af9e69SDag-Erling SmørgravThis may simplify configurations using
854d4af9e69SDag-Erling Smørgrav.Cm ChrootDirectory
855d4af9e69SDag-Erling Smørgravto force a different filesystem root on clients.
856d4af9e69SDag-Erling Smørgrav.Pp
857545d5ecaSDag-Erling SmørgravBy default no subsystems are defined.
858545d5ecaSDag-Erling SmørgravNote that this option applies to protocol version 2 only.
859545d5ecaSDag-Erling Smørgrav.It Cm SyslogFacility
860545d5ecaSDag-Erling SmørgravGives the facility code that is used when logging messages from
861333ee039SDag-Erling Smørgrav.Xr sshd 8 .
862545d5ecaSDag-Erling SmørgravThe possible values are: DAEMON, USER, AUTH, LOCAL0, LOCAL1, LOCAL2,
863545d5ecaSDag-Erling SmørgravLOCAL3, LOCAL4, LOCAL5, LOCAL6, LOCAL7.
864545d5ecaSDag-Erling SmørgravThe default is AUTH.
8651ec0d754SDag-Erling Smørgrav.It Cm TCPKeepAlive
8661ec0d754SDag-Erling SmørgravSpecifies whether the system should send TCP keepalive messages to the
8671ec0d754SDag-Erling Smørgravother side.
8681ec0d754SDag-Erling SmørgravIf they are sent, death of the connection or crash of one
8691ec0d754SDag-Erling Smørgravof the machines will be properly noticed.
8701ec0d754SDag-Erling SmørgravHowever, this means that
8711ec0d754SDag-Erling Smørgravconnections will die if the route is down temporarily, and some people
8721ec0d754SDag-Erling Smørgravfind it annoying.
8731ec0d754SDag-Erling SmørgravOn the other hand, if TCP keepalives are not sent,
8741ec0d754SDag-Erling Smørgravsessions may hang indefinitely on the server, leaving
8751ec0d754SDag-Erling Smørgrav.Dq ghost
8761ec0d754SDag-Erling Smørgravusers and consuming server resources.
8771ec0d754SDag-Erling Smørgrav.Pp
8781ec0d754SDag-Erling SmørgravThe default is
8791ec0d754SDag-Erling Smørgrav.Dq yes
8801ec0d754SDag-Erling Smørgrav(to send TCP keepalive messages), and the server will notice
8811ec0d754SDag-Erling Smørgravif the network goes down or the client host crashes.
8821ec0d754SDag-Erling SmørgravThis avoids infinitely hanging sessions.
8831ec0d754SDag-Erling Smørgrav.Pp
8841ec0d754SDag-Erling SmørgravTo disable TCP keepalive messages, the value should be set to
8851ec0d754SDag-Erling Smørgrav.Dq no .
886cf2b5f3bSDag-Erling Smørgrav.It Cm UseDNS
887cf2b5f3bSDag-Erling SmørgravSpecifies whether
888333ee039SDag-Erling Smørgrav.Xr sshd 8
889cf2b5f3bSDag-Erling Smørgravshould look up the remote host name and check that
890cf2b5f3bSDag-Erling Smørgravthe resolved host name for the remote IP address maps back to the
891cf2b5f3bSDag-Erling Smørgravvery same IP address.
892cf2b5f3bSDag-Erling SmørgravThe default is
893cf2b5f3bSDag-Erling Smørgrav.Dq yes .
894545d5ecaSDag-Erling Smørgrav.It Cm UseLogin
895545d5ecaSDag-Erling SmørgravSpecifies whether
896545d5ecaSDag-Erling Smørgrav.Xr login 1
897545d5ecaSDag-Erling Smørgravis used for interactive login sessions.
898545d5ecaSDag-Erling SmørgravThe default is
899545d5ecaSDag-Erling Smørgrav.Dq no .
900545d5ecaSDag-Erling SmørgravNote that
901545d5ecaSDag-Erling Smørgrav.Xr login 1
902545d5ecaSDag-Erling Smørgravis never used for remote command execution.
903545d5ecaSDag-Erling SmørgravNote also, that if this is enabled,
904545d5ecaSDag-Erling Smørgrav.Cm X11Forwarding
905545d5ecaSDag-Erling Smørgravwill be disabled because
906545d5ecaSDag-Erling Smørgrav.Xr login 1
907545d5ecaSDag-Erling Smørgravdoes not know how to handle
908545d5ecaSDag-Erling Smørgrav.Xr xauth 1
909e73e9afaSDag-Erling Smørgravcookies.
910e73e9afaSDag-Erling SmørgravIf
911545d5ecaSDag-Erling Smørgrav.Cm UsePrivilegeSeparation
912545d5ecaSDag-Erling Smørgravis specified, it will be disabled after authentication.
913cf2b5f3bSDag-Erling Smørgrav.It Cm UsePAM
91421e764dfSDag-Erling SmørgravEnables the Pluggable Authentication Module interface.
91521e764dfSDag-Erling SmørgravIf set to
91621e764dfSDag-Erling Smørgrav.Dq yes
91721e764dfSDag-Erling Smørgravthis will enable PAM authentication using
91821e764dfSDag-Erling Smørgrav.Cm ChallengeResponseAuthentication
919333ee039SDag-Erling Smørgravand
920333ee039SDag-Erling Smørgrav.Cm PasswordAuthentication
921333ee039SDag-Erling Smørgravin addition to PAM account and session module processing for all
922333ee039SDag-Erling Smørgravauthentication types.
92321e764dfSDag-Erling Smørgrav.Pp
92421e764dfSDag-Erling SmørgravBecause PAM challenge-response authentication usually serves an equivalent
92521e764dfSDag-Erling Smørgravrole to password authentication, you should disable either
92621e764dfSDag-Erling Smørgrav.Cm PasswordAuthentication
92721e764dfSDag-Erling Smørgravor
92821e764dfSDag-Erling Smørgrav.Cm ChallengeResponseAuthentication.
92921e764dfSDag-Erling Smørgrav.Pp
93021e764dfSDag-Erling SmørgravIf
93121e764dfSDag-Erling Smørgrav.Cm UsePAM
93221e764dfSDag-Erling Smørgravis enabled, you will not be able to run
93321e764dfSDag-Erling Smørgrav.Xr sshd 8
93421e764dfSDag-Erling Smørgravas a non-root user.
93521e764dfSDag-Erling SmørgravThe default is
936d2b1b4f3SDag-Erling Smørgrav.Dq yes .
937545d5ecaSDag-Erling Smørgrav.It Cm UsePrivilegeSeparation
938545d5ecaSDag-Erling SmørgravSpecifies whether
939333ee039SDag-Erling Smørgrav.Xr sshd 8
940545d5ecaSDag-Erling Smørgravseparates privileges by creating an unprivileged child process
941e73e9afaSDag-Erling Smørgravto deal with incoming network traffic.
942e73e9afaSDag-Erling SmørgravAfter successful authentication, another process will be created that has
943e73e9afaSDag-Erling Smørgravthe privilege of the authenticated user.
944e73e9afaSDag-Erling SmørgravThe goal of privilege separation is to prevent privilege
945545d5ecaSDag-Erling Smørgravescalation by containing any corruption within the unprivileged processes.
946545d5ecaSDag-Erling SmørgravThe default is
947545d5ecaSDag-Erling Smørgrav.Dq yes .
94835d4ccfbSDag-Erling Smørgrav.It Cm VersionAddendum
94935d4ccfbSDag-Erling SmørgravSpecifies a string to append to the regular version string to identify
95035d4ccfbSDag-Erling SmørgravOS- or site-specific modifications.
951ee8aeb14SDag-Erling SmørgravThe default is
952cce7d346SDag-Erling Smørgrav.Dq FreeBSD-20090522 .
953545d5ecaSDag-Erling Smørgrav.It Cm X11DisplayOffset
954545d5ecaSDag-Erling SmørgravSpecifies the first display number available for
955333ee039SDag-Erling Smørgrav.Xr sshd 8 Ns 's
956545d5ecaSDag-Erling SmørgravX11 forwarding.
957333ee039SDag-Erling SmørgravThis prevents sshd from interfering with real X11 servers.
958545d5ecaSDag-Erling SmørgravThe default is 10.
959545d5ecaSDag-Erling Smørgrav.It Cm X11Forwarding
960545d5ecaSDag-Erling SmørgravSpecifies whether X11 forwarding is permitted.
961f388f5efSDag-Erling SmørgravThe argument must be
962f388f5efSDag-Erling Smørgrav.Dq yes
963f388f5efSDag-Erling Smørgravor
964f388f5efSDag-Erling Smørgrav.Dq no .
965545d5ecaSDag-Erling SmørgravThe default is
966ee8aeb14SDag-Erling Smørgrav.Dq yes .
967f388f5efSDag-Erling Smørgrav.Pp
968f388f5efSDag-Erling SmørgravWhen X11 forwarding is enabled, there may be additional exposure to
969f388f5efSDag-Erling Smørgravthe server and to client displays if the
970333ee039SDag-Erling Smørgrav.Xr sshd 8
971f388f5efSDag-Erling Smørgravproxy display is configured to listen on the wildcard address (see
972f388f5efSDag-Erling Smørgrav.Cm X11UseLocalhost
973333ee039SDag-Erling Smørgravbelow), though this is not the default.
974f388f5efSDag-Erling SmørgravAdditionally, the authentication spoofing and authentication data
975f388f5efSDag-Erling Smørgravverification and substitution occur on the client side.
976f388f5efSDag-Erling SmørgravThe security risk of using X11 forwarding is that the client's X11
977333ee039SDag-Erling Smørgravdisplay server may be exposed to attack when the SSH client requests
978f388f5efSDag-Erling Smørgravforwarding (see the warnings for
979f388f5efSDag-Erling Smørgrav.Cm ForwardX11
980f388f5efSDag-Erling Smørgravin
981f388f5efSDag-Erling Smørgrav.Xr ssh_config 5 ) .
982f388f5efSDag-Erling SmørgravA system administrator may have a stance in which they want to
983f388f5efSDag-Erling Smørgravprotect clients that may expose themselves to attack by unwittingly
984f388f5efSDag-Erling Smørgravrequesting X11 forwarding, which can warrant a
985f388f5efSDag-Erling Smørgrav.Dq no
986f388f5efSDag-Erling Smørgravsetting.
987f388f5efSDag-Erling Smørgrav.Pp
988f388f5efSDag-Erling SmørgravNote that disabling X11 forwarding does not prevent users from
989f388f5efSDag-Erling Smørgravforwarding X11 traffic, as users can always install their own forwarders.
990545d5ecaSDag-Erling SmørgravX11 forwarding is automatically disabled if
991545d5ecaSDag-Erling Smørgrav.Cm UseLogin
992545d5ecaSDag-Erling Smørgravis enabled.
993545d5ecaSDag-Erling Smørgrav.It Cm X11UseLocalhost
994545d5ecaSDag-Erling SmørgravSpecifies whether
995333ee039SDag-Erling Smørgrav.Xr sshd 8
996545d5ecaSDag-Erling Smørgravshould bind the X11 forwarding server to the loopback address or to
997e73e9afaSDag-Erling Smørgravthe wildcard address.
998e73e9afaSDag-Erling SmørgravBy default,
999333ee039SDag-Erling Smørgravsshd binds the forwarding server to the loopback address and sets the
1000545d5ecaSDag-Erling Smørgravhostname part of the
1001545d5ecaSDag-Erling Smørgrav.Ev DISPLAY
1002545d5ecaSDag-Erling Smørgravenvironment variable to
1003545d5ecaSDag-Erling Smørgrav.Dq localhost .
1004f388f5efSDag-Erling SmørgravThis prevents remote hosts from connecting to the proxy display.
1005545d5ecaSDag-Erling SmørgravHowever, some older X11 clients may not function with this
1006545d5ecaSDag-Erling Smørgravconfiguration.
1007545d5ecaSDag-Erling Smørgrav.Cm X11UseLocalhost
1008545d5ecaSDag-Erling Smørgravmay be set to
1009545d5ecaSDag-Erling Smørgrav.Dq no
1010545d5ecaSDag-Erling Smørgravto specify that the forwarding server should be bound to the wildcard
1011545d5ecaSDag-Erling Smørgravaddress.
1012545d5ecaSDag-Erling SmørgravThe argument must be
1013545d5ecaSDag-Erling Smørgrav.Dq yes
1014545d5ecaSDag-Erling Smørgravor
1015545d5ecaSDag-Erling Smørgrav.Dq no .
1016545d5ecaSDag-Erling SmørgravThe default is
1017545d5ecaSDag-Erling Smørgrav.Dq yes .
1018545d5ecaSDag-Erling Smørgrav.It Cm XAuthLocation
1019f388f5efSDag-Erling SmørgravSpecifies the full pathname of the
1020545d5ecaSDag-Erling Smørgrav.Xr xauth 1
1021545d5ecaSDag-Erling Smørgravprogram.
1022545d5ecaSDag-Erling SmørgravThe default is
1023ffea3f5aSDag-Erling Smørgrav.Pa /usr/local/bin/xauth .
1024545d5ecaSDag-Erling Smørgrav.El
1025333ee039SDag-Erling Smørgrav.Sh TIME FORMATS
1026333ee039SDag-Erling Smørgrav.Xr sshd 8
1027545d5ecaSDag-Erling Smørgravcommand-line arguments and configuration file options that specify time
1028545d5ecaSDag-Erling Smørgravmay be expressed using a sequence of the form:
1029545d5ecaSDag-Erling Smørgrav.Sm off
1030f388f5efSDag-Erling Smørgrav.Ar time Op Ar qualifier ,
1031545d5ecaSDag-Erling Smørgrav.Sm on
1032545d5ecaSDag-Erling Smørgravwhere
1033545d5ecaSDag-Erling Smørgrav.Ar time
1034545d5ecaSDag-Erling Smørgravis a positive integer value and
1035545d5ecaSDag-Erling Smørgrav.Ar qualifier
1036545d5ecaSDag-Erling Smørgravis one of the following:
1037545d5ecaSDag-Erling Smørgrav.Pp
1038545d5ecaSDag-Erling Smørgrav.Bl -tag -width Ds -compact -offset indent
1039333ee039SDag-Erling Smørgrav.It Aq Cm none
1040545d5ecaSDag-Erling Smørgravseconds
1041545d5ecaSDag-Erling Smørgrav.It Cm s | Cm S
1042545d5ecaSDag-Erling Smørgravseconds
1043545d5ecaSDag-Erling Smørgrav.It Cm m | Cm M
1044545d5ecaSDag-Erling Smørgravminutes
1045545d5ecaSDag-Erling Smørgrav.It Cm h | Cm H
1046545d5ecaSDag-Erling Smørgravhours
1047545d5ecaSDag-Erling Smørgrav.It Cm d | Cm D
1048545d5ecaSDag-Erling Smørgravdays
1049545d5ecaSDag-Erling Smørgrav.It Cm w | Cm W
1050545d5ecaSDag-Erling Smørgravweeks
1051545d5ecaSDag-Erling Smørgrav.El
1052545d5ecaSDag-Erling Smørgrav.Pp
1053545d5ecaSDag-Erling SmørgravEach member of the sequence is added together to calculate
1054545d5ecaSDag-Erling Smørgravthe total time value.
1055545d5ecaSDag-Erling Smørgrav.Pp
1056545d5ecaSDag-Erling SmørgravTime format examples:
1057545d5ecaSDag-Erling Smørgrav.Pp
1058545d5ecaSDag-Erling Smørgrav.Bl -tag -width Ds -compact -offset indent
1059545d5ecaSDag-Erling Smørgrav.It 600
1060545d5ecaSDag-Erling Smørgrav600 seconds (10 minutes)
1061545d5ecaSDag-Erling Smørgrav.It 10m
1062545d5ecaSDag-Erling Smørgrav10 minutes
1063545d5ecaSDag-Erling Smørgrav.It 1h30m
1064545d5ecaSDag-Erling Smørgrav1 hour 30 minutes (90 minutes)
1065545d5ecaSDag-Erling Smørgrav.El
1066545d5ecaSDag-Erling Smørgrav.Sh FILES
1067545d5ecaSDag-Erling Smørgrav.Bl -tag -width Ds
1068545d5ecaSDag-Erling Smørgrav.It Pa /etc/ssh/sshd_config
1069545d5ecaSDag-Erling SmørgravContains configuration data for
1070333ee039SDag-Erling Smørgrav.Xr sshd 8 .
1071545d5ecaSDag-Erling SmørgravThis file should be writable by root only, but it is recommended
1072545d5ecaSDag-Erling Smørgrav(though not necessary) that it be world-readable.
1073545d5ecaSDag-Erling Smørgrav.El
1074cf2b5f3bSDag-Erling Smørgrav.Sh SEE ALSO
1075cf2b5f3bSDag-Erling Smørgrav.Xr sshd 8
1076545d5ecaSDag-Erling Smørgrav.Sh AUTHORS
1077545d5ecaSDag-Erling SmørgravOpenSSH is a derivative of the original and free
1078545d5ecaSDag-Erling Smørgravssh 1.2.12 release by Tatu Ylonen.
1079545d5ecaSDag-Erling SmørgravAaron Campbell, Bob Beck, Markus Friedl, Niels Provos,
1080545d5ecaSDag-Erling SmørgravTheo de Raadt and Dug Song
1081545d5ecaSDag-Erling Smørgravremoved many bugs, re-added newer features and
1082545d5ecaSDag-Erling Smørgravcreated OpenSSH.
1083545d5ecaSDag-Erling SmørgravMarkus Friedl contributed the support for SSH
1084545d5ecaSDag-Erling Smørgravprotocol versions 1.5 and 2.0.
1085545d5ecaSDag-Erling SmørgravNiels Provos and Markus Friedl contributed support
1086545d5ecaSDag-Erling Smørgravfor privilege separation.
1087