xref: /freebsd/crypto/openssh/sshd_config.5 (revision 1ec0d7542954a002634c04e1fd0d00520b0f5511)
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.\"
371ec0d754SDag-Erling Smørgrav.\" $OpenBSD: sshd_config.5,v 1.28 2004/02/17 19:35:21 jmc Exp $
3835d4ccfbSDag-Erling Smørgrav.\" $FreeBSD$
39545d5ecaSDag-Erling Smørgrav.Dd September 25, 1999
40545d5ecaSDag-Erling Smørgrav.Dt SSHD_CONFIG 5
41545d5ecaSDag-Erling Smørgrav.Os
42545d5ecaSDag-Erling Smørgrav.Sh NAME
43545d5ecaSDag-Erling Smørgrav.Nm sshd_config
44545d5ecaSDag-Erling Smørgrav.Nd OpenSSH SSH daemon configuration file
45545d5ecaSDag-Erling Smørgrav.Sh SYNOPSIS
46545d5ecaSDag-Erling Smørgrav.Bl -tag -width Ds -compact
47545d5ecaSDag-Erling Smørgrav.It Pa /etc/ssh/sshd_config
48545d5ecaSDag-Erling Smørgrav.El
49545d5ecaSDag-Erling Smørgrav.Sh DESCRIPTION
50545d5ecaSDag-Erling Smørgrav.Nm sshd
51545d5ecaSDag-Erling Smørgravreads configuration data from
52545d5ecaSDag-Erling Smørgrav.Pa /etc/ssh/sshd_config
53545d5ecaSDag-Erling Smørgrav(or the file specified with
54545d5ecaSDag-Erling Smørgrav.Fl f
55545d5ecaSDag-Erling Smørgravon the command line).
56545d5ecaSDag-Erling SmørgravThe file contains keyword-argument pairs, one per line.
57545d5ecaSDag-Erling SmørgravLines starting with
58545d5ecaSDag-Erling Smørgrav.Ql #
59545d5ecaSDag-Erling Smørgravand empty lines are interpreted as comments.
60545d5ecaSDag-Erling Smørgrav.Pp
61545d5ecaSDag-Erling SmørgravThe possible
62545d5ecaSDag-Erling Smørgravkeywords and their meanings are as follows (note that
63545d5ecaSDag-Erling Smørgravkeywords are case-insensitive and arguments are case-sensitive):
64545d5ecaSDag-Erling Smørgrav.Bl -tag -width Ds
65545d5ecaSDag-Erling Smørgrav.It Cm AllowGroups
66545d5ecaSDag-Erling SmørgravThis keyword can be followed by a list of group name patterns, separated
67545d5ecaSDag-Erling Smørgravby spaces.
68545d5ecaSDag-Erling SmørgravIf specified, login is allowed only for users whose primary
69545d5ecaSDag-Erling Smørgravgroup or supplementary group list matches one of the patterns.
70545d5ecaSDag-Erling Smørgrav.Ql \&*
71545d5ecaSDag-Erling Smørgravand
72cf2b5f3bSDag-Erling Smørgrav.Ql \&?
73545d5ecaSDag-Erling Smørgravcan be used as
74545d5ecaSDag-Erling Smørgravwildcards in the patterns.
75545d5ecaSDag-Erling SmørgravOnly group names are valid; a numerical group ID is not recognized.
76545d5ecaSDag-Erling SmørgravBy default, login is allowed for all groups.
77545d5ecaSDag-Erling Smørgrav.Pp
78545d5ecaSDag-Erling Smørgrav.It Cm AllowTcpForwarding
79545d5ecaSDag-Erling SmørgravSpecifies whether TCP forwarding is permitted.
80545d5ecaSDag-Erling SmørgravThe default is
81545d5ecaSDag-Erling Smørgrav.Dq yes .
82545d5ecaSDag-Erling SmørgravNote that disabling TCP forwarding does not improve security unless
83545d5ecaSDag-Erling Smørgravusers are also denied shell access, as they can always install their
84545d5ecaSDag-Erling Smørgravown forwarders.
85545d5ecaSDag-Erling Smørgrav.Pp
86545d5ecaSDag-Erling Smørgrav.It Cm AllowUsers
87545d5ecaSDag-Erling SmørgravThis keyword can be followed by a list of user name patterns, separated
88545d5ecaSDag-Erling Smørgravby spaces.
89e73e9afaSDag-Erling SmørgravIf specified, login is allowed only for user names that
90545d5ecaSDag-Erling Smørgravmatch one of the patterns.
91545d5ecaSDag-Erling Smørgrav.Ql \&*
92545d5ecaSDag-Erling Smørgravand
93cf2b5f3bSDag-Erling Smørgrav.Ql \&?
94545d5ecaSDag-Erling Smørgravcan be used as
95545d5ecaSDag-Erling Smørgravwildcards in the patterns.
96545d5ecaSDag-Erling SmørgravOnly user names are valid; a numerical user ID is not recognized.
97545d5ecaSDag-Erling SmørgravBy default, login is allowed for all users.
98545d5ecaSDag-Erling SmørgravIf the pattern takes the form USER@HOST then USER and HOST
99545d5ecaSDag-Erling Smørgravare separately checked, restricting logins to particular
100545d5ecaSDag-Erling Smørgravusers from particular hosts.
101545d5ecaSDag-Erling Smørgrav.Pp
102545d5ecaSDag-Erling Smørgrav.It Cm AuthorizedKeysFile
103545d5ecaSDag-Erling SmørgravSpecifies the file that contains the public keys that can be used
104545d5ecaSDag-Erling Smørgravfor user authentication.
105545d5ecaSDag-Erling Smørgrav.Cm AuthorizedKeysFile
106545d5ecaSDag-Erling Smørgravmay contain tokens of the form %T which are substituted during connection
107cf2b5f3bSDag-Erling Smørgravset-up.
108cf2b5f3bSDag-Erling SmørgravThe following tokens are defined: %% is replaced by a literal '%',
109545d5ecaSDag-Erling Smørgrav%h is replaced by the home directory of the user being authenticated and
110545d5ecaSDag-Erling Smørgrav%u is replaced by the username of that user.
111545d5ecaSDag-Erling SmørgravAfter expansion,
112545d5ecaSDag-Erling Smørgrav.Cm AuthorizedKeysFile
113545d5ecaSDag-Erling Smørgravis taken to be an absolute path or one relative to the user's home
114545d5ecaSDag-Erling Smørgravdirectory.
115545d5ecaSDag-Erling SmørgravThe default is
116545d5ecaSDag-Erling Smørgrav.Dq .ssh/authorized_keys .
117545d5ecaSDag-Erling Smørgrav.It Cm Banner
118545d5ecaSDag-Erling SmørgravIn some jurisdictions, sending a warning message before authentication
119545d5ecaSDag-Erling Smørgravmay be relevant for getting legal protection.
120545d5ecaSDag-Erling SmørgravThe contents of the specified file are sent to the remote user before
121545d5ecaSDag-Erling Smørgravauthentication is allowed.
122545d5ecaSDag-Erling SmørgravThis option is only available for protocol version 2.
123545d5ecaSDag-Erling SmørgravBy default, no banner is displayed.
124545d5ecaSDag-Erling Smørgrav.Pp
125545d5ecaSDag-Erling Smørgrav.It Cm ChallengeResponseAuthentication
126ee8aeb14SDag-Erling SmørgravSpecifies whether challenge-response authentication is allowed.
127ee8aeb14SDag-Erling SmørgravSpecifically, in
128ee8aeb14SDag-Erling Smørgrav.Fx ,
129ee8aeb14SDag-Erling Smørgravthis controls the use of PAM (see
130ee8aeb14SDag-Erling Smørgrav.Xr pam 3 )
131ee8aeb14SDag-Erling Smørgravfor authentication.
132810a15b1SDag-Erling SmørgravNote that this affects the effectiveness of the
133810a15b1SDag-Erling Smørgrav.Cm PasswordAuthentication
134810a15b1SDag-Erling Smørgravand
135810a15b1SDag-Erling Smørgrav.Cm PermitRootLogin
136810a15b1SDag-Erling Smørgravvariables.
137545d5ecaSDag-Erling SmørgravThe default is
138545d5ecaSDag-Erling Smørgrav.Dq yes .
139545d5ecaSDag-Erling Smørgrav.It Cm Ciphers
140545d5ecaSDag-Erling SmørgravSpecifies the ciphers allowed for protocol version 2.
141545d5ecaSDag-Erling SmørgravMultiple ciphers must be comma-separated.
142545d5ecaSDag-Erling SmørgravThe default is
143545d5ecaSDag-Erling Smørgrav.Pp
144545d5ecaSDag-Erling Smørgrav.Bd -literal
145545d5ecaSDag-Erling Smørgrav  ``aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour,
146cf2b5f3bSDag-Erling Smørgrav    aes192-cbc,aes256-cbc,aes128-ctr,aes192-ctr,aes256-ctr''
147545d5ecaSDag-Erling Smørgrav.Ed
148545d5ecaSDag-Erling Smørgrav.It Cm ClientAliveInterval
149545d5ecaSDag-Erling SmørgravSets a timeout interval in seconds after which if no data has been received
150545d5ecaSDag-Erling Smørgravfrom the client,
151545d5ecaSDag-Erling Smørgrav.Nm sshd
152545d5ecaSDag-Erling Smørgravwill send a message through the encrypted
153545d5ecaSDag-Erling Smørgravchannel to request a response from the client.
154545d5ecaSDag-Erling SmørgravThe default
155545d5ecaSDag-Erling Smørgravis 0, indicating that these messages will not be sent to the client.
156545d5ecaSDag-Erling SmørgravThis option applies to protocol version 2 only.
157545d5ecaSDag-Erling Smørgrav.It Cm ClientAliveCountMax
158545d5ecaSDag-Erling SmørgravSets the number of client alive messages (see above) which may be
159545d5ecaSDag-Erling Smørgravsent without
160545d5ecaSDag-Erling Smørgrav.Nm sshd
161cf2b5f3bSDag-Erling Smørgravreceiving any messages back from the client.
162cf2b5f3bSDag-Erling SmørgravIf this threshold is reached while client alive messages are being sent,
163545d5ecaSDag-Erling Smørgrav.Nm sshd
164cf2b5f3bSDag-Erling Smørgravwill disconnect the client, terminating the session.
165cf2b5f3bSDag-Erling SmørgravIt is important to note that the use of client alive messages is very
166cf2b5f3bSDag-Erling Smørgravdifferent from
1671ec0d754SDag-Erling Smørgrav.Cm TCPKeepAlive
168cf2b5f3bSDag-Erling Smørgrav(below).
169cf2b5f3bSDag-Erling SmørgravThe client alive messages are sent through the encrypted channel
170cf2b5f3bSDag-Erling Smørgravand therefore will not be spoofable.
171cf2b5f3bSDag-Erling SmørgravThe TCP keepalive option enabled by
1721ec0d754SDag-Erling Smørgrav.Cm TCPKeepAlive
173cf2b5f3bSDag-Erling Smørgravis spoofable.
174cf2b5f3bSDag-Erling SmørgravThe client alive mechanism is valuable when the client or
175545d5ecaSDag-Erling Smørgravserver depend on knowing when a connection has become inactive.
176545d5ecaSDag-Erling Smørgrav.Pp
177cf2b5f3bSDag-Erling SmørgravThe default value is 3.
178cf2b5f3bSDag-Erling SmørgravIf
179545d5ecaSDag-Erling Smørgrav.Cm ClientAliveInterval
180545d5ecaSDag-Erling Smørgrav(above) is set to 15, and
181545d5ecaSDag-Erling Smørgrav.Cm ClientAliveCountMax
182545d5ecaSDag-Erling Smørgravis left at the default, unresponsive ssh clients
183545d5ecaSDag-Erling Smørgravwill be disconnected after approximately 45 seconds.
184545d5ecaSDag-Erling Smørgrav.It Cm Compression
185545d5ecaSDag-Erling SmørgravSpecifies whether compression is allowed.
186545d5ecaSDag-Erling SmørgravThe argument must be
187545d5ecaSDag-Erling Smørgrav.Dq yes
188545d5ecaSDag-Erling Smørgravor
189545d5ecaSDag-Erling Smørgrav.Dq no .
190545d5ecaSDag-Erling SmørgravThe default is
191545d5ecaSDag-Erling Smørgrav.Dq yes .
192545d5ecaSDag-Erling Smørgrav.It Cm DenyGroups
193545d5ecaSDag-Erling SmørgravThis keyword can be followed by a list of group name patterns, separated
194545d5ecaSDag-Erling Smørgravby spaces.
195545d5ecaSDag-Erling SmørgravLogin is disallowed for users whose primary group or supplementary
196545d5ecaSDag-Erling Smørgravgroup list matches one of the patterns.
197545d5ecaSDag-Erling Smørgrav.Ql \&*
198545d5ecaSDag-Erling Smørgravand
199cf2b5f3bSDag-Erling Smørgrav.Ql \&?
200545d5ecaSDag-Erling Smørgravcan be used as
201545d5ecaSDag-Erling Smørgravwildcards in the patterns.
202545d5ecaSDag-Erling SmørgravOnly group names are valid; a numerical group ID is not recognized.
203545d5ecaSDag-Erling SmørgravBy default, login is allowed for all groups.
204545d5ecaSDag-Erling Smørgrav.Pp
205545d5ecaSDag-Erling Smørgrav.It Cm DenyUsers
206545d5ecaSDag-Erling SmørgravThis keyword can be followed by a list of user name patterns, separated
207545d5ecaSDag-Erling Smørgravby spaces.
208545d5ecaSDag-Erling SmørgravLogin is disallowed for user names that match one of the patterns.
209545d5ecaSDag-Erling Smørgrav.Ql \&*
210545d5ecaSDag-Erling Smørgravand
211cf2b5f3bSDag-Erling Smørgrav.Ql \&?
212545d5ecaSDag-Erling Smørgravcan be used as wildcards in the patterns.
213545d5ecaSDag-Erling SmørgravOnly user names are valid; a numerical user ID is not recognized.
214545d5ecaSDag-Erling SmørgravBy default, login is allowed for all users.
215545d5ecaSDag-Erling SmørgravIf the pattern takes the form USER@HOST then USER and HOST
216545d5ecaSDag-Erling Smørgravare separately checked, restricting logins to particular
217545d5ecaSDag-Erling Smørgravusers from particular hosts.
218545d5ecaSDag-Erling Smørgrav.It Cm GatewayPorts
219545d5ecaSDag-Erling SmørgravSpecifies whether remote hosts are allowed to connect to ports
220545d5ecaSDag-Erling Smørgravforwarded for the client.
221545d5ecaSDag-Erling SmørgravBy default,
222545d5ecaSDag-Erling Smørgrav.Nm sshd
223e73e9afaSDag-Erling Smørgravbinds remote port forwardings to the loopback address.
224e73e9afaSDag-Erling SmørgravThis prevents other remote hosts from connecting to forwarded ports.
225545d5ecaSDag-Erling Smørgrav.Cm GatewayPorts
226545d5ecaSDag-Erling Smørgravcan be used to specify that
227545d5ecaSDag-Erling Smørgrav.Nm sshd
228545d5ecaSDag-Erling Smørgravshould bind remote port forwardings to the wildcard address,
229545d5ecaSDag-Erling Smørgravthus allowing remote hosts to connect to forwarded ports.
230545d5ecaSDag-Erling SmørgravThe argument must be
231545d5ecaSDag-Erling Smørgrav.Dq yes
232545d5ecaSDag-Erling Smørgravor
233545d5ecaSDag-Erling Smørgrav.Dq no .
234545d5ecaSDag-Erling SmørgravThe default is
235545d5ecaSDag-Erling Smørgrav.Dq no .
236cf2b5f3bSDag-Erling Smørgrav.It Cm GSSAPIAuthentication
237cf2b5f3bSDag-Erling SmørgravSpecifies whether user authentication based on GSSAPI is allowed.
238cf2b5f3bSDag-Erling SmørgravThe default is
239cf2b5f3bSDag-Erling Smørgrav.Dq no .
240cf2b5f3bSDag-Erling SmørgravNote that this option applies to protocol version 2 only.
241cf2b5f3bSDag-Erling Smørgrav.It Cm GSSAPICleanupCredentials
242cf2b5f3bSDag-Erling SmørgravSpecifies whether to automatically destroy the user's credentials cache
243cf2b5f3bSDag-Erling Smørgravon logout.
244cf2b5f3bSDag-Erling SmørgravThe default is
245cf2b5f3bSDag-Erling Smørgrav.Dq yes .
246cf2b5f3bSDag-Erling SmørgravNote that this option applies to protocol version 2 only.
247545d5ecaSDag-Erling Smørgrav.It Cm HostbasedAuthentication
248545d5ecaSDag-Erling SmørgravSpecifies whether rhosts or /etc/hosts.equiv authentication together
249545d5ecaSDag-Erling Smørgravwith successful public key client host authentication is allowed
250545d5ecaSDag-Erling Smørgrav(hostbased authentication).
251545d5ecaSDag-Erling SmørgravThis option is similar to
252545d5ecaSDag-Erling Smørgrav.Cm RhostsRSAAuthentication
253545d5ecaSDag-Erling Smørgravand applies to protocol version 2 only.
254545d5ecaSDag-Erling SmørgravThe default is
255545d5ecaSDag-Erling Smørgrav.Dq no .
256545d5ecaSDag-Erling Smørgrav.It Cm HostKey
257545d5ecaSDag-Erling SmørgravSpecifies a file containing a private host key
258545d5ecaSDag-Erling Smørgravused by SSH.
259545d5ecaSDag-Erling SmørgravThe default is
260545d5ecaSDag-Erling Smørgrav.Pa /etc/ssh/ssh_host_key
261545d5ecaSDag-Erling Smørgravfor protocol version 1, and
262545d5ecaSDag-Erling Smørgrav.Pa /etc/ssh/ssh_host_dsa_key
263545d5ecaSDag-Erling Smørgravfor protocol version 2.
264545d5ecaSDag-Erling SmørgravNote that
265545d5ecaSDag-Erling Smørgrav.Nm sshd
266545d5ecaSDag-Erling Smørgravwill refuse to use a file if it is group/world-accessible.
267545d5ecaSDag-Erling SmørgravIt is possible to have multiple host key files.
268545d5ecaSDag-Erling Smørgrav.Dq rsa1
269545d5ecaSDag-Erling Smørgravkeys are used for version 1 and
270545d5ecaSDag-Erling Smørgrav.Dq dsa
271545d5ecaSDag-Erling Smørgravor
272545d5ecaSDag-Erling Smørgrav.Dq rsa
273545d5ecaSDag-Erling Smørgravare used for version 2 of the SSH protocol.
274545d5ecaSDag-Erling Smørgrav.It Cm IgnoreRhosts
275545d5ecaSDag-Erling SmørgravSpecifies that
276545d5ecaSDag-Erling Smørgrav.Pa .rhosts
277545d5ecaSDag-Erling Smørgravand
278545d5ecaSDag-Erling Smørgrav.Pa .shosts
279545d5ecaSDag-Erling Smørgravfiles will not be used in
280545d5ecaSDag-Erling Smørgrav.Cm RhostsRSAAuthentication
281545d5ecaSDag-Erling Smørgravor
282545d5ecaSDag-Erling Smørgrav.Cm HostbasedAuthentication .
283545d5ecaSDag-Erling Smørgrav.Pp
284545d5ecaSDag-Erling Smørgrav.Pa /etc/hosts.equiv
285545d5ecaSDag-Erling Smørgravand
28635d4ccfbSDag-Erling Smørgrav.Pa /etc/ssh/shosts.equiv
287545d5ecaSDag-Erling Smørgravare still used.
288545d5ecaSDag-Erling SmørgravThe default is
289545d5ecaSDag-Erling Smørgrav.Dq yes .
290545d5ecaSDag-Erling Smørgrav.It Cm IgnoreUserKnownHosts
291545d5ecaSDag-Erling SmørgravSpecifies whether
292545d5ecaSDag-Erling Smørgrav.Nm sshd
293545d5ecaSDag-Erling Smørgravshould ignore the user's
294545d5ecaSDag-Erling Smørgrav.Pa $HOME/.ssh/known_hosts
295545d5ecaSDag-Erling Smørgravduring
296545d5ecaSDag-Erling Smørgrav.Cm RhostsRSAAuthentication
297545d5ecaSDag-Erling Smørgravor
298545d5ecaSDag-Erling Smørgrav.Cm HostbasedAuthentication .
299545d5ecaSDag-Erling SmørgravThe default is
300545d5ecaSDag-Erling Smørgrav.Dq no .
301545d5ecaSDag-Erling Smørgrav.It Cm KerberosAuthentication
302cf2b5f3bSDag-Erling SmørgravSpecifies whether the password provided by the user for
303545d5ecaSDag-Erling Smørgrav.Cm PasswordAuthentication
304cf2b5f3bSDag-Erling Smørgravwill be validated through the Kerberos KDC.
305545d5ecaSDag-Erling SmørgravTo use this option, the server needs a
306545d5ecaSDag-Erling SmørgravKerberos servtab which allows the verification of the KDC's identity.
307545d5ecaSDag-Erling SmørgravDefault is
308545d5ecaSDag-Erling Smørgrav.Dq no .
309545d5ecaSDag-Erling Smørgrav.It Cm KerberosOrLocalPasswd
310545d5ecaSDag-Erling SmørgravIf set then if password authentication through Kerberos fails then
311545d5ecaSDag-Erling Smørgravthe password will be validated via any additional local mechanism
312545d5ecaSDag-Erling Smørgravsuch as
313545d5ecaSDag-Erling Smørgrav.Pa /etc/passwd .
314545d5ecaSDag-Erling SmørgravDefault is
315545d5ecaSDag-Erling Smørgrav.Dq yes .
316545d5ecaSDag-Erling Smørgrav.It Cm KerberosTicketCleanup
317545d5ecaSDag-Erling SmørgravSpecifies whether to automatically destroy the user's ticket cache
318545d5ecaSDag-Erling Smørgravfile on logout.
319545d5ecaSDag-Erling SmørgravDefault is
320545d5ecaSDag-Erling Smørgrav.Dq yes .
321545d5ecaSDag-Erling Smørgrav.It Cm KeyRegenerationInterval
322545d5ecaSDag-Erling SmørgravIn protocol version 1, the ephemeral server key is automatically regenerated
323545d5ecaSDag-Erling Smørgravafter this many seconds (if it has been used).
324545d5ecaSDag-Erling SmørgravThe purpose of regeneration is to prevent
325545d5ecaSDag-Erling Smørgravdecrypting captured sessions by later breaking into the machine and
326545d5ecaSDag-Erling Smørgravstealing the keys.
327545d5ecaSDag-Erling SmørgravThe key is never stored anywhere.
328545d5ecaSDag-Erling SmørgravIf the value is 0, the key is never regenerated.
329545d5ecaSDag-Erling SmørgravThe default is 3600 (seconds).
330545d5ecaSDag-Erling Smørgrav.It Cm ListenAddress
331545d5ecaSDag-Erling SmørgravSpecifies the local addresses
332545d5ecaSDag-Erling Smørgrav.Nm sshd
333545d5ecaSDag-Erling Smørgravshould listen on.
334545d5ecaSDag-Erling SmørgravThe following forms may be used:
335545d5ecaSDag-Erling Smørgrav.Pp
336545d5ecaSDag-Erling Smørgrav.Bl -item -offset indent -compact
337545d5ecaSDag-Erling Smørgrav.It
338545d5ecaSDag-Erling Smørgrav.Cm ListenAddress
339545d5ecaSDag-Erling Smørgrav.Sm off
340545d5ecaSDag-Erling Smørgrav.Ar host No | Ar IPv4_addr No | Ar IPv6_addr
341545d5ecaSDag-Erling Smørgrav.Sm on
342545d5ecaSDag-Erling Smørgrav.It
343545d5ecaSDag-Erling Smørgrav.Cm ListenAddress
344545d5ecaSDag-Erling Smørgrav.Sm off
345545d5ecaSDag-Erling Smørgrav.Ar host No | Ar IPv4_addr No : Ar port
346545d5ecaSDag-Erling Smørgrav.Sm on
347545d5ecaSDag-Erling Smørgrav.It
348545d5ecaSDag-Erling Smørgrav.Cm ListenAddress
349545d5ecaSDag-Erling Smørgrav.Sm off
350545d5ecaSDag-Erling Smørgrav.Oo
351545d5ecaSDag-Erling Smørgrav.Ar host No | Ar IPv6_addr Oc : Ar port
352545d5ecaSDag-Erling Smørgrav.Sm on
353545d5ecaSDag-Erling Smørgrav.El
354545d5ecaSDag-Erling Smørgrav.Pp
355545d5ecaSDag-Erling SmørgravIf
356545d5ecaSDag-Erling Smørgrav.Ar port
357545d5ecaSDag-Erling Smørgravis not specified,
358545d5ecaSDag-Erling Smørgrav.Nm sshd
359545d5ecaSDag-Erling Smørgravwill listen on the address and all prior
360545d5ecaSDag-Erling Smørgrav.Cm Port
361cf2b5f3bSDag-Erling Smørgravoptions specified.
362cf2b5f3bSDag-Erling SmørgravThe default is to listen on all local addresses.
363e73e9afaSDag-Erling SmørgravMultiple
364545d5ecaSDag-Erling Smørgrav.Cm ListenAddress
365cf2b5f3bSDag-Erling Smørgravoptions are permitted.
366cf2b5f3bSDag-Erling SmørgravAdditionally, any
367545d5ecaSDag-Erling Smørgrav.Cm Port
368545d5ecaSDag-Erling Smørgravoptions must precede this option for non port qualified addresses.
369545d5ecaSDag-Erling Smørgrav.It Cm LoginGraceTime
370545d5ecaSDag-Erling SmørgravThe server disconnects after this time if the user has not
371545d5ecaSDag-Erling Smørgravsuccessfully logged in.
372545d5ecaSDag-Erling SmørgravIf the value is 0, there is no time limit.
373f388f5efSDag-Erling SmørgravThe default is 120 seconds.
374545d5ecaSDag-Erling Smørgrav.It Cm LogLevel
375545d5ecaSDag-Erling SmørgravGives the verbosity level that is used when logging messages from
376545d5ecaSDag-Erling Smørgrav.Nm sshd .
377545d5ecaSDag-Erling SmørgravThe possible values are:
378545d5ecaSDag-Erling SmørgravQUIET, FATAL, ERROR, INFO, VERBOSE, DEBUG, DEBUG1, DEBUG2 and DEBUG3.
379e73e9afaSDag-Erling SmørgravThe default is INFO.
380e73e9afaSDag-Erling SmørgravDEBUG and DEBUG1 are equivalent.
381e73e9afaSDag-Erling SmørgravDEBUG2 and DEBUG3 each specify higher levels of debugging output.
382e73e9afaSDag-Erling SmørgravLogging with a DEBUG level violates the privacy of users and is not recommended.
383545d5ecaSDag-Erling Smørgrav.It Cm MACs
384545d5ecaSDag-Erling SmørgravSpecifies the available MAC (message authentication code) algorithms.
385545d5ecaSDag-Erling SmørgravThe MAC algorithm is used in protocol version 2
386545d5ecaSDag-Erling Smørgravfor data integrity protection.
387545d5ecaSDag-Erling SmørgravMultiple algorithms must be comma-separated.
388545d5ecaSDag-Erling SmørgravThe default is
389545d5ecaSDag-Erling Smørgrav.Dq hmac-md5,hmac-sha1,hmac-ripemd160,hmac-sha1-96,hmac-md5-96 .
390545d5ecaSDag-Erling Smørgrav.It Cm MaxStartups
391545d5ecaSDag-Erling SmørgravSpecifies the maximum number of concurrent unauthenticated connections to the
392545d5ecaSDag-Erling Smørgrav.Nm sshd
393545d5ecaSDag-Erling Smørgravdaemon.
394545d5ecaSDag-Erling SmørgravAdditional connections will be dropped until authentication succeeds or the
395545d5ecaSDag-Erling Smørgrav.Cm LoginGraceTime
396545d5ecaSDag-Erling Smørgravexpires for a connection.
397545d5ecaSDag-Erling SmørgravThe default is 10.
398545d5ecaSDag-Erling Smørgrav.Pp
399545d5ecaSDag-Erling SmørgravAlternatively, random early drop can be enabled by specifying
400545d5ecaSDag-Erling Smørgravthe three colon separated values
401545d5ecaSDag-Erling Smørgrav.Dq start:rate:full
402545d5ecaSDag-Erling Smørgrav(e.g., "10:30:60").
403545d5ecaSDag-Erling Smørgrav.Nm sshd
404545d5ecaSDag-Erling Smørgravwill refuse connection attempts with a probability of
405545d5ecaSDag-Erling Smørgrav.Dq rate/100
406545d5ecaSDag-Erling Smørgrav(30%)
407545d5ecaSDag-Erling Smørgravif there are currently
408545d5ecaSDag-Erling Smørgrav.Dq start
409545d5ecaSDag-Erling Smørgrav(10)
410545d5ecaSDag-Erling Smørgravunauthenticated connections.
411545d5ecaSDag-Erling SmørgravThe probability increases linearly and all connection attempts
412545d5ecaSDag-Erling Smørgravare refused if the number of unauthenticated connections reaches
413545d5ecaSDag-Erling Smørgrav.Dq full
414545d5ecaSDag-Erling Smørgrav(60).
415545d5ecaSDag-Erling Smørgrav.It Cm PasswordAuthentication
416545d5ecaSDag-Erling SmørgravSpecifies whether password authentication is allowed.
417545d5ecaSDag-Erling SmørgravThe default is
418b909c84bSDag-Erling Smørgrav.Dq no ,
419b909c84bSDag-Erling Smørgravunless
420b909c84bSDag-Erling Smørgrav.Nm sshd
421b909c84bSDag-Erling Smørgravwas built without PAM support, in which case the default is
422545d5ecaSDag-Erling Smørgrav.Dq yes .
423b0a159ccSSimon L. B. NielsenNote that if
424810a15b1SDag-Erling Smørgrav.Cm ChallengeResponseAuthentication
425810a15b1SDag-Erling Smørgravis
426810a15b1SDag-Erling Smørgrav.Dq yes ,
427810a15b1SDag-Erling Smørgravand the PAM authentication policy for
428810a15b1SDag-Erling Smørgrav.Nm sshd
429810a15b1SDag-Erling Smørgravincludes
430810a15b1SDag-Erling Smørgrav.Xr pam_unix 8 ,
431810a15b1SDag-Erling Smørgravpassword authentication will be allowed through the challenge-response
432810a15b1SDag-Erling Smørgravmechanism regardless of the value of
433810a15b1SDag-Erling Smørgrav.Cm PasswordAuthentication .
434545d5ecaSDag-Erling Smørgrav.It Cm PermitEmptyPasswords
435545d5ecaSDag-Erling SmørgravWhen password authentication is allowed, it specifies whether the
436545d5ecaSDag-Erling Smørgravserver allows login to accounts with empty password strings.
437545d5ecaSDag-Erling SmørgravThe default is
438545d5ecaSDag-Erling Smørgrav.Dq no .
439545d5ecaSDag-Erling Smørgrav.It Cm PermitRootLogin
440545d5ecaSDag-Erling SmørgravSpecifies whether root can login using
441545d5ecaSDag-Erling Smørgrav.Xr ssh 1 .
442545d5ecaSDag-Erling SmørgravThe argument must be
443545d5ecaSDag-Erling Smørgrav.Dq yes ,
444545d5ecaSDag-Erling Smørgrav.Dq without-password ,
445545d5ecaSDag-Erling Smørgrav.Dq forced-commands-only
446545d5ecaSDag-Erling Smørgravor
447545d5ecaSDag-Erling Smørgrav.Dq no .
448545d5ecaSDag-Erling SmørgravThe default is
44935d4ccfbSDag-Erling Smørgrav.Dq no .
450810a15b1SDag-Erling SmørgravNote that if
451810a15b1SDag-Erling Smørgrav.Cm ChallengeResponseAuthentication
452810a15b1SDag-Erling Smørgravis
453810a15b1SDag-Erling Smørgrav.Dq yes ,
454810a15b1SDag-Erling Smørgravthe root user may be allowed in with its password even if
455810a15b1SDag-Erling Smørgrav.Cm PermitRootLogin is set to
456810a15b1SDag-Erling Smørgrav.Dq without-password .
457545d5ecaSDag-Erling Smørgrav.Pp
458545d5ecaSDag-Erling SmørgravIf this option is set to
459545d5ecaSDag-Erling Smørgrav.Dq without-password
460545d5ecaSDag-Erling Smørgravpassword authentication is disabled for root.
461545d5ecaSDag-Erling Smørgrav.Pp
462545d5ecaSDag-Erling SmørgravIf this option is set to
463545d5ecaSDag-Erling Smørgrav.Dq forced-commands-only
464545d5ecaSDag-Erling Smørgravroot login with public key authentication will be allowed,
465545d5ecaSDag-Erling Smørgravbut only if the
466545d5ecaSDag-Erling Smørgrav.Ar command
467545d5ecaSDag-Erling Smørgravoption has been specified
468545d5ecaSDag-Erling Smørgrav(which may be useful for taking remote backups even if root login is
469cf2b5f3bSDag-Erling Smørgravnormally not allowed).
470cf2b5f3bSDag-Erling SmørgravAll other authentication methods are disabled for root.
471545d5ecaSDag-Erling Smørgrav.Pp
472545d5ecaSDag-Erling SmørgravIf this option is set to
473545d5ecaSDag-Erling Smørgrav.Dq no
474545d5ecaSDag-Erling Smørgravroot is not allowed to login.
475f388f5efSDag-Erling Smørgrav.It Cm PermitUserEnvironment
476f388f5efSDag-Erling SmørgravSpecifies whether
477f388f5efSDag-Erling Smørgrav.Pa ~/.ssh/environment
478f388f5efSDag-Erling Smørgravand
479f388f5efSDag-Erling Smørgrav.Cm environment=
480f388f5efSDag-Erling Smørgravoptions in
481f388f5efSDag-Erling Smørgrav.Pa ~/.ssh/authorized_keys
482f388f5efSDag-Erling Smørgravare processed by
483f388f5efSDag-Erling Smørgrav.Nm sshd .
484f388f5efSDag-Erling SmørgravThe default is
485f388f5efSDag-Erling Smørgrav.Dq no .
486f388f5efSDag-Erling SmørgravEnabling environment processing may enable users to bypass access
487f388f5efSDag-Erling Smørgravrestrictions in some configurations using mechanisms such as
488f388f5efSDag-Erling Smørgrav.Ev LD_PRELOAD .
489545d5ecaSDag-Erling Smørgrav.It Cm PidFile
490a82e551fSDag-Erling SmørgravSpecifies the file that contains the process ID of the
491545d5ecaSDag-Erling Smørgrav.Nm sshd
492545d5ecaSDag-Erling Smørgravdaemon.
493545d5ecaSDag-Erling SmørgravThe default is
494545d5ecaSDag-Erling Smørgrav.Pa /var/run/sshd.pid .
495545d5ecaSDag-Erling Smørgrav.It Cm Port
496545d5ecaSDag-Erling SmørgravSpecifies the port number that
497545d5ecaSDag-Erling Smørgrav.Nm sshd
498545d5ecaSDag-Erling Smørgravlistens on.
499545d5ecaSDag-Erling SmørgravThe default is 22.
500545d5ecaSDag-Erling SmørgravMultiple options of this type are permitted.
501545d5ecaSDag-Erling SmørgravSee also
502545d5ecaSDag-Erling Smørgrav.Cm ListenAddress .
503545d5ecaSDag-Erling Smørgrav.It Cm PrintLastLog
504545d5ecaSDag-Erling SmørgravSpecifies whether
505545d5ecaSDag-Erling Smørgrav.Nm sshd
506545d5ecaSDag-Erling Smørgravshould print the date and time when the user last logged in.
507545d5ecaSDag-Erling SmørgravThe default is
508545d5ecaSDag-Erling Smørgrav.Dq yes .
509545d5ecaSDag-Erling Smørgrav.It Cm PrintMotd
510545d5ecaSDag-Erling SmørgravSpecifies whether
511545d5ecaSDag-Erling Smørgrav.Nm sshd
512545d5ecaSDag-Erling Smørgravshould print
513545d5ecaSDag-Erling Smørgrav.Pa /etc/motd
514545d5ecaSDag-Erling Smørgravwhen a user logs in interactively.
515545d5ecaSDag-Erling Smørgrav(On some systems it is also printed by the shell,
516545d5ecaSDag-Erling Smørgrav.Pa /etc/profile ,
517545d5ecaSDag-Erling Smørgravor equivalent.)
518545d5ecaSDag-Erling SmørgravThe default is
519545d5ecaSDag-Erling Smørgrav.Dq yes .
520545d5ecaSDag-Erling Smørgrav.It Cm Protocol
521545d5ecaSDag-Erling SmørgravSpecifies the protocol versions
522545d5ecaSDag-Erling Smørgrav.Nm sshd
523f388f5efSDag-Erling Smørgravsupports.
524545d5ecaSDag-Erling SmørgravThe possible values are
525545d5ecaSDag-Erling Smørgrav.Dq 1
526545d5ecaSDag-Erling Smørgravand
527545d5ecaSDag-Erling Smørgrav.Dq 2 .
528545d5ecaSDag-Erling SmørgravMultiple versions must be comma-separated.
529545d5ecaSDag-Erling SmørgravThe default is
530028c324aSDag-Erling Smørgrav.Dq 2 .
531f388f5efSDag-Erling SmørgravNote that the order of the protocol list does not indicate preference,
532f388f5efSDag-Erling Smørgravbecause the client selects among multiple protocol versions offered
533f388f5efSDag-Erling Smørgravby the server.
534f388f5efSDag-Erling SmørgravSpecifying
535f388f5efSDag-Erling Smørgrav.Dq 2,1
536f388f5efSDag-Erling Smørgravis identical to
537f388f5efSDag-Erling Smørgrav.Dq 1,2 .
538545d5ecaSDag-Erling Smørgrav.It Cm PubkeyAuthentication
539545d5ecaSDag-Erling SmørgravSpecifies whether public key authentication is allowed.
540545d5ecaSDag-Erling SmørgravThe default is
541545d5ecaSDag-Erling Smørgrav.Dq yes .
542545d5ecaSDag-Erling SmørgravNote that this option applies to protocol version 2 only.
543545d5ecaSDag-Erling Smørgrav.It Cm RhostsRSAAuthentication
54435d4ccfbSDag-Erling SmørgravSpecifies whether rhosts or
54535d4ccfbSDag-Erling Smørgrav.Pa /etc/hosts.equiv
54635d4ccfbSDag-Erling Smørgravauthentication together
547545d5ecaSDag-Erling Smørgravwith successful RSA host authentication is allowed.
548545d5ecaSDag-Erling SmørgravThe default is
549545d5ecaSDag-Erling Smørgrav.Dq no .
550545d5ecaSDag-Erling SmørgravThis option applies to protocol version 1 only.
551545d5ecaSDag-Erling Smørgrav.It Cm RSAAuthentication
552545d5ecaSDag-Erling SmørgravSpecifies whether pure RSA authentication is allowed.
553545d5ecaSDag-Erling SmørgravThe default is
554545d5ecaSDag-Erling Smørgrav.Dq yes .
555545d5ecaSDag-Erling SmørgravThis option applies to protocol version 1 only.
556545d5ecaSDag-Erling Smørgrav.It Cm ServerKeyBits
557545d5ecaSDag-Erling SmørgravDefines the number of bits in the ephemeral protocol version 1 server key.
558545d5ecaSDag-Erling SmørgravThe minimum value is 512, and the default is 768.
559545d5ecaSDag-Erling Smørgrav.It Cm StrictModes
560545d5ecaSDag-Erling SmørgravSpecifies whether
561545d5ecaSDag-Erling Smørgrav.Nm sshd
562545d5ecaSDag-Erling Smørgravshould check file modes and ownership of the
563545d5ecaSDag-Erling Smørgravuser's files and home directory before accepting login.
564545d5ecaSDag-Erling SmørgravThis is normally desirable because novices sometimes accidentally leave their
565545d5ecaSDag-Erling Smørgravdirectory or files world-writable.
566545d5ecaSDag-Erling SmørgravThe default is
567545d5ecaSDag-Erling Smørgrav.Dq yes .
568545d5ecaSDag-Erling Smørgrav.It Cm Subsystem
569545d5ecaSDag-Erling SmørgravConfigures an external subsystem (e.g., file transfer daemon).
570545d5ecaSDag-Erling SmørgravArguments should be a subsystem name and a command to execute upon subsystem
571545d5ecaSDag-Erling Smørgravrequest.
572545d5ecaSDag-Erling SmørgravThe command
573545d5ecaSDag-Erling Smørgrav.Xr sftp-server 8
574545d5ecaSDag-Erling Smørgravimplements the
575545d5ecaSDag-Erling Smørgrav.Dq sftp
576545d5ecaSDag-Erling Smørgravfile transfer subsystem.
577545d5ecaSDag-Erling SmørgravBy default no subsystems are defined.
578545d5ecaSDag-Erling SmørgravNote that this option applies to protocol version 2 only.
579545d5ecaSDag-Erling Smørgrav.It Cm SyslogFacility
580545d5ecaSDag-Erling SmørgravGives the facility code that is used when logging messages from
581545d5ecaSDag-Erling Smørgrav.Nm sshd .
582545d5ecaSDag-Erling SmørgravThe possible values are: DAEMON, USER, AUTH, LOCAL0, LOCAL1, LOCAL2,
583545d5ecaSDag-Erling SmørgravLOCAL3, LOCAL4, LOCAL5, LOCAL6, LOCAL7.
584545d5ecaSDag-Erling SmørgravThe default is AUTH.
5851ec0d754SDag-Erling Smørgrav.It Cm TCPKeepAlive
5861ec0d754SDag-Erling SmørgravSpecifies whether the system should send TCP keepalive messages to the
5871ec0d754SDag-Erling Smørgravother side.
5881ec0d754SDag-Erling SmørgravIf they are sent, death of the connection or crash of one
5891ec0d754SDag-Erling Smørgravof the machines will be properly noticed.
5901ec0d754SDag-Erling SmørgravHowever, this means that
5911ec0d754SDag-Erling Smørgravconnections will die if the route is down temporarily, and some people
5921ec0d754SDag-Erling Smørgravfind it annoying.
5931ec0d754SDag-Erling SmørgravOn the other hand, if TCP keepalives are not sent,
5941ec0d754SDag-Erling Smørgravsessions may hang indefinitely on the server, leaving
5951ec0d754SDag-Erling Smørgrav.Dq ghost
5961ec0d754SDag-Erling Smørgravusers and consuming server resources.
5971ec0d754SDag-Erling Smørgrav.Pp
5981ec0d754SDag-Erling SmørgravThe default is
5991ec0d754SDag-Erling Smørgrav.Dq yes
6001ec0d754SDag-Erling Smørgrav(to send TCP keepalive messages), and the server will notice
6011ec0d754SDag-Erling Smørgravif the network goes down or the client host crashes.
6021ec0d754SDag-Erling SmørgravThis avoids infinitely hanging sessions.
6031ec0d754SDag-Erling Smørgrav.Pp
6041ec0d754SDag-Erling SmørgravTo disable TCP keepalive messages, the value should be set to
6051ec0d754SDag-Erling Smørgrav.Dq no .
606cf2b5f3bSDag-Erling Smørgrav.It Cm UseDNS
607cf2b5f3bSDag-Erling SmørgravSpecifies whether
608cf2b5f3bSDag-Erling Smørgrav.Nm sshd
609cf2b5f3bSDag-Erling Smørgravshould lookup the remote host name and check that
610cf2b5f3bSDag-Erling Smørgravthe resolved host name for the remote IP address maps back to the
611cf2b5f3bSDag-Erling Smørgravvery same IP address.
612cf2b5f3bSDag-Erling SmørgravThe default is
613cf2b5f3bSDag-Erling Smørgrav.Dq yes .
614545d5ecaSDag-Erling Smørgrav.It Cm UseLogin
615545d5ecaSDag-Erling SmørgravSpecifies whether
616545d5ecaSDag-Erling Smørgrav.Xr login 1
617545d5ecaSDag-Erling Smørgravis used for interactive login sessions.
618545d5ecaSDag-Erling SmørgravThe default is
619545d5ecaSDag-Erling Smørgrav.Dq no .
620545d5ecaSDag-Erling SmørgravNote that
621545d5ecaSDag-Erling Smørgrav.Xr login 1
622545d5ecaSDag-Erling Smørgravis never used for remote command execution.
623545d5ecaSDag-Erling SmørgravNote also, that if this is enabled,
624545d5ecaSDag-Erling Smørgrav.Cm X11Forwarding
625545d5ecaSDag-Erling Smørgravwill be disabled because
626545d5ecaSDag-Erling Smørgrav.Xr login 1
627545d5ecaSDag-Erling Smørgravdoes not know how to handle
628545d5ecaSDag-Erling Smørgrav.Xr xauth 1
629e73e9afaSDag-Erling Smørgravcookies.
630e73e9afaSDag-Erling SmørgravIf
631545d5ecaSDag-Erling Smørgrav.Cm UsePrivilegeSeparation
632545d5ecaSDag-Erling Smørgravis specified, it will be disabled after authentication.
633cf2b5f3bSDag-Erling Smørgrav.It Cm UsePAM
634cf2b5f3bSDag-Erling SmørgravEnables PAM authentication (via challenge-response) and session set up.
635cf2b5f3bSDag-Erling SmørgravIf you enable this, you should probably disable
636cf2b5f3bSDag-Erling Smørgrav.Cm PasswordAuthentication .
637cf2b5f3bSDag-Erling SmørgravIf you enable
638cf2b5f3bSDag-Erling Smørgrav.CM UsePAM
6391ec0d754SDag-Erling Smørgravthen you will not be able to run sshd as a non-root user.  The default is
6401ec0d754SDag-Erling Smørgrav.Dq no .
641545d5ecaSDag-Erling Smørgrav.It Cm UsePrivilegeSeparation
642545d5ecaSDag-Erling SmørgravSpecifies whether
643545d5ecaSDag-Erling Smørgrav.Nm sshd
644545d5ecaSDag-Erling Smørgravseparates privileges by creating an unprivileged child process
645e73e9afaSDag-Erling Smørgravto deal with incoming network traffic.
646e73e9afaSDag-Erling SmørgravAfter successful authentication, another process will be created that has
647e73e9afaSDag-Erling Smørgravthe privilege of the authenticated user.
648e73e9afaSDag-Erling SmørgravThe goal of privilege separation is to prevent privilege
649545d5ecaSDag-Erling Smørgravescalation by containing any corruption within the unprivileged processes.
650545d5ecaSDag-Erling SmørgravThe default is
651545d5ecaSDag-Erling Smørgrav.Dq yes .
65235d4ccfbSDag-Erling Smørgrav.It Cm VersionAddendum
65335d4ccfbSDag-Erling SmørgravSpecifies a string to append to the regular version string to identify
65435d4ccfbSDag-Erling SmørgravOS- or site-specific modifications.
655ee8aeb14SDag-Erling SmørgravThe default is
656cf2b5f3bSDag-Erling Smørgrav.Dq FreeBSD-20040106 .
657545d5ecaSDag-Erling Smørgrav.It Cm X11DisplayOffset
658545d5ecaSDag-Erling SmørgravSpecifies the first display number available for
659545d5ecaSDag-Erling Smørgrav.Nm sshd Ns 's
660545d5ecaSDag-Erling SmørgravX11 forwarding.
661545d5ecaSDag-Erling SmørgravThis prevents
662545d5ecaSDag-Erling Smørgrav.Nm sshd
663545d5ecaSDag-Erling Smørgravfrom interfering with real X11 servers.
664545d5ecaSDag-Erling SmørgravThe default is 10.
665545d5ecaSDag-Erling Smørgrav.It Cm X11Forwarding
666545d5ecaSDag-Erling SmørgravSpecifies whether X11 forwarding is permitted.
667f388f5efSDag-Erling SmørgravThe argument must be
668f388f5efSDag-Erling Smørgrav.Dq yes
669f388f5efSDag-Erling Smørgravor
670f388f5efSDag-Erling Smørgrav.Dq no .
671545d5ecaSDag-Erling SmørgravThe default is
672ee8aeb14SDag-Erling Smørgrav.Dq yes .
673f388f5efSDag-Erling Smørgrav.Pp
674f388f5efSDag-Erling SmørgravWhen X11 forwarding is enabled, there may be additional exposure to
675f388f5efSDag-Erling Smørgravthe server and to client displays if the
676f388f5efSDag-Erling Smørgrav.Nm sshd
677f388f5efSDag-Erling Smørgravproxy display is configured to listen on the wildcard address (see
678f388f5efSDag-Erling Smørgrav.Cm X11UseLocalhost
679f388f5efSDag-Erling Smørgravbelow), however this is not the default.
680f388f5efSDag-Erling SmørgravAdditionally, the authentication spoofing and authentication data
681f388f5efSDag-Erling Smørgravverification and substitution occur on the client side.
682f388f5efSDag-Erling SmørgravThe security risk of using X11 forwarding is that the client's X11
683f388f5efSDag-Erling Smørgravdisplay server may be exposed to attack when the ssh client requests
684f388f5efSDag-Erling Smørgravforwarding (see the warnings for
685f388f5efSDag-Erling Smørgrav.Cm ForwardX11
686f388f5efSDag-Erling Smørgravin
687f388f5efSDag-Erling Smørgrav.Xr ssh_config 5 ) .
688f388f5efSDag-Erling SmørgravA system administrator may have a stance in which they want to
689f388f5efSDag-Erling Smørgravprotect clients that may expose themselves to attack by unwittingly
690f388f5efSDag-Erling Smørgravrequesting X11 forwarding, which can warrant a
691f388f5efSDag-Erling Smørgrav.Dq no
692f388f5efSDag-Erling Smørgravsetting.
693f388f5efSDag-Erling Smørgrav.Pp
694f388f5efSDag-Erling SmørgravNote that disabling X11 forwarding does not prevent users from
695f388f5efSDag-Erling Smørgravforwarding X11 traffic, as users can always install their own forwarders.
696545d5ecaSDag-Erling SmørgravX11 forwarding is automatically disabled if
697545d5ecaSDag-Erling Smørgrav.Cm UseLogin
698545d5ecaSDag-Erling Smørgravis enabled.
699545d5ecaSDag-Erling Smørgrav.It Cm X11UseLocalhost
700545d5ecaSDag-Erling SmørgravSpecifies whether
701545d5ecaSDag-Erling Smørgrav.Nm sshd
702545d5ecaSDag-Erling Smørgravshould bind the X11 forwarding server to the loopback address or to
703e73e9afaSDag-Erling Smørgravthe wildcard address.
704e73e9afaSDag-Erling SmørgravBy default,
705545d5ecaSDag-Erling Smørgrav.Nm sshd
706545d5ecaSDag-Erling Smørgravbinds the forwarding server to the loopback address and sets the
707545d5ecaSDag-Erling Smørgravhostname part of the
708545d5ecaSDag-Erling Smørgrav.Ev DISPLAY
709545d5ecaSDag-Erling Smørgravenvironment variable to
710545d5ecaSDag-Erling Smørgrav.Dq localhost .
711f388f5efSDag-Erling SmørgravThis prevents remote hosts from connecting to the proxy display.
712545d5ecaSDag-Erling SmørgravHowever, some older X11 clients may not function with this
713545d5ecaSDag-Erling Smørgravconfiguration.
714545d5ecaSDag-Erling Smørgrav.Cm X11UseLocalhost
715545d5ecaSDag-Erling Smørgravmay be set to
716545d5ecaSDag-Erling Smørgrav.Dq no
717545d5ecaSDag-Erling Smørgravto specify that the forwarding server should be bound to the wildcard
718545d5ecaSDag-Erling Smørgravaddress.
719545d5ecaSDag-Erling SmørgravThe argument must be
720545d5ecaSDag-Erling Smørgrav.Dq yes
721545d5ecaSDag-Erling Smørgravor
722545d5ecaSDag-Erling Smørgrav.Dq no .
723545d5ecaSDag-Erling SmørgravThe default is
724545d5ecaSDag-Erling Smørgrav.Dq yes .
725545d5ecaSDag-Erling Smørgrav.It Cm XAuthLocation
726f388f5efSDag-Erling SmørgravSpecifies the full pathname of the
727545d5ecaSDag-Erling Smørgrav.Xr xauth 1
728545d5ecaSDag-Erling Smørgravprogram.
729545d5ecaSDag-Erling SmørgravThe default is
730545d5ecaSDag-Erling Smørgrav.Pa /usr/X11R6/bin/xauth .
731545d5ecaSDag-Erling Smørgrav.El
732545d5ecaSDag-Erling Smørgrav.Ss Time Formats
733545d5ecaSDag-Erling Smørgrav.Nm sshd
734545d5ecaSDag-Erling Smørgravcommand-line arguments and configuration file options that specify time
735545d5ecaSDag-Erling Smørgravmay be expressed using a sequence of the form:
736545d5ecaSDag-Erling Smørgrav.Sm off
737f388f5efSDag-Erling Smørgrav.Ar time Op Ar qualifier ,
738545d5ecaSDag-Erling Smørgrav.Sm on
739545d5ecaSDag-Erling Smørgravwhere
740545d5ecaSDag-Erling Smørgrav.Ar time
741545d5ecaSDag-Erling Smørgravis a positive integer value and
742545d5ecaSDag-Erling Smørgrav.Ar qualifier
743545d5ecaSDag-Erling Smørgravis one of the following:
744545d5ecaSDag-Erling Smørgrav.Pp
745545d5ecaSDag-Erling Smørgrav.Bl -tag -width Ds -compact -offset indent
746545d5ecaSDag-Erling Smørgrav.It Cm <none>
747545d5ecaSDag-Erling Smørgravseconds
748545d5ecaSDag-Erling Smørgrav.It Cm s | Cm S
749545d5ecaSDag-Erling Smørgravseconds
750545d5ecaSDag-Erling Smørgrav.It Cm m | Cm M
751545d5ecaSDag-Erling Smørgravminutes
752545d5ecaSDag-Erling Smørgrav.It Cm h | Cm H
753545d5ecaSDag-Erling Smørgravhours
754545d5ecaSDag-Erling Smørgrav.It Cm d | Cm D
755545d5ecaSDag-Erling Smørgravdays
756545d5ecaSDag-Erling Smørgrav.It Cm w | Cm W
757545d5ecaSDag-Erling Smørgravweeks
758545d5ecaSDag-Erling Smørgrav.El
759545d5ecaSDag-Erling Smørgrav.Pp
760545d5ecaSDag-Erling SmørgravEach member of the sequence is added together to calculate
761545d5ecaSDag-Erling Smørgravthe total time value.
762545d5ecaSDag-Erling Smørgrav.Pp
763545d5ecaSDag-Erling SmørgravTime format examples:
764545d5ecaSDag-Erling Smørgrav.Pp
765545d5ecaSDag-Erling Smørgrav.Bl -tag -width Ds -compact -offset indent
766545d5ecaSDag-Erling Smørgrav.It 600
767545d5ecaSDag-Erling Smørgrav600 seconds (10 minutes)
768545d5ecaSDag-Erling Smørgrav.It 10m
769545d5ecaSDag-Erling Smørgrav10 minutes
770545d5ecaSDag-Erling Smørgrav.It 1h30m
771545d5ecaSDag-Erling Smørgrav1 hour 30 minutes (90 minutes)
772545d5ecaSDag-Erling Smørgrav.El
773545d5ecaSDag-Erling Smørgrav.Sh FILES
774545d5ecaSDag-Erling Smørgrav.Bl -tag -width Ds
775545d5ecaSDag-Erling Smørgrav.It Pa /etc/ssh/sshd_config
776545d5ecaSDag-Erling SmørgravContains configuration data for
777545d5ecaSDag-Erling Smørgrav.Nm sshd .
778545d5ecaSDag-Erling SmørgravThis file should be writable by root only, but it is recommended
779545d5ecaSDag-Erling Smørgrav(though not necessary) that it be world-readable.
780545d5ecaSDag-Erling Smørgrav.El
781cf2b5f3bSDag-Erling Smørgrav.Sh SEE ALSO
782cf2b5f3bSDag-Erling Smørgrav.Xr sshd 8
783545d5ecaSDag-Erling Smørgrav.Sh AUTHORS
784545d5ecaSDag-Erling SmørgravOpenSSH is a derivative of the original and free
785545d5ecaSDag-Erling Smørgravssh 1.2.12 release by Tatu Ylonen.
786545d5ecaSDag-Erling SmørgravAaron Campbell, Bob Beck, Markus Friedl, Niels Provos,
787545d5ecaSDag-Erling SmørgravTheo de Raadt and Dug Song
788545d5ecaSDag-Erling Smørgravremoved many bugs, re-added newer features and
789545d5ecaSDag-Erling Smørgravcreated OpenSSH.
790545d5ecaSDag-Erling SmørgravMarkus Friedl contributed the support for SSH
791545d5ecaSDag-Erling Smørgravprotocol versions 1.5 and 2.0.
792545d5ecaSDag-Erling SmørgravNiels Provos and Markus Friedl contributed support
793545d5ecaSDag-Erling Smørgravfor privilege separation.
794