blob: d0b7cb612edeb9d7386797d2b6586fc5a23a87f5 [file] [log] [blame]
Damien Miller32aa1441999-10-29 09:15:49 +10001.\" -*- nroff -*-
2.\"
Damien Miller32aa1441999-10-29 09:15:49 +10003.\" Author: Tatu Ylonen <ylo@cs.hut.fi>
Damien Miller32aa1441999-10-29 09:15:49 +10004.\" Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
5.\" All rights reserved
6.\"
Damien Millere4340be2000-09-16 13:29:08 +11007.\" As far as I am concerned, the code I have written for this software
8.\" can be used freely for any purpose. Any derived versions of this
9.\" software must be clearly marked as such, and if the derived work is
10.\" incompatible with the protocol description in the RFC file, it must be
11.\" called by a name other than "ssh" or "Secure Shell".
Damien Miller32aa1441999-10-29 09:15:49 +100012.\"
Ben Lindstrom92a2e382001-03-05 06:59:27 +000013.\" Copyright (c) 1999,2000 Markus Friedl. All rights reserved.
14.\" Copyright (c) 1999 Aaron Campbell. All rights reserved.
15.\" Copyright (c) 1999 Theo de Raadt. All rights reserved.
Damien Millere4340be2000-09-16 13:29:08 +110016.\"
17.\" Redistribution and use in source and binary forms, with or without
18.\" modification, are permitted provided that the following conditions
19.\" are met:
20.\" 1. Redistributions of source code must retain the above copyright
21.\" notice, this list of conditions and the following disclaimer.
22.\" 2. Redistributions in binary form must reproduce the above copyright
23.\" notice, this list of conditions and the following disclaimer in the
24.\" documentation and/or other materials provided with the distribution.
25.\"
26.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
27.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
28.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
29.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
30.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
31.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
32.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
33.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
34.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
35.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Damien Miller32aa1441999-10-29 09:15:49 +100036.\"
Ben Lindstrom88a6b752001-07-04 03:55:21 +000037.\" $OpenBSD: sshd.8,v 1.134 2001/06/26 05:48:07 mpech Exp $
Damien Miller32aa1441999-10-29 09:15:49 +100038.Dd September 25, 1999
39.Dt SSHD 8
40.Os
41.Sh NAME
42.Nm sshd
Ben Lindstromc65e6a02001-04-23 13:02:16 +000043.Nd OpenSSH SSH daemon
Damien Miller32aa1441999-10-29 09:15:49 +100044.Sh SYNOPSIS
45.Nm sshd
Ben Lindstrom9fce9f02001-04-11 23:10:09 +000046.Op Fl deiqD46
Damien Miller32aa1441999-10-29 09:15:49 +100047.Op Fl b Ar bits
48.Op Fl f Ar config_file
49.Op Fl g Ar login_grace_time
50.Op Fl h Ar host_key_file
51.Op Fl k Ar key_gen_time
52.Op Fl p Ar port
Damien Miller942da032000-08-18 13:59:06 +100053.Op Fl u Ar len
Damien Miller95def091999-11-25 00:26:21 +110054.Op Fl V Ar client_protocol_id
Damien Miller22c77262000-04-13 12:26:34 +100055.Sh DESCRIPTION
Damien Miller32aa1441999-10-29 09:15:49 +100056.Nm
Ben Lindstromd58eb5f2001-03-07 06:07:22 +000057(SSH Daemon) is the daemon program for
Damien Miller32aa1441999-10-29 09:15:49 +100058.Xr ssh 1 .
Damien Miller35dabd02000-05-01 21:10:33 +100059Together these programs replace rlogin and rsh, and
Damien Miller32aa1441999-10-29 09:15:49 +100060provide secure encrypted communications between two untrusted hosts
Damien Miller450a7a12000-03-26 13:04:51 +100061over an insecure network.
62The programs are intended to be as easy to
Damien Miller32aa1441999-10-29 09:15:49 +100063install and use as possible.
64.Pp
65.Nm
Damien Miller450a7a12000-03-26 13:04:51 +100066is the daemon that listens for connections from clients.
Damien Miller22c77262000-04-13 12:26:34 +100067It is normally started at boot from
Damien Miller32aa1441999-10-29 09:15:49 +100068.Pa /etc/rc .
69It forks a new
Damien Miller450a7a12000-03-26 13:04:51 +100070daemon for each incoming connection.
71The forked daemons handle
Damien Miller32aa1441999-10-29 09:15:49 +100072key exchange, encryption, authentication, command execution,
73and data exchange.
Damien Millere247cc42000-05-07 12:03:14 +100074This implementation of
75.Nm
76supports both SSH protocol version 1 and 2 simultaneously.
Damien Miller32aa1441999-10-29 09:15:49 +100077.Nm
Damien Miller450a7a12000-03-26 13:04:51 +100078works as follows.
Damien Millere247cc42000-05-07 12:03:14 +100079.Pp
80.Ss SSH protocol version 1
81.Pp
Damien Miller450a7a12000-03-26 13:04:51 +100082Each host has a host-specific RSA key
83(normally 1024 bits) used to identify the host.
84Additionally, when
Damien Miller32aa1441999-10-29 09:15:49 +100085the daemon starts, it generates a server RSA key (normally 768 bits).
86This key is normally regenerated every hour if it has been used, and
87is never stored on disk.
88.Pp
Damien Miller35dabd02000-05-01 21:10:33 +100089Whenever a client connects the daemon responds with its public
90host and server keys.
Damien Miller450a7a12000-03-26 13:04:51 +100091The client compares the
Damien Millere247cc42000-05-07 12:03:14 +100092RSA host key against its own database to verify that it has not changed.
Damien Miller450a7a12000-03-26 13:04:51 +100093The client then generates a 256 bit random number.
94It encrypts this
Damien Miller32aa1441999-10-29 09:15:49 +100095random number using both the host key and the server key, and sends
Damien Miller450a7a12000-03-26 13:04:51 +100096the encrypted number to the server.
Damien Miller35dabd02000-05-01 21:10:33 +100097Both sides then use this
Damien Miller32aa1441999-10-29 09:15:49 +100098random number as a session key which is used to encrypt all further
Damien Miller450a7a12000-03-26 13:04:51 +100099communications in the session.
100The rest of the session is encrypted
Damien Miller35dabd02000-05-01 21:10:33 +1000101using a conventional cipher, currently Blowfish or 3DES, with 3DES
Damien Millerb38eff82000-04-01 11:09:21 +1000102being used by default.
Damien Miller450a7a12000-03-26 13:04:51 +1000103The client selects the encryption algorithm
Damien Miller32aa1441999-10-29 09:15:49 +1000104to use from those offered by the server.
105.Pp
Damien Miller450a7a12000-03-26 13:04:51 +1000106Next, the server and the client enter an authentication dialog.
107The client tries to authenticate itself using
Damien Miller32aa1441999-10-29 09:15:49 +1000108.Pa .rhosts
109authentication,
110.Pa .rhosts
111authentication combined with RSA host
112authentication, RSA challenge-response authentication, or password
113based authentication.
114.Pp
115Rhosts authentication is normally disabled
116because it is fundamentally insecure, but can be enabled in the server
Damien Miller450a7a12000-03-26 13:04:51 +1000117configuration file if desired.
118System security is not improved unless
Damien Miller32aa1441999-10-29 09:15:49 +1000119.Xr rshd 8 ,
120.Xr rlogind 8 ,
121.Xr rexecd 8 ,
122and
123.Xr rexd 8
124are disabled (thus completely disabling
125.Xr rlogin 1
126and
127.Xr rsh 1
Damien Miller35dabd02000-05-01 21:10:33 +1000128into the machine).
Damien Miller32aa1441999-10-29 09:15:49 +1000129.Pp
Damien Millere247cc42000-05-07 12:03:14 +1000130.Ss SSH protocol version 2
131.Pp
Damien Miller942da032000-08-18 13:59:06 +1000132Version 2 works similarly:
Damien Millere247cc42000-05-07 12:03:14 +1000133Each host has a host-specific DSA key used to identify the host.
134However, when the daemon starts, it does not generate a server key.
135Forward security is provided through a Diffie-Hellman key agreement.
136This key agreement results in a shared session key.
Ben Lindstromc65e6a02001-04-23 13:02:16 +0000137.Pp
Ben Lindstromfd2e05b2001-03-05 07:48:45 +0000138The rest of the session is encrypted using a symmetric cipher, currently
Ben Lindstromc65e6a02001-04-23 13:02:16 +0000139128 bit AES, Blowfish, 3DES, CAST128, Arcfour, 192 bit AES, or 256 bit AES.
Damien Millere247cc42000-05-07 12:03:14 +1000140The client selects the encryption algorithm
141to use from those offered by the server.
142Additionally, session integrity is provided
Damien Miller30c3d422000-05-09 11:02:59 +1000143through a cryptographic message authentication code
Damien Millere247cc42000-05-07 12:03:14 +1000144(hmac-sha1 or hmac-md5).
145.Pp
146Protocol version 2 provides a public key based
Ben Lindstromc65e6a02001-04-23 13:02:16 +0000147user (PubkeyAuthentication) or
148client host (HostbasedAuthentication) authentication method,
149conventional password authentication and challenge response based methods.
Damien Millere247cc42000-05-07 12:03:14 +1000150.Pp
151.Ss Command execution and data forwarding
152.Pp
Damien Miller32aa1441999-10-29 09:15:49 +1000153If the client successfully authenticates itself, a dialog for
Damien Miller450a7a12000-03-26 13:04:51 +1000154preparing the session is entered.
155At this time the client may request
Damien Miller32aa1441999-10-29 09:15:49 +1000156things like allocating a pseudo-tty, forwarding X11 connections,
157forwarding TCP/IP connections, or forwarding the authentication agent
158connection over the secure channel.
159.Pp
160Finally, the client either requests a shell or execution of a command.
Damien Miller450a7a12000-03-26 13:04:51 +1000161The sides then enter session mode.
162In this mode, either side may send
Damien Miller32aa1441999-10-29 09:15:49 +1000163data at any time, and such data is forwarded to/from the shell or
164command on the server side, and the user terminal in the client side.
165.Pp
166When the user program terminates and all forwarded X11 and other
167connections have been closed, the server sends command exit status to
168the client, and both sides exit.
169.Pp
170.Nm
171can be configured using command-line options or a configuration
Damien Miller450a7a12000-03-26 13:04:51 +1000172file.
173Command-line options override values specified in the
Damien Miller32aa1441999-10-29 09:15:49 +1000174configuration file.
175.Pp
Damien Miller6162d121999-11-21 13:23:52 +1100176.Nm
177rereads its configuration file when it receives a hangup signal,
Ben Lindstrom49a098d2001-03-05 06:55:18 +0000178.Dv SIGHUP ,
Ben Lindstromd2bf0d62001-06-25 04:10:54 +0000179by executing itself with the name it was started as, i.e.,
Ben Lindstrom49a098d2001-03-05 06:55:18 +0000180.Pa /usr/sbin/sshd .
Damien Miller6162d121999-11-21 13:23:52 +1100181.Pp
Damien Miller32aa1441999-10-29 09:15:49 +1000182The options are as follows:
183.Bl -tag -width Ds
184.It Fl b Ar bits
Ben Lindstromc65e6a02001-04-23 13:02:16 +0000185Specifies the number of bits in the ephemeral protocol version 1
186server key (default 768).
Damien Miller32aa1441999-10-29 09:15:49 +1000187.It Fl d
Damien Miller450a7a12000-03-26 13:04:51 +1000188Debug mode.
189The server sends verbose debug output to the system
190log, and does not put itself in the background.
191The server also will not fork and will only process one connection.
192This option is only intended for debugging for the server.
Ben Lindstromc65e6a02001-04-23 13:02:16 +0000193Multiple -d options increase the debugging level.
Damien Miller874d77b2000-10-14 16:23:11 +1100194Maximum is 3.
Ben Lindstromc65e6a02001-04-23 13:02:16 +0000195.It Fl e
196When this option is specified,
197.Nm
198will send the output to the standard error instead of the system log.
Damien Miller32aa1441999-10-29 09:15:49 +1000199.It Fl f Ar configuration_file
Damien Miller450a7a12000-03-26 13:04:51 +1000200Specifies the name of the configuration file.
201The default is
Damien Miller886c63a2000-01-20 23:13:36 +1100202.Pa /etc/sshd_config .
Damien Miller32aa1441999-10-29 09:15:49 +1000203.Nm
204refuses to start if there is no configuration file.
205.It Fl g Ar login_grace_time
206Gives the grace time for clients to authenticate themselves (default
Kevin Steves9ce907c2001-01-07 11:53:40 +0000207600 seconds).
Damien Miller450a7a12000-03-26 13:04:51 +1000208If the client fails to authenticate the user within
209this many seconds, the server disconnects and exits.
210A value of zero indicates no limit.
Damien Miller32aa1441999-10-29 09:15:49 +1000211.It Fl h Ar host_key_file
Ben Lindstrom4dccfa52000-12-28 16:40:05 +0000212Specifies the file from which the host key is read (default
Damien Miller886c63a2000-01-20 23:13:36 +1100213.Pa /etc/ssh_host_key ) .
Damien Miller32aa1441999-10-29 09:15:49 +1000214This option must be given if
215.Nm
216is not run as root (as the normal
217host file is normally not readable by anyone but root).
Ben Lindstrom4dccfa52000-12-28 16:40:05 +0000218It is possible to have multiple host key files for
Ben Lindstromc65e6a02001-04-23 13:02:16 +0000219the different protocol versions and host key algorithms.
Damien Miller32aa1441999-10-29 09:15:49 +1000220.It Fl i
221Specifies that
222.Nm
Damien Miller22c77262000-04-13 12:26:34 +1000223is being run from inetd.
Damien Miller32aa1441999-10-29 09:15:49 +1000224.Nm
225is normally not run
226from inetd because it needs to generate the server key before it can
Damien Miller450a7a12000-03-26 13:04:51 +1000227respond to the client, and this may take tens of seconds.
228Clients would have to wait too long if the key was regenerated every time.
Damien Miller7684ee12000-03-17 23:40:15 +1100229However, with small key sizes (e.g., 512) using
Damien Miller32aa1441999-10-29 09:15:49 +1000230.Nm
231from inetd may
232be feasible.
233.It Fl k Ar key_gen_time
Ben Lindstromc65e6a02001-04-23 13:02:16 +0000234Specifies how often the ephemeral protocol version 1 server key is
235regenerated (default 3600 seconds, or one hour).
Damien Miller450a7a12000-03-26 13:04:51 +1000236The motivation for regenerating the key fairly
Damien Miller32aa1441999-10-29 09:15:49 +1000237often is that the key is not stored anywhere, and after about an hour,
238it becomes impossible to recover the key for decrypting intercepted
239communications even if the machine is cracked into or physically
Damien Miller450a7a12000-03-26 13:04:51 +1000240seized.
241A value of zero indicates that the key will never be regenerated.
Damien Miller32aa1441999-10-29 09:15:49 +1000242.It Fl p Ar port
243Specifies the port on which the server listens for connections
244(default 22).
245.It Fl q
Damien Miller450a7a12000-03-26 13:04:51 +1000246Quiet mode.
247Nothing is sent to the system log.
248Normally the beginning,
Damien Miller32aa1441999-10-29 09:15:49 +1000249authentication, and termination of each connection is logged.
Damien Miller942da032000-08-18 13:59:06 +1000250.It Fl u Ar len
251This option is used to specify the size of the field
252in the
253.Li utmp
254structure that holds the remote host name.
255If the resolved host name is longer than
256.Ar len ,
257the dotted decimal value will be used instead.
258This allows hosts with very long host names that
259overflow this field to still be uniquely identified.
260Specifying
261.Fl u0
262indicates that only dotted decimal addresses
263should be put into the
264.Pa utmp
265file.
Ben Lindstrom4dccfa52000-12-28 16:40:05 +0000266.It Fl D
267When this option is specified
268.Nm
269will not detach and does not become a daemon.
270This allows easy monitoring of
271.Nm sshd .
Damien Miller34132e52000-01-14 15:45:46 +1100272.It Fl 4
273Forces
274.Nm
275to use IPv4 addresses only.
276.It Fl 6
277Forces
278.Nm
279to use IPv6 addresses only.
Damien Miller32aa1441999-10-29 09:15:49 +1000280.El
281.Sh CONFIGURATION FILE
282.Nm
Damien Miller22c77262000-04-13 12:26:34 +1000283reads configuration data from
Damien Miller886c63a2000-01-20 23:13:36 +1100284.Pa /etc/sshd_config
Damien Miller32aa1441999-10-29 09:15:49 +1000285(or the file specified with
286.Fl f
Damien Miller450a7a12000-03-26 13:04:51 +1000287on the command line).
288The file contains keyword-value pairs, one per line.
289Lines starting with
Damien Miller32aa1441999-10-29 09:15:49 +1000290.Ql #
291and empty lines are interpreted as comments.
292.Pp
293The following keywords are possible.
294.Bl -tag -width Ds
295.It Cm AFSTokenPassing
Damien Miller450a7a12000-03-26 13:04:51 +1000296Specifies whether an AFS token may be forwarded to the server.
297Default is
Damien Miller32aa1441999-10-29 09:15:49 +1000298.Dq yes .
299.It Cm AllowGroups
Ben Lindstroma1ebd892001-02-10 22:19:23 +0000300This keyword can be followed by a list of group names, separated
Damien Miller450a7a12000-03-26 13:04:51 +1000301by spaces.
302If specified, login is allowed only for users whose primary
Kevin Steves7b61cfa2001-01-14 19:11:00 +0000303group or supplementary group list matches one of the patterns.
Damien Miller32aa1441999-10-29 09:15:49 +1000304.Ql \&*
305and
306.Ql ?
307can be used as
Damien Miller450a7a12000-03-26 13:04:51 +1000308wildcards in the patterns.
Damien Miller942da032000-08-18 13:59:06 +1000309Only group names are valid; a numerical group ID isn't recognized.
Kevin Steves7b61cfa2001-01-14 19:11:00 +0000310By default login is allowed regardless of the group list.
Damien Miller32aa1441999-10-29 09:15:49 +1000311.Pp
Damien Miller50a41ed2000-10-16 12:14:42 +1100312.It Cm AllowTcpForwarding
313Specifies whether TCP forwarding is permitted.
314The default is
315.Dq yes .
316Note that disabling TCP forwarding does not improve security unless
317users are also denied shell access, as they can always install their
318own forwarders.
319.Pp
Damien Miller32aa1441999-10-29 09:15:49 +1000320.It Cm AllowUsers
Ben Lindstroma1ebd892001-02-10 22:19:23 +0000321This keyword can be followed by a list of user names, separated
Damien Miller450a7a12000-03-26 13:04:51 +1000322by spaces.
323If specified, login is allowed only for users names that
Damien Miller32aa1441999-10-29 09:15:49 +1000324match one of the patterns.
325.Ql \&*
326and
327.Ql ?
328can be used as
Damien Miller450a7a12000-03-26 13:04:51 +1000329wildcards in the patterns.
Damien Miller942da032000-08-18 13:59:06 +1000330Only user names are valid; a numerical user ID isn't recognized.
Damien Miller450a7a12000-03-26 13:04:51 +1000331By default login is allowed regardless of the user name.
Damien Miller32aa1441999-10-29 09:15:49 +1000332.Pp
Ben Lindstrombfb3a0e2001-06-05 20:25:05 +0000333.It Cm AuthorizedKeysFile
334Specifies the file that contains the public RSA keys that can be used
335for RSA authentication in protocol version 1.
336.Cm AuthorizedKeysFile
337may contain tokens of the form %T which are substituted during connection
338set-up. The following tokens are defined; %% is replaces by a literal '%',
339%h is replaced by the home directory of the user being authenticated and
340%u is replaced by the username of that user.
341After expansion,
342.Cm AuthorizedKeysFile
Ben Lindstrom34a99682001-06-12 00:23:12 +0000343is taken to be an absolute path or one relative to the user's home
Ben Lindstrombfb3a0e2001-06-05 20:25:05 +0000344directory.
345The default is
346.Dq .ssh/authorized_keys
Ben Lindstrom48bd7c12001-01-09 00:35:42 +0000347.It Cm Banner
348In some jurisdictions, sending a warning message before authentication
349may be relevant for getting legal protection.
350The contents of the specified file are sent to the remote user before
351authentication is allowed.
352This option is only available for protocol version 2.
353.Pp
Ben Lindstromff8b4942001-03-06 01:00:03 +0000354.It Cm ChallengeResponseAuthentication
355Specifies whether
356challenge response
357authentication is allowed.
358Currently there is only support for
359.Xr skey 1
360authentication.
361The default is
362.Dq yes .
Damien Miller32aa1441999-10-29 09:15:49 +1000363.It Cm CheckMail
364Specifies whether
365.Nm
366should check for new mail for interactive logins.
367The default is
368.Dq no .
Ben Lindstrom608d1d12001-06-05 19:33:22 +0000369.It Cm Ciphers
370Specifies the ciphers allowed for protocol version 2.
371Multiple ciphers must be comma-separated.
372The default is
373.Dq aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour.
Ben Lindstrom5744dc42001-04-13 23:28:01 +0000374.It Cm ClientAliveInterval
375Sets a timeout interval in seconds after which if no data has been received
Ben Lindstrom24643222001-06-25 05:08:11 +0000376from the client,
Ben Lindstrom5744dc42001-04-13 23:28:01 +0000377.Nm
378will send a message through the encrypted
Ben Lindstroma8f39722001-04-16 02:03:49 +0000379channel to request a response from the client.
380The default
Ben Lindstrom5744dc42001-04-13 23:28:01 +0000381is 0, indicating that these messages will not be sent to the client.
Ben Lindstroma8f39722001-04-16 02:03:49 +0000382This option applies to protocol version 2 only.
Ben Lindstrom5744dc42001-04-13 23:28:01 +0000383.It Cm ClientAliveCountMax
384Sets the number of client alive messages (see above) which may be
385sent without
386.Nm
387receiving any messages back from the client. If this threshold is
Ben Lindstrom24643222001-06-25 05:08:11 +0000388reached while client alive messages are being sent,
Ben Lindstrom5744dc42001-04-13 23:28:01 +0000389.Nm
390will disconnect the client, terminating the session. It is important
Ben Lindstrom24643222001-06-25 05:08:11 +0000391to note that the use of client alive messages is very different from
Ben Lindstroma8f39722001-04-16 02:03:49 +0000392.Cm Keepalive
393(below). The client alive messages are sent through the
Ben Lindstrom5744dc42001-04-13 23:28:01 +0000394encrypted channel and therefore will not be spoofable. The TCP keepalive
Ben Lindstroma8f39722001-04-16 02:03:49 +0000395option enabled by
396.Cm Keepalive
397is spoofable. You want to use the client
Ben Lindstrom5744dc42001-04-13 23:28:01 +0000398alive mechanism when you are basing something important on
399clients having an active connection to the server.
Ben Lindstroma8f39722001-04-16 02:03:49 +0000400.Pp
401The default value is 3. If you set
402.Cm ClientAliveInterval
Ben Lindstrom5744dc42001-04-13 23:28:01 +0000403(above) to 15, and leave this value at the default, unresponsive ssh clients
Ben Lindstrom24643222001-06-25 05:08:11 +0000404will be disconnected after approximately 45 seconds.
Damien Miller32aa1441999-10-29 09:15:49 +1000405.It Cm DenyGroups
406This keyword can be followed by a number of group names, separated
Damien Miller450a7a12000-03-26 13:04:51 +1000407by spaces.
Kevin Steves7b61cfa2001-01-14 19:11:00 +0000408Users whose primary group or supplementary group list matches
409one of the patterns aren't allowed to log in.
Damien Miller32aa1441999-10-29 09:15:49 +1000410.Ql \&*
411and
412.Ql ?
413can be used as
Damien Miller450a7a12000-03-26 13:04:51 +1000414wildcards in the patterns.
Damien Miller942da032000-08-18 13:59:06 +1000415Only group names are valid; a numerical group ID isn't recognized.
Kevin Steves7b61cfa2001-01-14 19:11:00 +0000416By default login is allowed regardless of the group list.
Damien Miller32aa1441999-10-29 09:15:49 +1000417.Pp
418.It Cm DenyUsers
419This keyword can be followed by a number of user names, separated
Damien Miller450a7a12000-03-26 13:04:51 +1000420by spaces.
421Login is disallowed for user names that match one of the patterns.
Damien Miller32aa1441999-10-29 09:15:49 +1000422.Ql \&*
423and
424.Ql ?
Damien Miller450a7a12000-03-26 13:04:51 +1000425can be used as wildcards in the patterns.
Damien Miller942da032000-08-18 13:59:06 +1000426Only user names are valid; a numerical user ID isn't recognized.
Damien Miller450a7a12000-03-26 13:04:51 +1000427By default login is allowed regardless of the user name.
Damien Millere247cc42000-05-07 12:03:14 +1000428.It Cm GatewayPorts
429Specifies whether remote hosts are allowed to connect to ports
430forwarded for the client.
431The argument must be
432.Dq yes
433or
434.Dq no .
435The default is
436.Dq no .
Ben Lindstromc65e6a02001-04-23 13:02:16 +0000437.It Cm HostbasedAuthentication
438Specifies whether rhosts or /etc/hosts.equiv authentication together
439with successful public key client host authentication is allowed
440(hostbased authentication).
441This option is similar to
442.Cm RhostsRSAAuthentication
443and applies to protocol version 2 only.
444The default is
445.Dq no .
Damien Millere247cc42000-05-07 12:03:14 +1000446.It Cm HostKey
Damien Miller0bc1bd82000-11-13 22:57:25 +1100447Specifies the file containing the private host keys (default
Damien Millere247cc42000-05-07 12:03:14 +1000448.Pa /etc/ssh_host_key )
Damien Miller0bc1bd82000-11-13 22:57:25 +1100449used by SSH protocol versions 1 and 2.
Damien Millere247cc42000-05-07 12:03:14 +1000450Note that
451.Nm
Ben Lindstrom226cfa02001-01-22 05:34:40 +0000452will refuse to use a file if it is group/world-accessible.
Damien Miller0bc1bd82000-11-13 22:57:25 +1100453It is possible to have multiple host key files.
454.Dq rsa1
455keys are used for version 1 and
456.Dq dsa
457or
458.Dq rsa
459are used for version 2 of the SSH protocol.
Damien Miller32aa1441999-10-29 09:15:49 +1000460.It Cm IgnoreRhosts
Damien Miller98c7ad62000-03-09 21:27:49 +1100461Specifies that
462.Pa .rhosts
Damien Miller22c77262000-04-13 12:26:34 +1000463and
Damien Miller98c7ad62000-03-09 21:27:49 +1100464.Pa .shosts
Ben Lindstromc65e6a02001-04-23 13:02:16 +0000465files will not be used in
466.Cm RhostsAuthentication ,
467.Cm RhostsRSAAuthentication
468or
469.Cm HostbasedAuthentication .
470.Pp
Damien Miller32aa1441999-10-29 09:15:49 +1000471.Pa /etc/hosts.equiv
472and
Damien Miller22c77262000-04-13 12:26:34 +1000473.Pa /etc/shosts.equiv
Damien Miller450a7a12000-03-26 13:04:51 +1000474are still used.
Damien Miller22c77262000-04-13 12:26:34 +1000475The default is
Damien Miller98c7ad62000-03-09 21:27:49 +1100476.Dq yes .
Damien Miller32265091999-11-12 11:33:04 +1100477.It Cm IgnoreUserKnownHosts
478Specifies whether
479.Nm
480should ignore the user's
481.Pa $HOME/.ssh/known_hosts
482during
Ben Lindstromc65e6a02001-04-23 13:02:16 +0000483.Cm RhostsRSAAuthentication
484or
485.Cm HostbasedAuthentication .
Damien Miller32265091999-11-12 11:33:04 +1100486The default is
487.Dq no .
Damien Miller32aa1441999-10-29 09:15:49 +1000488.It Cm KeepAlive
489Specifies whether the system should send keepalive messages to the
Damien Miller450a7a12000-03-26 13:04:51 +1000490other side.
491If they are sent, death of the connection or crash of one
492of the machines will be properly noticed.
493However, this means that
Damien Miller32aa1441999-10-29 09:15:49 +1000494connections will die if the route is down temporarily, and some people
Damien Miller450a7a12000-03-26 13:04:51 +1000495find it annoying.
Damien Miller30c3d422000-05-09 11:02:59 +1000496On the other hand, if keepalives are not sent,
Damien Miller32aa1441999-10-29 09:15:49 +1000497sessions may hang indefinitely on the server, leaving
498.Dq ghost
499users and consuming server resources.
500.Pp
501The default is
502.Dq yes
503(to send keepalives), and the server will notice
Damien Miller450a7a12000-03-26 13:04:51 +1000504if the network goes down or the client host reboots.
505This avoids infinitely hanging sessions.
Damien Miller32aa1441999-10-29 09:15:49 +1000506.Pp
507To disable keepalives, the value should be set to
508.Dq no
509in both the server and the client configuration files.
510.It Cm KerberosAuthentication
Damien Miller450a7a12000-03-26 13:04:51 +1000511Specifies whether Kerberos authentication is allowed.
512This can be in the form of a Kerberos ticket, or if
Damien Miller32aa1441999-10-29 09:15:49 +1000513.Cm PasswordAuthentication
514is yes, the password provided by the user will be validated through
Damien Miller874d77b2000-10-14 16:23:11 +1100515the Kerberos KDC.
516To use this option, the server needs a
Damien Miller942da032000-08-18 13:59:06 +1000517Kerberos servtab which allows the verification of the KDC's identity.
Damien Miller450a7a12000-03-26 13:04:51 +1000518Default is
Damien Miller32aa1441999-10-29 09:15:49 +1000519.Dq yes .
520.It Cm KerberosOrLocalPasswd
521If set then if password authentication through Kerberos fails then
522the password will be validated via any additional local mechanism
523such as
Damien Miller62cee002000-09-23 17:15:56 +1100524.Pa /etc/passwd .
Damien Miller450a7a12000-03-26 13:04:51 +1000525Default is
Damien Miller32aa1441999-10-29 09:15:49 +1000526.Dq yes .
527.It Cm KerberosTgtPassing
528Specifies whether a Kerberos TGT may be forwarded to the server.
Damien Miller22c77262000-04-13 12:26:34 +1000529Default is
Damien Miller32aa1441999-10-29 09:15:49 +1000530.Dq no ,
531as this only works when the Kerberos KDC is actually an AFS kaserver.
532.It Cm KerberosTicketCleanup
533Specifies whether to automatically destroy the user's ticket cache
Damien Miller450a7a12000-03-26 13:04:51 +1000534file on logout.
535Default is
Damien Miller32aa1441999-10-29 09:15:49 +1000536.Dq yes .
537.It Cm KeyRegenerationInterval
Ben Lindstromc65e6a02001-04-23 13:02:16 +0000538In protocol version 1, the ephemeral server key is automatically regenerated
539after this many seconds (if it has been used).
Damien Miller450a7a12000-03-26 13:04:51 +1000540The purpose of regeneration is to prevent
Damien Miller32aa1441999-10-29 09:15:49 +1000541decrypting captured sessions by later breaking into the machine and
Damien Miller450a7a12000-03-26 13:04:51 +1000542stealing the keys.
543The key is never stored anywhere.
544If the value is 0, the key is never regenerated.
545The default is 3600 (seconds).
Damien Miller32aa1441999-10-29 09:15:49 +1000546.It Cm ListenAddress
Ben Lindstrom49e57a82001-04-08 18:02:43 +0000547Specifies the local addresses
Ben Lindstromc65e6a02001-04-23 13:02:16 +0000548.Nm
Damien Miller32aa1441999-10-29 09:15:49 +1000549should listen on.
Ben Lindstrom49e57a82001-04-08 18:02:43 +0000550The following forms may be used:
551.Pp
552.Bl -item -offset indent -compact
553.It
554.Cm ListenAddress
Ben Lindstrom1a598a42001-04-10 02:48:50 +0000555.Sm off
556.Ar host No | Ar IPv4_addr No | Ar IPv6_addr
557.Sm on
Ben Lindstrom49e57a82001-04-08 18:02:43 +0000558.It
559.Cm ListenAddress
Ben Lindstrom1a598a42001-04-10 02:48:50 +0000560.Sm off
561.Ar host No | Ar IPv4_addr No : Ar port
562.Sm on
Ben Lindstrom49e57a82001-04-08 18:02:43 +0000563.It
564.Cm ListenAddress
Ben Lindstrom1a598a42001-04-10 02:48:50 +0000565.Sm off
566.Oo
567.Ar host No | Ar IPv6_addr Oc : Ar port
568.Sm on
Ben Lindstrom49e57a82001-04-08 18:02:43 +0000569.El
570.Pp
571If
Ben Lindstrom1a598a42001-04-10 02:48:50 +0000572.Ar port
Ben Lindstrom49e57a82001-04-08 18:02:43 +0000573is not specified,
Ben Lindstromc65e6a02001-04-23 13:02:16 +0000574.Nm
Ben Lindstrom49e57a82001-04-08 18:02:43 +0000575will listen on the address and all prior
576.Cm Port
577options specified. The default is to listen on all local
578addresses. Multiple
579.Cm ListenAddress
580options are permitted. Additionally, any
581.Cm Port
582options must precede this option for non port qualified addresses.
Damien Miller32aa1441999-10-29 09:15:49 +1000583.It Cm LoginGraceTime
584The server disconnects after this time if the user has not
Damien Miller450a7a12000-03-26 13:04:51 +1000585successfully logged in.
586If the value is 0, there is no time limit.
Damien Miller32aa1441999-10-29 09:15:49 +1000587The default is 600 (seconds).
Damien Miller5ce662a1999-11-11 17:57:39 +1100588.It Cm LogLevel
589Gives the verbosity level that is used when logging messages from
590.Nm sshd .
591The possible values are:
Ben Lindstromdb65e8f2001-01-19 04:26:52 +0000592QUIET, FATAL, ERROR, INFO, VERBOSE and DEBUG.
593The default is INFO.
Damien Miller5ce662a1999-11-11 17:57:39 +1100594Logging with level DEBUG violates the privacy of users
595and is not recommended.
Ben Lindstrom06b33aa2001-02-15 03:01:59 +0000596.It Cm MACs
597Specifies the available MAC (message authentication code) algorithms.
598The MAC algorithm is used in protocol version 2
599for data integrity protection.
600Multiple algorithms must be comma-separated.
601The default is
Ben Lindstrombd0e2de2001-06-05 19:52:52 +0000602.Dq hmac-md5,hmac-sha1,hmac-ripemd160,hmac-sha1-96,hmac-md5-96 .
Damien Miller37023962000-07-11 17:31:38 +1000603.It Cm MaxStartups
604Specifies the maximum number of concurrent unauthenticated connections to the
605.Nm
606daemon.
607Additional connections will be dropped until authentication succeeds or the
608.Cm LoginGraceTime
609expires for a connection.
610The default is 10.
Damien Miller942da032000-08-18 13:59:06 +1000611.Pp
612Alternatively, random early drop can be enabled by specifying
613the three colon separated values
614.Dq start:rate:full
Damien Miller874d77b2000-10-14 16:23:11 +1100615(e.g., "10:30:60").
Damien Miller942da032000-08-18 13:59:06 +1000616.Nm
Ben Lindstroma7333502001-01-29 08:44:03 +0000617will refuse connection attempts with a probability of
Damien Miller942da032000-08-18 13:59:06 +1000618.Dq rate/100
619(30%)
620if there are currently
621.Dq start
622(10)
623unauthenticated connections.
Ben Lindstroma7333502001-01-29 08:44:03 +0000624The probability increases linearly and all connection attempts
Damien Miller942da032000-08-18 13:59:06 +1000625are refused if the number of unauthenticated connections reaches
626.Dq full
627(60).
Damien Millerf8154422001-04-25 22:44:14 +1000628.It Cm PAMAuthenticationViaKbdInt
629Specifies whether PAM challenge response authentication is allowed. This
630allows the use of most PAM challenge response authentication modules, but
631it will allow password authentication regardless of whether
632.Cm PasswordAuthentication
633is disabled.
634The default is
635.Dq no .
Damien Miller32aa1441999-10-29 09:15:49 +1000636.It Cm PasswordAuthentication
637Specifies whether password authentication is allowed.
638The default is
639.Dq yes .
640.It Cm PermitEmptyPasswords
641When password authentication is allowed, it specifies whether the
Damien Miller450a7a12000-03-26 13:04:51 +1000642server allows login to accounts with empty password strings.
643The default is
Damien Miller98c7ad62000-03-09 21:27:49 +1100644.Dq no .
Damien Miller32aa1441999-10-29 09:15:49 +1000645.It Cm PermitRootLogin
Ben Lindstrom323c98f2001-03-05 07:40:40 +0000646Specifies whether root can login using
Damien Miller32aa1441999-10-29 09:15:49 +1000647.Xr ssh 1 .
648The argument must be
649.Dq yes ,
Ben Lindstromd8a90212001-02-15 03:08:27 +0000650.Dq without-password ,
651.Dq forced-commands-only
Damien Miller32aa1441999-10-29 09:15:49 +1000652or
653.Dq no .
654The default is
655.Dq yes .
Damien Miller32aa1441999-10-29 09:15:49 +1000656.Pp
Ben Lindstromd8a90212001-02-15 03:08:27 +0000657If this option is set to
658.Dq without-password
659password authentication is disabled for root.
660.Pp
661If this option is set to
662.Dq forced-commands-only
663root login with public key authentication will be allowed,
664but only if the
Damien Miller32aa1441999-10-29 09:15:49 +1000665.Ar command
Ben Lindstromd8a90212001-02-15 03:08:27 +0000666option has been specified
Damien Miller32aa1441999-10-29 09:15:49 +1000667(which may be useful for taking remote backups even if root login is
Ben Lindstromd8a90212001-02-15 03:08:27 +0000668normally not allowed). All other authentication methods are disabled
669for root.
Ben Lindstrom323c98f2001-03-05 07:40:40 +0000670.Pp
671If this option is set to
672.Dq no
673root is not allowed to login.
Damien Miller6f83b8e2000-05-02 09:23:45 +1000674.It Cm PidFile
675Specifies the file that contains the process identifier of the
676.Nm
677daemon.
678The default is
679.Pa /var/run/sshd.pid .
Damien Miller32aa1441999-10-29 09:15:49 +1000680.It Cm Port
681Specifies the port number that
682.Nm
Damien Miller450a7a12000-03-26 13:04:51 +1000683listens on.
684The default is 22.
Damien Miller34132e52000-01-14 15:45:46 +1100685Multiple options of this type are permitted.
Ben Lindstromc65e6a02001-04-23 13:02:16 +0000686See also
687.Cm ListenAddress .
Ben Lindstrom7bfff362001-03-26 05:45:53 +0000688.It Cm PrintLastLog
689Specifies whether
690.Nm
691should print the date and time when the user last logged in.
692The default is
693.Dq yes .
Damien Miller32aa1441999-10-29 09:15:49 +1000694.It Cm PrintMotd
695Specifies whether
696.Nm
Damien Miller22c77262000-04-13 12:26:34 +1000697should print
Damien Miller32aa1441999-10-29 09:15:49 +1000698.Pa /etc/motd
Damien Miller450a7a12000-03-26 13:04:51 +1000699when a user logs in interactively.
700(On some systems it is also printed by the shell,
Damien Miller32aa1441999-10-29 09:15:49 +1000701.Pa /etc/profile ,
Damien Miller450a7a12000-03-26 13:04:51 +1000702or equivalent.)
703The default is
Damien Miller32aa1441999-10-29 09:15:49 +1000704.Dq yes .
Damien Miller22c77262000-04-13 12:26:34 +1000705.It Cm Protocol
706Specifies the protocol versions
707.Nm
708should support.
709The possible values are
710.Dq 1
711and
712.Dq 2 .
713Multiple versions must be comma-separated.
714The default is
Ben Lindstrombdc2beb2001-04-16 02:11:52 +0000715.Dq 2,1 .
Ben Lindstromff8b4942001-03-06 01:00:03 +0000716.It Cm PubkeyAuthentication
717Specifies whether public key authentication is allowed.
718The default is
719.Dq yes .
720Note that this option applies to protocol version 2 only.
Damien Miller33804262001-02-04 23:20:18 +1100721.It Cm ReverseMappingCheck
722Specifies whether
723.Nm
724should try to verify the remote host name and check that
725the resolved host name for the remote IP address maps back to the
726very same IP address.
727The default is
728.Dq no .
Damien Miller32aa1441999-10-29 09:15:49 +1000729.It Cm RhostsAuthentication
730Specifies whether authentication using rhosts or /etc/hosts.equiv
Damien Miller450a7a12000-03-26 13:04:51 +1000731files is sufficient.
732Normally, this method should not be permitted because it is insecure.
Damien Miller32aa1441999-10-29 09:15:49 +1000733.Cm RhostsRSAAuthentication
734should be used
735instead, because it performs RSA-based host authentication in addition
736to normal rhosts or /etc/hosts.equiv authentication.
737The default is
738.Dq no .
Ben Lindstromc65e6a02001-04-23 13:02:16 +0000739This option applies to protocol version 1 only.
Damien Miller32aa1441999-10-29 09:15:49 +1000740.It Cm RhostsRSAAuthentication
741Specifies whether rhosts or /etc/hosts.equiv authentication together
Damien Miller450a7a12000-03-26 13:04:51 +1000742with successful RSA host authentication is allowed.
743The default is
Damien Miller98c7ad62000-03-09 21:27:49 +1100744.Dq no .
Ben Lindstromc65e6a02001-04-23 13:02:16 +0000745This option applies to protocol version 1 only.
Damien Miller32aa1441999-10-29 09:15:49 +1000746.It Cm RSAAuthentication
Damien Miller450a7a12000-03-26 13:04:51 +1000747Specifies whether pure RSA authentication is allowed.
748The default is
Damien Miller32aa1441999-10-29 09:15:49 +1000749.Dq yes .
Ben Lindstromc65e6a02001-04-23 13:02:16 +0000750This option applies to protocol version 1 only.
Damien Miller32aa1441999-10-29 09:15:49 +1000751.It Cm ServerKeyBits
Ben Lindstromc65e6a02001-04-23 13:02:16 +0000752Defines the number of bits in the ephemeral protocol version 1 server key.
Damien Miller450a7a12000-03-26 13:04:51 +1000753The minimum value is 512, and the default is 768.
Damien Miller32aa1441999-10-29 09:15:49 +1000754.It Cm StrictModes
755Specifies whether
756.Nm
757should check file modes and ownership of the
Damien Miller450a7a12000-03-26 13:04:51 +1000758user's files and home directory before accepting login.
759This is normally desirable because novices sometimes accidentally leave their
760directory or files world-writable.
761The default is
Damien Miller32aa1441999-10-29 09:15:49 +1000762.Dq yes .
Damien Millerf6d9e222000-06-18 14:50:44 +1000763.It Cm Subsystem
Damien Miller874d77b2000-10-14 16:23:11 +1100764Configures an external subsystem (e.g., file transfer daemon).
765Arguments should be a subsystem name and a command to execute upon subsystem
766request.
Damien Miller7b28dc52000-09-05 13:34:53 +1100767The command
768.Xr sftp-server 8
769implements the
770.Dq sftp
771file transfer subsystem.
Damien Millerf6d9e222000-06-18 14:50:44 +1000772By default no subsystems are defined.
773Note that this option applies to protocol version 2 only.
Damien Miller32aa1441999-10-29 09:15:49 +1000774.It Cm SyslogFacility
775Gives the facility code that is used when logging messages from
776.Nm sshd .
777The possible values are: DAEMON, USER, AUTH, LOCAL0, LOCAL1, LOCAL2,
Damien Miller450a7a12000-03-26 13:04:51 +1000778LOCAL3, LOCAL4, LOCAL5, LOCAL6, LOCAL7.
779The default is AUTH.
Damien Miller32aa1441999-10-29 09:15:49 +1000780.It Cm UseLogin
781Specifies whether
782.Xr login 1
Damien Millerd3a18572000-06-07 19:55:44 +1000783is used for interactive login sessions.
Ben Lindstrom699776e2001-06-21 03:14:49 +0000784The default is
785.Dq no .
Damien Millerd3a18572000-06-07 19:55:44 +1000786Note that
787.Xr login 1
Damien Miller942da032000-08-18 13:59:06 +1000788is never used for remote command execution.
Ben Lindstrom24643222001-06-25 05:08:11 +0000789Note also, that if this is enabled,
790.Cm X11Forwarding
Ben Lindstrom699776e2001-06-21 03:14:49 +0000791will be disabled because
792.Xr login 1
793does not know how to handle
Ben Lindstrom24643222001-06-25 05:08:11 +0000794.Xr xauth 1
Ben Lindstrom699776e2001-06-21 03:14:49 +0000795cookies.
Damien Miller32aa1441999-10-29 09:15:49 +1000796.It Cm X11DisplayOffset
797Specifies the first display number available for
798.Nm sshd Ns 's
Damien Miller450a7a12000-03-26 13:04:51 +1000799X11 forwarding.
800This prevents
Damien Miller32aa1441999-10-29 09:15:49 +1000801.Nm
802from interfering with real X11 servers.
Damien Miller98c7ad62000-03-09 21:27:49 +1100803The default is 10.
Damien Miller396691a2000-01-20 22:44:08 +1100804.It Cm X11Forwarding
Damien Miller450a7a12000-03-26 13:04:51 +1000805Specifies whether X11 forwarding is permitted.
806The default is
Damien Miller98c7ad62000-03-09 21:27:49 +1100807.Dq no .
Damien Miller396691a2000-01-20 22:44:08 +1100808Note that disabling X11 forwarding does not improve security in any
809way, as users can always install their own forwarders.
Ben Lindstrom24643222001-06-25 05:08:11 +0000810X11 forwarding is automatically disabled if
811.Cm UseLogin
812is enabled.
Damien Millerd3a18572000-06-07 19:55:44 +1000813.It Cm XAuthLocation
814Specifies the location of the
815.Xr xauth 1
816program.
817The default is
818.Pa /usr/X11R6/bin/xauth .
Damien Miller32aa1441999-10-29 09:15:49 +1000819.El
Ben Lindstrom1bda4c82001-06-05 19:59:08 +0000820.Ss Time Formats
821.Pp
822.Nm
823command-line arguments and configuration file options that specify time
824may be expressed using a sequence of the form:
825.Sm off
826.Ar time Oo Ar qualifier Oc ,
827.Sm on
828where
829.Ar time
830is a positive integer value and
831.Ar qualifier
832is one of the following:
833.Pp
834.Bl -tag -width Ds -compact -offset indent
835.It Cm <none>
836seconds
837.It Cm s | Cm S
838seconds
839.It Cm m | Cm M
840minutes
841.It Cm h | Cm H
842hours
843.It Cm d | Cm D
844days
845.It Cm w | Cm W
846weeks
847.El
848.Pp
849Each member of the sequence is added together to calculate
850the total time value.
851.Pp
852Time format examples:
853.Pp
854.Bl -tag -width Ds -compact -offset indent
855.It 600
856600 seconds (10 minutes)
857.It 10m
85810 minutes
859.It 1h30m
8601 hour 30 minutes (90 minutes)
861.El
Damien Miller32aa1441999-10-29 09:15:49 +1000862.Sh LOGIN PROCESS
863When a user successfully logs in,
864.Nm
865does the following:
866.Bl -enum -offset indent
867.It
868If the login is on a tty, and no command has been specified,
Damien Miller22c77262000-04-13 12:26:34 +1000869prints last login time and
Damien Miller32aa1441999-10-29 09:15:49 +1000870.Pa /etc/motd
871(unless prevented in the configuration file or by
872.Pa $HOME/.hushlogin ;
873see the
Damien Miller22c77262000-04-13 12:26:34 +1000874.Sx FILES
Damien Miller32aa1441999-10-29 09:15:49 +1000875section).
876.It
877If the login is on a tty, records login time.
878.It
879Checks
880.Pa /etc/nologin ;
881if it exists, prints contents and quits
882(unless root).
883.It
884Changes to run with normal user privileges.
885.It
886Sets up basic environment.
887.It
888Reads
889.Pa $HOME/.ssh/environment
890if it exists.
891.It
892Changes to user's home directory.
893.It
894If
895.Pa $HOME/.ssh/rc
896exists, runs it; else if
Damien Miller886c63a2000-01-20 23:13:36 +1100897.Pa /etc/sshrc
Damien Miller32aa1441999-10-29 09:15:49 +1000898exists, runs
Damien Miller450a7a12000-03-26 13:04:51 +1000899it; otherwise runs xauth.
900The
Damien Miller32aa1441999-10-29 09:15:49 +1000901.Dq rc
902files are given the X11
903authentication protocol and cookie in standard input.
904.It
905Runs user's shell or command.
906.El
907.Sh AUTHORIZED_KEYS FILE FORMAT
Damien Miller32aa1441999-10-29 09:15:49 +1000908.Pa $HOME/.ssh/authorized_keys
Ben Lindstromf96704d2001-06-25 04:17:12 +0000909is the default file that lists the public keys that are
910permitted for RSA authentication in protocol version 1
911and for public key authentication (PubkeyAuthentication)
Ben Lindstromc65e6a02001-04-23 13:02:16 +0000912in protocol version 2.
Ben Lindstromf96704d2001-06-25 04:17:12 +0000913.Cm AuthorizedKeysFile
Ben Lindstrombfb3a0e2001-06-05 20:25:05 +0000914may be used to specify an alternative file.
Ben Lindstrom4dccfa52000-12-28 16:40:05 +0000915.Pp
Damien Miller450a7a12000-03-26 13:04:51 +1000916Each line of the file contains one
Damien Miller32aa1441999-10-29 09:15:49 +1000917key (empty lines and lines starting with a
918.Ql #
919are ignored as
Damien Miller450a7a12000-03-26 13:04:51 +1000920comments).
Ben Lindstrom4dccfa52000-12-28 16:40:05 +0000921Each RSA public key consists of the following fields, separated by
Damien Miller450a7a12000-03-26 13:04:51 +1000922spaces: options, bits, exponent, modulus, comment.
Ben Lindstrom4dccfa52000-12-28 16:40:05 +0000923Each protocol version 2 public key consists of:
924options, keytype, base64 encoded key, comment.
925The options fields
926are optional; its presence is determined by whether the line starts
Damien Miller32aa1441999-10-29 09:15:49 +1000927with a number or not (the option field never starts with a number).
Ben Lindstrom4dccfa52000-12-28 16:40:05 +0000928The bits, exponent, modulus and comment fields give the RSA key for
929protocol version 1; the
Damien Miller32aa1441999-10-29 09:15:49 +1000930comment field is not used for anything (but may be convenient for the
931user to identify the key).
Ben Lindstrom4dccfa52000-12-28 16:40:05 +0000932For protocol version 2 the keytype is
933.Dq ssh-dss
934or
935.Dq ssh-rsa .
Damien Miller32aa1441999-10-29 09:15:49 +1000936.Pp
937Note that lines in this file are usually several hundred bytes long
Damien Miller450a7a12000-03-26 13:04:51 +1000938(because of the size of the RSA key modulus).
939You don't want to type them in; instead, copy the
Ben Lindstrom18a82ac2001-04-11 15:59:35 +0000940.Pa identity.pub ,
Ben Lindstrom4dccfa52000-12-28 16:40:05 +0000941.Pa id_dsa.pub
Ben Lindstrom18a82ac2001-04-11 15:59:35 +0000942or the
943.Pa id_rsa.pub
Damien Miller32aa1441999-10-29 09:15:49 +1000944file and edit it.
945.Pp
Damien Miller942da032000-08-18 13:59:06 +1000946The options (if present) consist of comma-separated option
Damien Miller450a7a12000-03-26 13:04:51 +1000947specifications.
948No spaces are permitted, except within double quotes.
Damien Miller32aa1441999-10-29 09:15:49 +1000949The following option specifications are supported:
950.Bl -tag -width Ds
951.It Cm from="pattern-list"
952Specifies that in addition to RSA authentication, the canonical name
953of the remote host must be present in the comma-separated list of
Damien Miller450a7a12000-03-26 13:04:51 +1000954patterns
955.Pf ( Ql *
956and
957.Ql ?
958serve as wildcards).
959The list may also contain
960patterns negated by prefixing them with
961.Ql ! ;
962if the canonical host name matches a negated pattern, the key is not accepted.
963The purpose
Damien Miller32aa1441999-10-29 09:15:49 +1000964of this option is to optionally increase security: RSA authentication
965by itself does not trust the network or name servers or anything (but
966the key); however, if somebody somehow steals the key, the key
Damien Miller450a7a12000-03-26 13:04:51 +1000967permits an intruder to log in from anywhere in the world.
968This additional option makes using a stolen key more difficult (name
Damien Miller32aa1441999-10-29 09:15:49 +1000969servers and/or routers would have to be compromised in addition to
970just the key).
971.It Cm command="command"
972Specifies that the command is executed whenever this key is used for
Damien Miller450a7a12000-03-26 13:04:51 +1000973authentication.
974The command supplied by the user (if any) is ignored.
Damien Miller32aa1441999-10-29 09:15:49 +1000975The command is run on a pty if the connection requests a pty;
Damien Miller450a7a12000-03-26 13:04:51 +1000976otherwise it is run without a tty.
Damien Miller33804262001-02-04 23:20:18 +1100977Note that if you want a 8-bit clean channel,
978you must not request a pty or should specify
979.Cm no-pty .
Damien Miller450a7a12000-03-26 13:04:51 +1000980A quote may be included in the command by quoting it with a backslash.
981This option might be useful
982to restrict certain RSA keys to perform just a specific operation.
983An example might be a key that permits remote backups but nothing else.
Damien Miller30c3d422000-05-09 11:02:59 +1000984Note that the client may specify TCP/IP and/or X11
985forwarding unless they are explicitly prohibited.
Damien Miller32aa1441999-10-29 09:15:49 +1000986.It Cm environment="NAME=value"
987Specifies that the string is to be added to the environment when
Damien Miller450a7a12000-03-26 13:04:51 +1000988logging in using this key.
989Environment variables set this way
990override other default environment values.
991Multiple options of this type are permitted.
Damien Miller32aa1441999-10-29 09:15:49 +1000992.It Cm no-port-forwarding
993Forbids TCP/IP forwarding when this key is used for authentication.
Damien Miller450a7a12000-03-26 13:04:51 +1000994Any port forward requests by the client will return an error.
995This might be used, e.g., in connection with the
Damien Miller32aa1441999-10-29 09:15:49 +1000996.Cm command
997option.
998.It Cm no-X11-forwarding
999Forbids X11 forwarding when this key is used for authentication.
1000Any X11 forward requests by the client will return an error.
1001.It Cm no-agent-forwarding
1002Forbids authentication agent forwarding when this key is used for
1003authentication.
1004.It Cm no-pty
1005Prevents tty allocation (a request to allocate a pty will fail).
Damien Millera243fde2001-03-19 23:16:08 +11001006.It Cm permitopen="host:port"
Ben Lindstrom24643222001-06-25 05:08:11 +00001007Limit local
Damien Millera243fde2001-03-19 23:16:08 +11001008.Li ``ssh -L''
Ben Lindstrom4b3564e2001-04-10 02:41:56 +00001009port forwarding such that it may only connect to the specified host and
Ben Lindstrom24643222001-06-25 05:08:11 +00001010port. Multiple
Damien Millera243fde2001-03-19 23:16:08 +11001011.Cm permitopen
Ben Lindstrom24643222001-06-25 05:08:11 +00001012options may be applied separated by commas. No pattern matching is
1013performed on the specified hostnames, they must be literal domains or
Damien Millera243fde2001-03-19 23:16:08 +11001014addresses.
Damien Miller32aa1441999-10-29 09:15:49 +10001015.El
1016.Ss Examples
10171024 33 12121.\|.\|.\|312314325 ylo@foo.bar
1018.Pp
1019from="*.niksula.hut.fi,!pc.niksula.hut.fi" 1024 35 23.\|.\|.\|2334 ylo@niksula
1020.Pp
1021command="dump /home",no-pty,no-port-forwarding 1024 33 23.\|.\|.\|2323 backup.hut.fi
Damien Millera243fde2001-03-19 23:16:08 +11001022.Pp
1023permitopen="10.2.1.55:80",permitopen="10.2.1.56:25" 1024 33 23.\|.\|.\|2323
Damien Miller32aa1441999-10-29 09:15:49 +10001024.Sh SSH_KNOWN_HOSTS FILE FORMAT
Damien Miller22c77262000-04-13 12:26:34 +10001025The
Damien Millere247cc42000-05-07 12:03:14 +10001026.Pa /etc/ssh_known_hosts ,
Damien Miller22c77262000-04-13 12:26:34 +10001027and
Ben Lindstromd6481ea2001-06-25 04:37:41 +00001028.Pa $HOME/.ssh/known_hosts
Damien Miller450a7a12000-03-26 13:04:51 +10001029files contain host public keys for all known hosts.
1030The global file should
1031be prepared by the administrator (optional), and the per-user file is
Damien Miller942da032000-08-18 13:59:06 +10001032maintained automatically: whenever the user connects from an unknown host
Damien Miller450a7a12000-03-26 13:04:51 +10001033its key is added to the per-user file.
Damien Miller32aa1441999-10-29 09:15:49 +10001034.Pp
1035Each line in these files contains the following fields: hostnames,
Damien Miller450a7a12000-03-26 13:04:51 +10001036bits, exponent, modulus, comment.
1037The fields are separated by spaces.
Damien Miller32aa1441999-10-29 09:15:49 +10001038.Pp
1039Hostnames is a comma-separated list of patterns ('*' and '?' act as
1040wildcards); each pattern in turn is matched against the canonical host
1041name (when authenticating a client) or against the user-supplied
Damien Miller450a7a12000-03-26 13:04:51 +10001042name (when authenticating a server).
1043A pattern may also be preceded by
Damien Miller32aa1441999-10-29 09:15:49 +10001044.Ql !
1045to indicate negation: if the host name matches a negated
1046pattern, it is not accepted (by that line) even if it matched another
1047pattern on the line.
1048.Pp
Damien Millere247cc42000-05-07 12:03:14 +10001049Bits, exponent, and modulus are taken directly from the RSA host key; they
Damien Miller32aa1441999-10-29 09:15:49 +10001050can be obtained, e.g., from
Damien Miller886c63a2000-01-20 23:13:36 +11001051.Pa /etc/ssh_host_key.pub .
Damien Miller32aa1441999-10-29 09:15:49 +10001052The optional comment field continues to the end of the line, and is not used.
1053.Pp
1054Lines starting with
1055.Ql #
1056and empty lines are ignored as comments.
1057.Pp
1058When performing host authentication, authentication is accepted if any
Damien Miller450a7a12000-03-26 13:04:51 +10001059matching line has the proper key.
1060It is thus permissible (but not
Damien Miller32aa1441999-10-29 09:15:49 +10001061recommended) to have several lines or different host keys for the same
Damien Miller450a7a12000-03-26 13:04:51 +10001062names.
1063This will inevitably happen when short forms of host names
1064from different domains are put in the file.
1065It is possible
Damien Miller32aa1441999-10-29 09:15:49 +10001066that the files contain conflicting information; authentication is
1067accepted if valid information can be found from either file.
1068.Pp
1069Note that the lines in these files are typically hundreds of characters
1070long, and you definitely don't want to type in the host keys by hand.
1071Rather, generate them by a script
Damien Miller22c77262000-04-13 12:26:34 +10001072or by taking
Damien Miller886c63a2000-01-20 23:13:36 +11001073.Pa /etc/ssh_host_key.pub
Damien Miller32aa1441999-10-29 09:15:49 +10001074and adding the host names at the front.
1075.Ss Examples
Ben Lindstromc65e6a02001-04-23 13:02:16 +00001076.Bd -literal
1077closenet,.\|.\|.\|,130.233.208.41 1024 37 159.\|.\|.93 closenet.hut.fi
1078cvs.openbsd.org,199.185.137.3 ssh-rsa AAAA1234.....=
1079.Ed
Damien Miller32aa1441999-10-29 09:15:49 +10001080.Sh FILES
1081.Bl -tag -width Ds
Damien Miller886c63a2000-01-20 23:13:36 +11001082.It Pa /etc/sshd_config
Damien Miller32aa1441999-10-29 09:15:49 +10001083Contains configuration data for
1084.Nm sshd .
1085This file should be writable by root only, but it is recommended
1086(though not necessary) that it be world-readable.
Ben Lindstromd7f5b512001-03-05 06:57:23 +00001087.It Pa /etc/ssh_host_key, /etc/ssh_host_dsa_key, /etc/ssh_host_rsa_key
Ben Lindstromc65e6a02001-04-23 13:02:16 +00001088These three files contain the private parts of the host keys.
Ben Lindstromd7f5b512001-03-05 06:57:23 +00001089These files should only be owned by root, readable only by root, and not
Damien Miller32aa1441999-10-29 09:15:49 +10001090accessible to others.
1091Note that
1092.Nm
1093does not start if this file is group/world-accessible.
Ben Lindstromd7f5b512001-03-05 06:57:23 +00001094.It Pa /etc/ssh_host_key.pub, /etc/ssh_host_dsa_key.pub, /etc/ssh_host_rsa_key.pub
Ben Lindstromc65e6a02001-04-23 13:02:16 +00001095These three files contain the public parts of the host keys.
Ben Lindstromd7f5b512001-03-05 06:57:23 +00001096These files should be world-readable but writable only by
Damien Miller450a7a12000-03-26 13:04:51 +10001097root.
Ben Lindstromd7f5b512001-03-05 06:57:23 +00001098Their contents should match the respective private parts.
1099These files are not
1100really used for anything; they are provided for the convenience of
1101the user so their contents can be copied to known hosts files.
1102These files are created using
Damien Miller32aa1441999-10-29 09:15:49 +10001103.Xr ssh-keygen 1 .
Ben Lindstromae1c51c2001-06-25 04:14:59 +00001104.It Pa /etc/moduli
Damien Millere39cacc2000-11-29 12:18:44 +11001105Contains Diffie-Hellman groups used for the "Diffie-Hellman Group Exchange".
Damien Miller886c63a2000-01-20 23:13:36 +11001106.It Pa /var/run/sshd.pid
Damien Miller32aa1441999-10-29 09:15:49 +10001107Contains the process ID of the
1108.Nm
1109listening for connections (if there are several daemons running
1110concurrently for different ports, this contains the pid of the one
Damien Miller450a7a12000-03-26 13:04:51 +10001111started last).
Damien Miller942da032000-08-18 13:59:06 +10001112The content of this file is not sensitive; it can be world-readable.
Damien Miller32aa1441999-10-29 09:15:49 +10001113.It Pa $HOME/.ssh/authorized_keys
Ben Lindstromc65e6a02001-04-23 13:02:16 +00001114Lists the public keys (RSA or DSA) that can be used to log into the user's account.
Damien Millere247cc42000-05-07 12:03:14 +10001115This file must be readable by root (which may on some machines imply
1116it being world-readable if the user's home directory resides on an NFS
1117volume).
1118It is recommended that it not be accessible by others.
1119The format of this file is described above.
1120Users will place the contents of their
Ben Lindstromf96704d2001-06-25 04:17:12 +00001121.Pa identity.pub ,
Damien Millere247cc42000-05-07 12:03:14 +10001122.Pa id_dsa.pub
Ben Lindstrom18a82ac2001-04-11 15:59:35 +00001123and/or
1124.Pa id_rsa.pub
Damien Millere247cc42000-05-07 12:03:14 +10001125files into this file, as described in
1126.Xr ssh-keygen 1 .
Damien Miller886c63a2000-01-20 23:13:36 +11001127.It Pa "/etc/ssh_known_hosts" and "$HOME/.ssh/known_hosts"
Damien Miller5ce662a1999-11-11 17:57:39 +11001128These files are consulted when using rhosts with RSA host
Ben Lindstromd6481ea2001-06-25 04:37:41 +00001129authentication or protocol version 2 hostbased authentication
1130to check the public key of the host.
Damien Miller450a7a12000-03-26 13:04:51 +10001131The key must be listed in one of these files to be accepted.
Damien Miller33e511e1999-11-11 11:43:13 +11001132The client uses the same files
Ben Lindstromebd888d2001-03-05 05:49:29 +00001133to verify that it is connecting to the correct remote host.
Damien Miller450a7a12000-03-26 13:04:51 +10001134These files should be writable only by root/the owner.
Damien Miller886c63a2000-01-20 23:13:36 +11001135.Pa /etc/ssh_known_hosts
Damien Miller32aa1441999-10-29 09:15:49 +10001136should be world-readable, and
1137.Pa $HOME/.ssh/known_hosts
1138can but need not be world-readable.
1139.It Pa /etc/nologin
Damien Miller22c77262000-04-13 12:26:34 +10001140If this file exists,
Damien Miller32aa1441999-10-29 09:15:49 +10001141.Nm
Damien Miller450a7a12000-03-26 13:04:51 +10001142refuses to let anyone except root log in.
1143The contents of the file
Damien Miller32aa1441999-10-29 09:15:49 +10001144are displayed to anyone trying to log in, and non-root connections are
Damien Miller450a7a12000-03-26 13:04:51 +10001145refused.
1146The file should be world-readable.
Damien Miller32aa1441999-10-29 09:15:49 +10001147.It Pa /etc/hosts.allow, /etc/hosts.deny
1148If compiled with
1149.Sy LIBWRAP
1150support, tcp-wrappers access controls may be defined here as described in
1151.Xr hosts_access 5 .
1152.It Pa $HOME/.rhosts
1153This file contains host-username pairs, separated by a space, one per
Damien Miller450a7a12000-03-26 13:04:51 +10001154line.
1155The given user on the corresponding host is permitted to log in
1156without password.
1157The same file is used by rlogind and rshd.
Damien Miller32aa1441999-10-29 09:15:49 +10001158The file must
1159be writable only by the user; it is recommended that it not be
1160accessible by others.
1161.Pp
Damien Miller450a7a12000-03-26 13:04:51 +10001162If is also possible to use netgroups in the file.
1163Either host or user
Damien Miller32aa1441999-10-29 09:15:49 +10001164name may be of the form +@groupname to specify all hosts or all users
1165in the group.
1166.It Pa $HOME/.shosts
1167For ssh,
1168this file is exactly the same as for
1169.Pa .rhosts .
1170However, this file is
1171not used by rlogin and rshd, so using this permits access using SSH only.
Damien Miller942da032000-08-18 13:59:06 +10001172.It Pa /etc/hosts.equiv
Damien Miller32aa1441999-10-29 09:15:49 +10001173This file is used during
1174.Pa .rhosts
Damien Miller450a7a12000-03-26 13:04:51 +10001175authentication.
1176In the simplest form, this file contains host names, one per line.
1177Users on
Damien Miller32aa1441999-10-29 09:15:49 +10001178those hosts are permitted to log in without a password, provided they
Damien Miller450a7a12000-03-26 13:04:51 +10001179have the same user name on both machines.
1180The host name may also be
Damien Miller32aa1441999-10-29 09:15:49 +10001181followed by a user name; such users are permitted to log in as
1182.Em any
Damien Miller450a7a12000-03-26 13:04:51 +10001183user on this machine (except root).
1184Additionally, the syntax
Damien Miller32aa1441999-10-29 09:15:49 +10001185.Dq +@group
Damien Miller450a7a12000-03-26 13:04:51 +10001186can be used to specify netgroups.
1187Negated entries start with
Damien Miller32aa1441999-10-29 09:15:49 +10001188.Ql \&- .
1189.Pp
1190If the client host/user is successfully matched in this file, login is
1191automatically permitted provided the client and server user names are the
Damien Miller450a7a12000-03-26 13:04:51 +10001192same.
1193Additionally, successful RSA host authentication is normally required.
1194This file must be writable only by root; it is recommended
Damien Miller32aa1441999-10-29 09:15:49 +10001195that it be world-readable.
1196.Pp
1197.Sy "Warning: It is almost never a good idea to use user names in"
1198.Pa hosts.equiv .
1199Beware that it really means that the named user(s) can log in as
1200.Em anybody ,
1201which includes bin, daemon, adm, and other accounts that own critical
Damien Miller450a7a12000-03-26 13:04:51 +10001202binaries and directories.
1203Using a user name practically grants the user root access.
1204The only valid use for user names that I can think
Damien Miller32aa1441999-10-29 09:15:49 +10001205of is in negative entries.
1206.Pp
1207Note that this warning also applies to rsh/rlogin.
Damien Miller886c63a2000-01-20 23:13:36 +11001208.It Pa /etc/shosts.equiv
Damien Miller32aa1441999-10-29 09:15:49 +10001209This is processed exactly as
1210.Pa /etc/hosts.equiv .
1211However, this file may be useful in environments that want to run both
1212rsh/rlogin and ssh.
1213.It Pa $HOME/.ssh/environment
Damien Miller450a7a12000-03-26 13:04:51 +10001214This file is read into the environment at login (if it exists).
1215It can only contain empty lines, comment lines (that start with
Damien Miller32aa1441999-10-29 09:15:49 +10001216.Ql # ) ,
Damien Miller450a7a12000-03-26 13:04:51 +10001217and assignment lines of the form name=value.
1218The file should be writable
Damien Miller32aa1441999-10-29 09:15:49 +10001219only by the user; it need not be readable by anyone else.
1220.It Pa $HOME/.ssh/rc
1221If this file exists, it is run with /bin/sh after reading the
Damien Miller450a7a12000-03-26 13:04:51 +10001222environment files but before starting the user's shell or command.
1223If X11 spoofing is in use, this will receive the "proto cookie" pair in
Damien Miller32aa1441999-10-29 09:15:49 +10001224standard input (and
1225.Ev DISPLAY
Damien Miller450a7a12000-03-26 13:04:51 +10001226in environment).
1227This must call
Damien Miller32aa1441999-10-29 09:15:49 +10001228.Xr xauth 1
1229in that case.
1230.Pp
1231The primary purpose of this file is to run any initialization routines
1232which may be needed before the user's home directory becomes
1233accessible; AFS is a particular example of such an environment.
1234.Pp
1235This file will probably contain some initialization code followed by
Ben Lindstromc65e6a02001-04-23 13:02:16 +00001236something similar to:
1237.Bd -literal
1238 if read proto cookie; then
1239 echo add $DISPLAY $proto $cookie | xauth -q -
1240 fi
1241.Ed
Damien Miller32aa1441999-10-29 09:15:49 +10001242.Pp
1243If this file does not exist,
Damien Miller886c63a2000-01-20 23:13:36 +11001244.Pa /etc/sshrc
Damien Miller32aa1441999-10-29 09:15:49 +10001245is run, and if that
1246does not exist either, xauth is used to store the cookie.
1247.Pp
1248This file should be writable only by the user, and need not be
1249readable by anyone else.
Damien Miller886c63a2000-01-20 23:13:36 +11001250.It Pa /etc/sshrc
Damien Miller32aa1441999-10-29 09:15:49 +10001251Like
1252.Pa $HOME/.ssh/rc .
1253This can be used to specify
Damien Miller450a7a12000-03-26 13:04:51 +10001254machine-specific login-time initializations globally.
1255This file should be writable only by root, and should be world-readable.
Damien Miller37023962000-07-11 17:31:38 +10001256.El
Damien Miller0bc1bd82000-11-13 22:57:25 +11001257.Sh AUTHORS
Ben Lindstrom8eec2c82001-01-29 08:39:16 +00001258OpenSSH is a derivative of the original and free
1259ssh 1.2.12 release by Tatu Ylonen.
1260Aaron Campbell, Bob Beck, Markus Friedl, Niels Provos,
1261Theo de Raadt and Dug Song
1262removed many bugs, re-added newer features and
1263created OpenSSH.
1264Markus Friedl contributed the support for SSH
1265protocol versions 1.5 and 2.0.
Damien Miller32aa1441999-10-29 09:15:49 +10001266.Sh SEE ALSO
Ben Lindstromae1c51c2001-06-25 04:14:59 +00001267.Xr moduli 5 ,
Ben Lindstromd2bf0d62001-06-25 04:10:54 +00001268.Xr rlogin 1 ,
1269.Xr rsh 1 ,
Damien Miller32aa1441999-10-29 09:15:49 +10001270.Xr scp 1 ,
Damien Miller33804262001-02-04 23:20:18 +11001271.Xr sftp 1 ,
Damien Miller32aa1441999-10-29 09:15:49 +10001272.Xr ssh 1 ,
1273.Xr ssh-add 1 ,
1274.Xr ssh-agent 1 ,
1275.Xr ssh-keygen 1 ,
Ben Lindstromd2bf0d62001-06-25 04:10:54 +00001276.Xr sftp-server 8
Ben Lindstrom160ec622001-04-22 17:17:46 +00001277.Rs
1278.%A T. Ylonen
1279.%A T. Kivinen
1280.%A M. Saarinen
1281.%A T. Rinne
1282.%A S. Lehtinen
1283.%T "SSH Protocol Architecture"
1284.%N draft-ietf-secsh-architecture-07.txt
1285.%D January 2001
1286.%O work in progress material
1287.Re
Ben Lindstromc65e6a02001-04-23 13:02:16 +00001288.Rs
1289.%A M. Friedl
1290.%A N. Provos
1291.%A W. A. Simpson
1292.%T "Diffie-Hellman Group Exchange for the SSH Transport Layer Protocol"
Ben Lindstrom3c798d42001-06-25 04:39:22 +00001293.%N draft-ietf-secsh-dh-group-exchange-01.txt
1294.%D April 2001
Ben Lindstromc65e6a02001-04-23 13:02:16 +00001295.%O work in progress material
1296.Re