blob: eba0e0f931f030df40c97a06596e070e9c7c3a06 [file] [log] [blame]
Damien Miller32aa1441999-10-29 09:15:49 +10001.\" -*- nroff -*-
2.\"
3.\" ssh.1.in
4.\"
5.\" Author: Tatu Ylonen <ylo@cs.hut.fi>
6.\"
7.\" Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
8.\" All rights reserved
9.\"
10.\" Created: Sat Apr 22 21:55:14 1995 ylo
11.\"
Damien Miller450a7a12000-03-26 13:04:51 +100012.\" $Id: ssh.1,v 1.20 2000/03/26 03:04:54 damien Exp $
Damien Miller32aa1441999-10-29 09:15:49 +100013.\"
14.Dd September 25, 1999
15.Dt SSH 1
16.Os
17.Sh NAME
18.Nm ssh
19.Nd OpenSSH secure shell client (remote login program)
20.Sh SYNOPSIS
21.Nm ssh
22.Op Fl l Ar login_name
23.Op Ar hostname | user@hostname
24.Op Ar command
25.Pp
26.Nm ssh
Damien Miller34132e52000-01-14 15:45:46 +110027.Op Fl afgknqtvxCPX46
Damien Miller32aa1441999-10-29 09:15:49 +100028.Op Fl c Ar blowfish | 3des
29.Op Fl e Ar escape_char
30.Op Fl i Ar identity_file
31.Op Fl l Ar login_name
32.Op Fl o Ar option
33.Op Fl p Ar port
34.Oo Fl L Xo
35.Sm off
Damien Miller32aa1441999-10-29 09:15:49 +100036.Ar port :
Damien Miller396691a2000-01-20 22:44:08 +110037.Ar host :
Damien Miller32aa1441999-10-29 09:15:49 +100038.Ar hostport
39.Sm on
40.Xc
41.Oc
42.Oo Fl R Xo
43.Sm off
Damien Miller32aa1441999-10-29 09:15:49 +100044.Ar port :
Damien Miller396691a2000-01-20 22:44:08 +110045.Ar host :
Damien Miller32aa1441999-10-29 09:15:49 +100046.Ar hostport
47.Sm on
48.Xc
49.Oc
50.Op Ar hostname | user@hostname
51.Op Ar command
52.Sh DESCRIPTION
53.Nm
54(Secure Shell) is a program for logging into a remote machine and for
Damien Miller7684ee12000-03-17 23:40:15 +110055executing commands on a remote machine.
56It is intended to replace
Damien Miller32aa1441999-10-29 09:15:49 +100057rlogin and rsh, and provide secure encrypted communications between
Damien Miller7684ee12000-03-17 23:40:15 +110058two untrusted hosts over an insecure network.
59X11 connections and
Damien Miller32aa1441999-10-29 09:15:49 +100060arbitrary TCP/IP ports can also be forwarded over the secure channel.
61.Pp
62.Nm
63connects and logs into the specified
64.Ar hostname .
65The user must prove
66his/her identity to the remote machine using one of several methods.
67.Pp
68First, if the machine the user logs in from is listed in
69.Pa /etc/hosts.equiv
70or
Damien Miller886c63a2000-01-20 23:13:36 +110071.Pa /etc/shosts.equiv
Damien Miller32aa1441999-10-29 09:15:49 +100072on the remote machine, and the user names are
73the same on both sides, the user is immediately permitted to log in.
74Second, if
75.Pa \&.rhosts
76or
77.Pa \&.shosts
78exists in the user's home directory on the
79remote machine and contains a line containing the name of the client
80machine and the name of the user on that machine, the user is
Damien Miller7684ee12000-03-17 23:40:15 +110081permitted to log in.
82This form of authentication alone is normally not
Damien Miller32aa1441999-10-29 09:15:49 +100083allowed by the server because it is not secure.
84.Pp
85The second (and primary) authentication method is the
86.Pa rhosts
87or
88.Pa hosts.equiv
Damien Miller7684ee12000-03-17 23:40:15 +110089method combined with RSA-based host authentication.
90It means that if the login would be permitted by
Damien Miller32aa1441999-10-29 09:15:49 +100091.Pa \&.rhosts ,
92.Pa \&.shosts ,
93.Pa /etc/hosts.equiv ,
94or
Damien Miller886c63a2000-01-20 23:13:36 +110095.Pa /etc/shosts.equiv ,
Damien Miller32aa1441999-10-29 09:15:49 +100096and if additionally the server can verify the client's
97host key (see
Damien Miller886c63a2000-01-20 23:13:36 +110098.Pa /etc/ssh_known_hosts
Damien Miller33e511e1999-11-11 11:43:13 +110099and
100.Pa $HOME/.ssh/known_hosts
Damien Miller32aa1441999-10-29 09:15:49 +1000101in the
102.Sx FILES
Damien Miller7684ee12000-03-17 23:40:15 +1100103section), only then login is permitted.
104This authentication method closes security holes due to IP
105spoofing, DNS spoofing and routing spoofing.
106[Note to the administrator:
Damien Miller32aa1441999-10-29 09:15:49 +1000107.Pa /etc/hosts.equiv ,
108.Pa \&.rhosts ,
109and the rlogin/rsh protocol in general, are inherently insecure and should be
110disabled if security is desired.]
111.Pp
112As a third authentication method,
113.Nm
114supports RSA based authentication.
115The scheme is based on public-key cryptography: there are cryptosystems
116where encryption and decryption are done using separate keys, and it
117is not possible to derive the decryption key from the encryption key.
Damien Miller7684ee12000-03-17 23:40:15 +1100118RSA is one such system.
119The idea is that each user creates a public/private
120key pair for authentication purposes.
121The server knows the public key, and only the user knows the private key.
Damien Miller32aa1441999-10-29 09:15:49 +1000122The file
123.Pa $HOME/.ssh/authorized_keys
124lists the public keys that are permitted for logging
Damien Miller7684ee12000-03-17 23:40:15 +1100125in.
126When the user logs in, the
Damien Miller32aa1441999-10-29 09:15:49 +1000127.Nm
128program tells the server which key pair it would like to use for
Damien Miller7684ee12000-03-17 23:40:15 +1100129authentication.
130The server checks if this key is permitted, and if
Damien Miller32aa1441999-10-29 09:15:49 +1000131so, sends the user (actually the
132.Nm
133program running on behalf of the user) a challenge, a random number,
Damien Miller7684ee12000-03-17 23:40:15 +1100134encrypted by the user's public key.
135The challenge can only be
136decrypted using the proper private key.
137The user's client then decrypts the
Damien Miller32aa1441999-10-29 09:15:49 +1000138challenge using the private key, proving that he/she knows the private
139key but without disclosing it to the server.
140.Pp
141.Nm
Damien Miller7684ee12000-03-17 23:40:15 +1100142implements the RSA authentication protocol automatically.
143The user creates his/her RSA key pair by running
Damien Miller32aa1441999-10-29 09:15:49 +1000144.Xr ssh-keygen 1 .
145This stores the private key in
146.Pa \&.ssh/identity
147and the public key in
148.Pa \&.ssh/identity.pub
Damien Miller7684ee12000-03-17 23:40:15 +1100149in the user's home directory.
150The user should then copy the
Damien Miller32aa1441999-10-29 09:15:49 +1000151.Pa identity.pub
152to
153.Pa \&.ssh/authorized_keys
154in his/her home directory on the remote machine (the
155.Pa authorized_keys
156file corresponds to the conventional
157.Pa \&.rhosts
158file, and has one key
Damien Miller7684ee12000-03-17 23:40:15 +1100159per line, though the lines can be very long).
160After this, the user can log in without giving the password.
161RSA authentication is much
Damien Miller32aa1441999-10-29 09:15:49 +1000162more secure than rhosts authentication.
163.Pp
164The most convenient way to use RSA authentication may be with an
Damien Miller7684ee12000-03-17 23:40:15 +1100165authentication agent.
166See
Damien Miller32aa1441999-10-29 09:15:49 +1000167.Xr ssh-agent 1
168for more information.
169.Pp
170If other authentication methods fail,
171.Nm
Damien Miller7684ee12000-03-17 23:40:15 +1100172prompts the user for a password.
173The password is sent to the remote
Damien Miller32aa1441999-10-29 09:15:49 +1000174host for checking; however, since all communications are encrypted,
175the password cannot be seen by someone listening on the network.
176.Pp
177When the user's identity has been accepted by the server, the server
178either executes the given command, or logs into the machine and gives
Damien Miller7684ee12000-03-17 23:40:15 +1100179the user a normal shell on the remote machine.
180All communication with
Damien Miller32aa1441999-10-29 09:15:49 +1000181the remote command or shell will be automatically encrypted.
182.Pp
183If a pseudo-terminal has been allocated (normal login session), the
184user can disconnect with
185.Ic ~. ,
186and suspend
187.Nm
188with
189.Ic ~^Z .
190All forwarded connections can be listed with
191.Ic ~#
192and if
193the session blocks waiting for forwarded X11 or TCP/IP
194connections to terminate, it can be backgrounded with
195.Ic ~&
196(this should not be used while the user shell is active, as it can cause the
Damien Miller7684ee12000-03-17 23:40:15 +1100197shell to hang).
198All available escapes can be listed with
Damien Miller32aa1441999-10-29 09:15:49 +1000199.Ic ~? .
200.Pp
201A single tilde character can be sent as
202.Ic ~~
203(or by following the tilde by a character other than those described above).
204The escape character must always follow a newline to be interpreted as
Damien Miller7684ee12000-03-17 23:40:15 +1100205special.
206The escape character can be changed in configuration files
207or on the command line.
Damien Miller32aa1441999-10-29 09:15:49 +1000208.Pp
209If no pseudo tty has been allocated, the
210session is transparent and can be used to reliably transfer binary
Damien Miller7684ee12000-03-17 23:40:15 +1100211data.
212On most systems, setting the escape character to
Damien Miller32aa1441999-10-29 09:15:49 +1000213.Dq none
214will also make the session transparent even if a tty is used.
215.Pp
216The session terminates when the command or shell in on the remote
217machine exists and all X11 and TCP/IP connections have been closed.
218The exit status of the remote program is returned as the exit status
219of
220.Nm ssh .
221.Pp
222If the user is using X11 (the
223.Ev DISPLAY
224environment variable is set), the connection to the X11 display is
225automatically forwarded to the remote side in such a way that any X11
226programs started from the shell (or command) will go through the
227encrypted channel, and the connection to the real X server will be made
Damien Miller7684ee12000-03-17 23:40:15 +1100228from the local machine.
229The user should not manually set
Damien Miller32aa1441999-10-29 09:15:49 +1000230.Ev DISPLAY .
231Forwarding of X11 connections can be
232configured on the command line or in configuration files.
233.Pp
234The
235.Ev DISPLAY
236value set by
237.Nm
238will point to the server machine, but with a display number greater
Damien Miller7684ee12000-03-17 23:40:15 +1100239than zero.
240This is normal, and happens because
Damien Miller32aa1441999-10-29 09:15:49 +1000241.Nm
242creates a
243.Dq proxy
244X server on the server machine for forwarding the
245connections over the encrypted channel.
246.Pp
247.Nm
248will also automatically set up Xauthority data on the server machine.
249For this purpose, it will generate a random authorization cookie,
250store it in Xauthority on the server, and verify that any forwarded
251connections carry this cookie and replace it by the real cookie when
Damien Miller7684ee12000-03-17 23:40:15 +1100252the connection is opened.
253The real authentication cookie is never
Damien Miller32aa1441999-10-29 09:15:49 +1000254sent to the server machine (and no cookies are sent in the plain).
255.Pp
256If the user is using an authentication agent, the connection to the agent
257is automatically forwarded to the remote side unless disabled on
258command line or in a configuration file.
259.Pp
260Forwarding of arbitrary TCP/IP connections over the secure channel can
Damien Miller7684ee12000-03-17 23:40:15 +1100261be specified either on command line or in a configuration file.
262One possible application of TCP/IP forwarding is a secure connection to an
Damien Miller32aa1441999-10-29 09:15:49 +1000263electronic purse; another is going trough firewalls.
264.Pp
265.Nm
266automatically maintains and checks a database containing RSA-based
Damien Miller7684ee12000-03-17 23:40:15 +1100267identifications for all hosts it has ever been used with.
268The database is stored in
Damien Miller32aa1441999-10-29 09:15:49 +1000269.Pa \&.ssh/known_hosts
Damien Miller7684ee12000-03-17 23:40:15 +1100270in the user's home directory.
271Additionally, the file
Damien Miller886c63a2000-01-20 23:13:36 +1100272.Pa /etc/ssh_known_hosts
Damien Miller7684ee12000-03-17 23:40:15 +1100273is automatically checked for known hosts.
274Any new hosts are automatically added to the user's file.
275If a host's identification
Damien Miller32aa1441999-10-29 09:15:49 +1000276ever changes,
277.Nm
278warns about this and disables password authentication to prevent a
Damien Miller7684ee12000-03-17 23:40:15 +1100279trojan horse from getting the user's password.
280Another purpose of
Damien Miller32aa1441999-10-29 09:15:49 +1000281this mechanism is to prevent man-in-the-middle attacks which could
Damien Miller7684ee12000-03-17 23:40:15 +1100282otherwise be used to circumvent the encryption.
283The
Damien Miller32aa1441999-10-29 09:15:49 +1000284.Cm StrictHostKeyChecking
285option (see below) can be used to prevent logins to machines whose
286host key is not known or has changed.
287.Sh OPTIONS
288.Bl -tag -width Ds
289.It Fl a
Damien Miller450a7a12000-03-26 13:04:51 +1000290Disables forwarding of the authentication agent connection.
291This may also be specified on a per-host basis in the configuration file.
Damien Miller32aa1441999-10-29 09:15:49 +1000292.It Fl c Ar blowfish|3des
293Selects the cipher to use for encrypting the session.
294.Ar 3des
Damien Miller7684ee12000-03-17 23:40:15 +1100295is used by default.
296It is believed to be secure.
Damien Miller32aa1441999-10-29 09:15:49 +1000297.Ar 3des
298(triple-des) is an encrypt-decrypt-encrypt triple with three different keys.
299It is presumably more secure than the
300.Ar des
301cipher which is no longer supported in ssh.
302.Ar blowfish
303is a fast block cipher, it appears very secure and is much faster than
Damien Miller7684ee12000-03-17 23:40:15 +1100304.Ar 3des .
Damien Miller32aa1441999-10-29 09:15:49 +1000305.It Fl e Ar ch|^ch|none
306Sets the escape character for sessions with a pty (default:
307.Ql ~ ) .
Damien Miller7684ee12000-03-17 23:40:15 +1100308The escape character is only recognized at the beginning of a line.
309The escape character followed by a dot
Damien Miller32aa1441999-10-29 09:15:49 +1000310.Pq Ql \&.
311closes the connection, followed
312by control-Z suspends the connection, and followed by itself sends the
Damien Miller7684ee12000-03-17 23:40:15 +1100313escape character once.
314Setting the character to
Damien Miller32aa1441999-10-29 09:15:49 +1000315.Dq none
316disables any escapes and makes the session fully transparent.
317.It Fl f
318Requests
319.Nm
Damien Miller7684ee12000-03-17 23:40:15 +1100320to go to background just before command execution.
321This is useful if
Damien Miller32aa1441999-10-29 09:15:49 +1000322.Nm
323is going to ask for passwords or passphrases, but the user
Damien Miller7684ee12000-03-17 23:40:15 +1100324wants it in the background.
325This implies
Damien Miller32aa1441999-10-29 09:15:49 +1000326.Fl n .
327The recommended way to start X11 programs at a remote site is with
328something like
329.Ic ssh -f host xterm .
Damien Miller396691a2000-01-20 22:44:08 +1100330.It Fl g
331Allows remote hosts to connect to local forwarded ports.
Damien Miller32aa1441999-10-29 09:15:49 +1000332.It Fl i Ar identity_file
333Selects the file from which the identity (private key) for
Damien Miller7684ee12000-03-17 23:40:15 +1100334RSA authentication is read.
335Default is
Damien Miller32aa1441999-10-29 09:15:49 +1000336.Pa \&.ssh/identity
Damien Miller7684ee12000-03-17 23:40:15 +1100337in the user's home directory.
338Identity files may also be specified on
339a per-host basis in the configuration file.
340It is possible to have multiple
Damien Miller32aa1441999-10-29 09:15:49 +1000341.Fl i
342options (and multiple identities specified in
343configuration files).
Damien Miller32aa1441999-10-29 09:15:49 +1000344.It Fl k
Damien Miller450a7a12000-03-26 13:04:51 +1000345Disables forwarding of Kerberos tickets and AFS tokens.
346This may also be specified on a per-host basis in the configuration file.
Damien Miller32aa1441999-10-29 09:15:49 +1000347.It Fl l Ar login_name
Damien Miller7684ee12000-03-17 23:40:15 +1100348Specifies the user to log in as on the remote machine.
349This also may be specified on a per-host basis in the configuration file.
Damien Miller32aa1441999-10-29 09:15:49 +1000350.It Fl n
351Redirects stdin from
352.Pa /dev/null
353(actually, prevents reading from stdin).
354This must be used when
355.Nm
Damien Miller7684ee12000-03-17 23:40:15 +1100356is run in the background.
357A common trick is to use this to run X11 programs on a remote machine.
358For example,
Damien Miller32aa1441999-10-29 09:15:49 +1000359.Ic ssh -n shadows.cs.hut.fi emacs &
360will start an emacs on shadows.cs.hut.fi, and the X11
361connection will be automatically forwarded over an encrypted channel.
362The
363.Nm
364program will be put in the background.
365(This does not work if
366.Nm
367needs to ask for a password or passphrase; see also the
368.Fl f
369option.)
370.It Fl o Ar option
371Can be used to give options in the format used in the config file.
372This is useful for specifying options for which there is no separate
Damien Miller7684ee12000-03-17 23:40:15 +1100373command-line flag.
374The option has the same format as a line in the configuration file.
Damien Miller32aa1441999-10-29 09:15:49 +1000375.It Fl p Ar port
Damien Miller7684ee12000-03-17 23:40:15 +1100376Port to connect to on the remote host.
377This can be specified on a
Damien Miller32aa1441999-10-29 09:15:49 +1000378per-host basis in the configuration file.
379.It Fl P
380Use a non-privileged port for outgoing connections.
381This can be used if your firewall does
382not permit connections from privileged ports.
Damien Millera34a28b1999-12-14 10:47:15 +1100383Note that this option turns off
Damien Miller32aa1441999-10-29 09:15:49 +1000384.Cm RhostsAuthentication
385and
386.Cm RhostsRSAAuthentication .
387.It Fl q
Damien Miller7684ee12000-03-17 23:40:15 +1100388Quiet mode.
389Causes all warning and diagnostic messages to be suppressed.
390Only fatal errors are displayed.
Damien Miller32aa1441999-10-29 09:15:49 +1000391.It Fl t
Damien Miller7684ee12000-03-17 23:40:15 +1100392Force pseudo-tty allocation.
Damien Miller450a7a12000-03-26 13:04:51 +1000393This can be used to execute arbitrary
Damien Miller7684ee12000-03-17 23:40:15 +1100394screen-based programs on a remote machine, which can be very useful,
395e.g., when implementing menu services.
Damien Miller32aa1441999-10-29 09:15:49 +1000396.It Fl v
Damien Miller7684ee12000-03-17 23:40:15 +1100397Verbose mode.
398Causes
Damien Miller32aa1441999-10-29 09:15:49 +1000399.Nm
Damien Miller7684ee12000-03-17 23:40:15 +1100400to print debugging messages about its progress.
401This is helpful in
Damien Miller32aa1441999-10-29 09:15:49 +1000402debugging connection, authentication, and configuration problems.
403The verbose mode is also used to display
404.Xr skey 1
405challenges, if the user entered "s/key" as password.
406.It Fl x
Damien Miller7684ee12000-03-17 23:40:15 +1100407Disables X11 forwarding.
408This can also be specified on a per-host basis in a configuration file.
Damien Miller32aa1441999-10-29 09:15:49 +1000409.It Fl X
410Enables X11 forwarding.
411.It Fl C
412Requests compression of all data (including stdin, stdout, stderr, and
Damien Miller7684ee12000-03-17 23:40:15 +1100413data for forwarded X11 and TCP/IP connections).
414The compression algorithm is the same used by
Damien Miller396691a2000-01-20 22:44:08 +1100415.Xr gzip 1 ,
416and the
Damien Miller32aa1441999-10-29 09:15:49 +1000417.Dq level
418can be controlled by the
419.Cm CompressionLevel
Damien Miller7684ee12000-03-17 23:40:15 +1100420option (see below).
421Compression is desirable on modem lines and other
Damien Miller32aa1441999-10-29 09:15:49 +1000422slow connections, but will only slow down things on fast networks.
423The default value can be set on a host-by-host basis in the
424configuration files; see the
425.Cm Compress
426option below.
427.It Fl L Ar port:host:hostport
428Specifies that the given port on the local (client) host is to be
Damien Miller7684ee12000-03-17 23:40:15 +1100429forwarded to the given host and port on the remote side.
430This works by allocating a socket to listen to
Damien Miller32aa1441999-10-29 09:15:49 +1000431.Ar port
432on the local side, and whenever a connection is made to this port, the
433connection is forwarded over the secure channel, and a connection is
434made to
Damien Miller34132e52000-01-14 15:45:46 +1100435.Ar host
436port
437.Ar hostport
Damien Miller7684ee12000-03-17 23:40:15 +1100438from the remote machine.
439Port forwardings can also be specified in the configuration file.
440Only root can forward privileged ports.
Damien Miller34132e52000-01-14 15:45:46 +1100441IPv6 addresses can be specified with an alternative syntax:
442.Ar port/host/hostport
Damien Miller32aa1441999-10-29 09:15:49 +1000443.It Fl R Ar port:host:hostport
444Specifies that the given port on the remote (server) host is to be
Damien Miller7684ee12000-03-17 23:40:15 +1100445forwarded to the given host and port on the local side.
446This works by allocating a socket to listen to
Damien Miller32aa1441999-10-29 09:15:49 +1000447.Ar port
448on the remote side, and whenever a connection is made to this port, the
449connection is forwarded over the secure channel, and a connection is
450made to
Damien Miller34132e52000-01-14 15:45:46 +1100451.Ar host
452port
453.Ar hostport
Damien Miller7684ee12000-03-17 23:40:15 +1100454from the local machine.
455Port forwardings can also be specified in the configuration file.
456Privileged ports can be forwarded only when
Damien Miller32aa1441999-10-29 09:15:49 +1000457logging in as root on the remote machine.
Damien Miller34132e52000-01-14 15:45:46 +1100458.It Fl 4
459Forces
460.Nm
461to use IPv4 addresses only.
462.It Fl 6
463Forces
464.Nm
465to use IPv6 addresses only.
Damien Miller32aa1441999-10-29 09:15:49 +1000466.El
467.Sh CONFIGURATION FILES
468.Nm
469obtains configuration data from the following sources (in this order):
470command line options, user's configuration file
471.Pq Pa $HOME/.ssh/config ,
472and system-wide configuration file
Damien Miller886c63a2000-01-20 23:13:36 +1100473.Pq Pa /etc/ssh_config .
Damien Miller32aa1441999-10-29 09:15:49 +1000474For each parameter, the first obtained value
Damien Miller7684ee12000-03-17 23:40:15 +1100475will be used.
476The configuration files contain sections bracketed by
477.Dq Host
478specifications, and that section is only applied for hosts that
479match one of the patterns given in the specification.
480The matched host name is the one given on the command line.
Damien Miller32aa1441999-10-29 09:15:49 +1000481.Pp
482Since the first obtained value for each parameter is used, more
483host-specific declarations should be given near the beginning of the
484file, and general defaults at the end.
485.Pp
486The configuration file has the following format:
487.Pp
488Empty lines and lines starting with
489.Ql #
490are comments.
491.Pp
492Otherwise a line is of the format
493.Dq keyword arguments .
494The possible
495keywords and their meanings are as follows (note that the
496configuration files are case-sensitive):
497.Bl -tag -width Ds
498.It Cm Host
499Restricts the following declarations (up to the next
500.Cm Host
501keyword) to be only for those hosts that match one of the patterns
502given after the keyword.
503.Ql \&*
504and
505.Ql ?
506can be used as wildcards in the
Damien Miller7684ee12000-03-17 23:40:15 +1100507patterns.
508A single
Damien Miller32aa1441999-10-29 09:15:49 +1000509.Ql \&*
510as a pattern can be used to provide global
Damien Miller7684ee12000-03-17 23:40:15 +1100511defaults for all hosts.
512The host is the
Damien Miller32aa1441999-10-29 09:15:49 +1000513.Ar hostname
514argument given on the command line (i.e., the name is not converted to
515a canonicalized host name before matching).
516.It Cm AFSTokenPassing
Damien Miller450a7a12000-03-26 13:04:51 +1000517Specifies whether to pass AFS tokens to remote host.
518The argument to this keyword must be
Damien Miller32aa1441999-10-29 09:15:49 +1000519.Dq yes
520or
521.Dq no .
522.It Cm BatchMode
523If set to
524.Dq yes ,
Damien Miller7684ee12000-03-17 23:40:15 +1100525passphrase/password querying will be disabled.
526This option is useful in scripts and other batch jobs where you have no
527user to supply the password.
528The argument must be
Damien Miller32aa1441999-10-29 09:15:49 +1000529.Dq yes
530or
531.Dq no .
Damien Miller396691a2000-01-20 22:44:08 +1100532.It Cm CheckHostIP
533If this flag is set to
534.Dq yes ,
535ssh will additionally check the host ip address in the
536.Pa known_hosts
Damien Miller450a7a12000-03-26 13:04:51 +1000537file.
538This allows ssh to detect if a host key changed due to DNS spoofing.
Damien Miller396691a2000-01-20 22:44:08 +1100539If the option is set to
540.Dq no ,
541the check will not be executed.
Damien Miller32aa1441999-10-29 09:15:49 +1000542.It Cm Cipher
Damien Miller7684ee12000-03-17 23:40:15 +1100543Specifies the cipher to use for encrypting the session.
544Currently,
Damien Miller32aa1441999-10-29 09:15:49 +1000545.Dq blowfish ,
546and
547.Dq 3des
Damien Miller7684ee12000-03-17 23:40:15 +1100548are supported.
549The default is
Damien Miller32aa1441999-10-29 09:15:49 +1000550.Dq 3des .
551.It Cm Compression
Damien Miller7684ee12000-03-17 23:40:15 +1100552Specifies whether to use compression.
553The argument must be
Damien Miller32aa1441999-10-29 09:15:49 +1000554.Dq yes
555or
556.Dq no .
557.It Cm CompressionLevel
Damien Miller7684ee12000-03-17 23:40:15 +1100558Specifies the compression level to use if compression is enable.
559The argument must be an integer from 1 (fast) to 9 (slow, best).
560The default level is 6, which is good for most applications.
561The meaning of the values is the same as in
Damien Miller396691a2000-01-20 22:44:08 +1100562.Xr gzip 1 .
Damien Miller32aa1441999-10-29 09:15:49 +1000563.It Cm ConnectionAttempts
564Specifies the number of tries (one per second) to make before falling
Damien Miller7684ee12000-03-17 23:40:15 +1100565back to rsh or exiting.
566The argument must be an integer.
567This may be useful in scripts if the connection sometimes fails.
Damien Miller32aa1441999-10-29 09:15:49 +1000568.It Cm EscapeChar
569Sets the escape character (default:
570.Ql ~ ) .
571The escape character can also
Damien Miller7684ee12000-03-17 23:40:15 +1100572be set on the command line.
573The argument should be a single character,
Damien Miller32aa1441999-10-29 09:15:49 +1000574.Ql ^
575followed by a letter, or
576.Dq none
577to disable the escape
578character entirely (making the connection transparent for binary
579data).
580.It Cm FallBackToRsh
581Specifies that if connecting via
582.Nm
583fails due to a connection refused error (there is no
584.Xr sshd 8
585listening on the remote host),
586.Xr rsh 1
587should automatically be used instead (after a suitable warning about
Damien Miller7684ee12000-03-17 23:40:15 +1100588the session being unencrypted).
589The argument must be
Damien Miller32aa1441999-10-29 09:15:49 +1000590.Dq yes
591or
592.Dq no .
593.It Cm ForwardAgent
594Specifies whether the connection to the authentication agent (if any)
Damien Miller7684ee12000-03-17 23:40:15 +1100595will be forwarded to the remote machine.
596The argument must be
Damien Miller32aa1441999-10-29 09:15:49 +1000597.Dq yes
598or
599.Dq no .
600.It Cm ForwardX11
601Specifies whether X11 connections will be automatically redirected
602over the secure channel and
603.Ev DISPLAY
Damien Miller7684ee12000-03-17 23:40:15 +1100604set.
605The argument must be
Damien Miller32aa1441999-10-29 09:15:49 +1000606.Dq yes
607or
608.Dq no .
Damien Miller98c7ad62000-03-09 21:27:49 +1100609The default is
610.Dq no .
Damien Miller32aa1441999-10-29 09:15:49 +1000611.It Cm GatewayPorts
612Specifies whether remote hosts are allowed to connect to local
613forwarded ports.
614The argument must be
615.Dq yes
616or
617.Dq no .
618The default is
619.Dq no .
620.It Cm GlobalKnownHostsFile
621Specifies a file to use instead of
Damien Miller886c63a2000-01-20 23:13:36 +1100622.Pa /etc/ssh_known_hosts .
Damien Miller32aa1441999-10-29 09:15:49 +1000623.It Cm HostName
Damien Miller7684ee12000-03-17 23:40:15 +1100624Specifies the real host name to log into.
625This can be used to specify nicknames or abbreviations for hosts.
626Default is the name given on the command line.
627Numeric IP addresses are also permitted (both on the command line and in
Damien Miller32aa1441999-10-29 09:15:49 +1000628.Cm HostName
629specifications).
630.It Cm IdentityFile
631Specifies the file from which the user's RSA authentication identity
632is read (default
633.Pa .ssh/identity
634in the user's home directory).
635Additionally, any identities represented by the authentication agent
Damien Miller7684ee12000-03-17 23:40:15 +1100636will be used for authentication.
637The file name may use the tilde
638syntax to refer to a user's home directory.
639It is possible to have
Damien Miller32aa1441999-10-29 09:15:49 +1000640multiple identity files specified in configuration files; all these
641identities will be tried in sequence.
642.It Cm KeepAlive
643Specifies whether the system should send keepalive messages to the
Damien Miller7684ee12000-03-17 23:40:15 +1100644other side.
645If they are sent, death of the connection or crash of one
646of the machines will be properly noticed.
647However, this means that
Damien Miller32aa1441999-10-29 09:15:49 +1000648connections will die if the route is down temporarily, and some people
Damien Miller450a7a12000-03-26 13:04:51 +1000649find it annoying.
Damien Miller32aa1441999-10-29 09:15:49 +1000650.Pp
651The default is
652.Dq yes
653(to send keepalives), and the client will notice
Damien Miller7684ee12000-03-17 23:40:15 +1100654if the network goes down or the remote host dies.
655This is important in scripts, and many users want it too.
Damien Miller32aa1441999-10-29 09:15:49 +1000656.Pp
657To disable keepalives, the value should be set to
658.Dq no
659in both the server and the client configuration files.
660.It Cm KerberosAuthentication
Damien Miller450a7a12000-03-26 13:04:51 +1000661Specifies whether Kerberos authentication will be used.
662The argument to this keyword must be
Damien Miller32aa1441999-10-29 09:15:49 +1000663.Dq yes
664or
665.Dq no .
666.It Cm KerberosTgtPassing
Damien Miller450a7a12000-03-26 13:04:51 +1000667Specifies whether a Kerberos TGT will be forwarded to the server.
668This will only work if the Kerberos server is actually an AFS kaserver.
669The argument to this keyword must be
Damien Miller32aa1441999-10-29 09:15:49 +1000670.Dq yes
671or
672.Dq no .
673.It Cm LocalForward
674Specifies that a TCP/IP port on the local machine be forwarded over
Damien Miller7684ee12000-03-17 23:40:15 +1100675the secure channel to given host:port from the remote machine.
676The first argument must be a port number, and the second must be
677host:port.
678Multiple forwardings may be specified, and additional
679forwardings can be given on the command line.
680Only the superuser can forward privileged ports.
Damien Miller5ce662a1999-11-11 17:57:39 +1100681.It Cm LogLevel
682Gives the verbosity level that is used when logging messages from
683.Nm ssh .
684The possible values are:
Damien Miller00d4bb12000-03-03 22:48:49 +1100685QUIET, FATAL, ERROR, INFO, VERBOSE and DEBUG.
Damien Miller5ce662a1999-11-11 17:57:39 +1100686The default is INFO.
Damien Miller32aa1441999-10-29 09:15:49 +1000687.It Cm NumberOfPasswordPrompts
Damien Miller450a7a12000-03-26 13:04:51 +1000688Specifies the number of password prompts before giving up.
689The argument to this keyword must be an integer.
690Default is 3.
Damien Miller396691a2000-01-20 22:44:08 +1100691.It Cm PasswordAuthentication
Damien Miller7684ee12000-03-17 23:40:15 +1100692Specifies whether to use password authentication.
693The argument to this keyword must be
Damien Miller396691a2000-01-20 22:44:08 +1100694.Dq yes
695or
696.Dq no .
Damien Miller32aa1441999-10-29 09:15:49 +1000697.It Cm Port
Damien Miller7684ee12000-03-17 23:40:15 +1100698Specifies the port number to connect on the remote host.
699Default is 22.
Damien Miller32aa1441999-10-29 09:15:49 +1000700.It Cm ProxyCommand
Damien Miller7684ee12000-03-17 23:40:15 +1100701Specifies the command to use to connect to the server.
702The command
703string extends to the end of the line, and is executed with
704.Pa /bin/sh .
705In the command string,
706.Ql %h
707will be substituted by the host name to
708connect and
709.Ql %p
710by the port.
711The command can be basically anything,
712and should read from its standard input and write to its standard output.
713It should eventually connect an
Damien Miller32aa1441999-10-29 09:15:49 +1000714.Xr sshd 8
715server running on some machine, or execute
716.Ic sshd -i
Damien Miller7684ee12000-03-17 23:40:15 +1100717somewhere.
718Host key management will be done using the
Damien Miller32aa1441999-10-29 09:15:49 +1000719HostName of the host being connected (defaulting to the name typed by
720the user).
Damien Milleraae6c611999-12-06 11:47:28 +1100721Note that
722.Cm CheckHostIP
723is not available for connects with a proxy command.
Damien Miller32aa1441999-10-29 09:15:49 +1000724.Pp
725.It Cm RemoteForward
726Specifies that a TCP/IP port on the remote machine be forwarded over
Damien Miller7684ee12000-03-17 23:40:15 +1100727the secure channel to given host:port from the local machine.
728The first argument must be a port number, and the second must be
729host:port.
730Multiple forwardings may be specified, and additional
731forwardings can be given on the command line.
732Only the superuser can forward privileged ports.
Damien Miller32aa1441999-10-29 09:15:49 +1000733.It Cm RhostsAuthentication
Damien Miller7684ee12000-03-17 23:40:15 +1100734Specifies whether to try rhosts based authentication.
735Note that this
Damien Miller32aa1441999-10-29 09:15:49 +1000736declaration only affects the client side and has no effect whatsoever
Damien Miller7684ee12000-03-17 23:40:15 +1100737on security.
738Disabling rhosts authentication may reduce
Damien Miller32aa1441999-10-29 09:15:49 +1000739authentication time on slow connections when rhosts authentication is
Damien Miller7684ee12000-03-17 23:40:15 +1100740not used.
741Most servers do not permit RhostsAuthentication because it
742is not secure (see RhostsRSAAuthentication).
743The argument to this keyword must be
Damien Miller32aa1441999-10-29 09:15:49 +1000744.Dq yes
745or
746.Dq no .
747.It Cm RhostsRSAAuthentication
748Specifies whether to try rhosts based authentication with RSA host
Damien Miller7684ee12000-03-17 23:40:15 +1100749authentication.
750This is the primary authentication method for most sites.
751The argument must be
Damien Miller32aa1441999-10-29 09:15:49 +1000752.Dq yes
753or
754.Dq no .
755.It Cm RSAAuthentication
Damien Miller7684ee12000-03-17 23:40:15 +1100756Specifies whether to try RSA authentication.
757The argument to this keyword must be
Damien Miller32aa1441999-10-29 09:15:49 +1000758.Dq yes
759or
760.Dq no .
761RSA authentication will only be
762attempted if the identity file exists, or an authentication agent is
763running.
Damien Miller95def091999-11-25 00:26:21 +1100764.It Cm SkeyAuthentication
765Specifies whether to use
766.Xr skey 1
Damien Miller7684ee12000-03-17 23:40:15 +1100767authentication.
768The argument to this keyword must be
Damien Miller95def091999-11-25 00:26:21 +1100769.Dq yes
770or
771.Dq no .
772The default is
773.Dq no .
Damien Miller32aa1441999-10-29 09:15:49 +1000774.It Cm StrictHostKeyChecking
775If this flag is set to
776.Dq yes ,
777.Nm
778ssh will never automatically add host keys to the
779.Pa $HOME/.ssh/known_hosts
Damien Miller7684ee12000-03-17 23:40:15 +1100780file, and refuses to connect hosts whose host key has changed.
781This provides maximum protection against trojan horse attacks.
782However, it can be somewhat annoying if you don't have good
Damien Miller886c63a2000-01-20 23:13:36 +1100783.Pa /etc/ssh_known_hosts
Damien Miller32aa1441999-10-29 09:15:49 +1000784files installed and frequently
Damien Miller7684ee12000-03-17 23:40:15 +1100785connect new hosts.
786Basically this option forces the user to manually
787add any new hosts.
788Normally this option is disabled, and new hosts
789will automatically be added to the known host files.
790The host keys of
791known hosts will be verified automatically in either case.
792The argument must be
Damien Miller32aa1441999-10-29 09:15:49 +1000793.Dq yes
794or
795.Dq no .
Damien Miller32aa1441999-10-29 09:15:49 +1000796.It Cm UsePrivilegedPort
797Specifies whether to use a privileged port for outgoing connections.
798The argument must be
799.Dq yes
800or
801.Dq no .
802The default is
803.Dq yes .
804Note that setting this option to
805.Dq no
Damien Millera34a28b1999-12-14 10:47:15 +1100806turns off
Damien Miller32aa1441999-10-29 09:15:49 +1000807.Cm RhostsAuthentication
808and
809.Cm RhostsRSAAuthentication .
Damien Miller396691a2000-01-20 22:44:08 +1100810.It Cm User
Damien Miller7684ee12000-03-17 23:40:15 +1100811Specifies the user to log in as.
812This can be useful if you have a different user name on different machines.
813This saves the trouble of
Damien Miller396691a2000-01-20 22:44:08 +1100814having to remember to give the user name on the command line.
815.It Cm UserKnownHostsFile
816Specifies a file to use instead of
817.Pa $HOME/.ssh/known_hosts .
Damien Miller32aa1441999-10-29 09:15:49 +1000818.It Cm UseRsh
Damien Miller7684ee12000-03-17 23:40:15 +1100819Specifies that rlogin/rsh should be used for this host.
820It is possible that the host does not at all support the
Damien Miller32aa1441999-10-29 09:15:49 +1000821.Nm
Damien Miller7684ee12000-03-17 23:40:15 +1100822protocol.
823This causes
Damien Miller32aa1441999-10-29 09:15:49 +1000824.Nm
Damien Miller7684ee12000-03-17 23:40:15 +1100825to immediately execute
Damien Miller32aa1441999-10-29 09:15:49 +1000826.Xr rsh 1 .
827All other options (except
828.Cm HostName )
Damien Miller7684ee12000-03-17 23:40:15 +1100829are ignored if this has been specified.
830The argument must be
Damien Miller32aa1441999-10-29 09:15:49 +1000831.Dq yes
832or
833.Dq no .
834.Sh ENVIRONMENT
835.Nm
836will normally set the following environment variables:
837.Bl -tag -width Ds
838.It Ev DISPLAY
839The
840.Ev DISPLAY
Damien Miller7684ee12000-03-17 23:40:15 +1100841variable indicates the location of the X11 server.
842It is automatically set by
Damien Miller32aa1441999-10-29 09:15:49 +1000843.Nm
844to point to a value of the form
845.Dq hostname:n
846where hostname indicates
Damien Miller7684ee12000-03-17 23:40:15 +1100847the host where the shell runs, and n is an integer >= 1.
848.Nm
849uses this special value to forward X11 connections over the secure
850channel.
851The user should normally not set DISPLAY explicitly, as that
Damien Miller32aa1441999-10-29 09:15:49 +1000852will render the X11 connection insecure (and will require the user to
853manually copy any required authorization cookies).
854.It Ev HOME
855Set to the path of the user's home directory.
856.It Ev LOGNAME
857Synonym for
858.Ev USER ;
859set for compatibility with systems that use this variable.
860.It Ev MAIL
861Set to point the user's mailbox.
Damien Miller7684ee12000-03-17 23:40:15 +1100862.It Ev PATH
Damien Miller32aa1441999-10-29 09:15:49 +1000863Set to the default
864.Ev PATH ,
865as specified when compiling
866.Nm ssh .
867.It Ev SSH_AUTH_SOCK
868indicates the path of a unix-domain socket used to communicate with the
869agent.
870.It Ev SSH_CLIENT
Damien Miller7684ee12000-03-17 23:40:15 +1100871Identifies the client end of the connection.
872The variable contains
Damien Miller32aa1441999-10-29 09:15:49 +1000873three space-separated values: client ip-address, client port number,
874and server port number.
875.It Ev SSH_TTY
876This is set to the name of the tty (path to the device) associated
Damien Miller7684ee12000-03-17 23:40:15 +1100877with the current shell or command.
878If the current session has no tty,
Damien Miller32aa1441999-10-29 09:15:49 +1000879this variable is not set.
880.It Ev TZ
881The timezone variable is set to indicate the present timezone if it
882was set when the daemon was started (e.i., the daemon passes the value
883on to new connections).
884.It Ev USER
885Set to the name of the user logging in.
886.El
887.Pp
888Additionally,
889.Nm
890reads
891.Pa $HOME/.ssh/environment ,
892and adds lines of the format
893.Dq VARNAME=value
894to the environment.
895.Sh FILES
Damien Miller98c7ad62000-03-09 21:27:49 +1100896.Bl -tag -width Ds
Damien Miller32aa1441999-10-29 09:15:49 +1000897.It Pa $HOME/.ssh/known_hosts
898Records host keys for all hosts the user has logged into (that are not
899in
Damien Miller886c63a2000-01-20 23:13:36 +1100900.Pa /etc/ssh_known_hosts ) .
Damien Miller32aa1441999-10-29 09:15:49 +1000901See
902.Xr sshd 8 .
Damien Miller32aa1441999-10-29 09:15:49 +1000903.It Pa $HOME/.ssh/identity
Damien Miller7684ee12000-03-17 23:40:15 +1100904Contains the RSA authentication identity of the user.
905This file
Damien Miller32aa1441999-10-29 09:15:49 +1000906contains sensitive data and should be readable by the user but not
907accessible by others (read/write/execute).
908Note that
909.Nm
910ignores this file if it is accessible by others.
911It is possible to specify a passphrase when
912generating the key; the passphrase will be used to encrypt the
913sensitive part of this file using 3DES.
914.It Pa $HOME/.ssh/identity.pub
915Contains the public key for authentication (public part of the
Damien Miller7684ee12000-03-17 23:40:15 +1100916identity file in human-readable form).
917The contents of this file should be added to
Damien Miller32aa1441999-10-29 09:15:49 +1000918.Pa $HOME/.ssh/authorized_keys
919on all machines
Damien Miller7684ee12000-03-17 23:40:15 +1100920where you wish to log in using RSA authentication.
921This file is not
922sensitive and can (but need not) be readable by anyone.
923This file is
Damien Miller32aa1441999-10-29 09:15:49 +1000924never used automatically and is not necessary; it is only provided for
925the convenience of the user.
926.It Pa $HOME/.ssh/config
Damien Miller7684ee12000-03-17 23:40:15 +1100927This is the per-user configuration file.
928The format of this file is described above.
929This file is used by the
Damien Miller32aa1441999-10-29 09:15:49 +1000930.Nm
Damien Miller7684ee12000-03-17 23:40:15 +1100931client.
932This file does not usually contain any sensitive information,
Damien Miller32aa1441999-10-29 09:15:49 +1000933but the recommended permissions are read/write for the user, and not
934accessible by others.
935.It Pa $HOME/.ssh/authorized_keys
Damien Miller7684ee12000-03-17 23:40:15 +1100936Lists the RSA keys that can be used for logging in as this user.
937The format of this file is described in the
Damien Miller32aa1441999-10-29 09:15:49 +1000938.Xr sshd 8
Damien Miller7684ee12000-03-17 23:40:15 +1100939manual page.
940In the simplest form the format is the same as the .pub
Damien Miller32aa1441999-10-29 09:15:49 +1000941identity files (that is, each line contains the number of bits in
942modulus, public exponent, modulus, and comment fields, separated by
Damien Miller7684ee12000-03-17 23:40:15 +1100943spaces).
944This file is not highly sensitive, but the recommended
Damien Miller32aa1441999-10-29 09:15:49 +1000945permissions are read/write for the user, and not accessible by others.
Damien Miller886c63a2000-01-20 23:13:36 +1100946.It Pa /etc/ssh_known_hosts
Damien Miller7684ee12000-03-17 23:40:15 +1100947Systemwide list of known host keys.
948This file should be prepared by the
Damien Miller32aa1441999-10-29 09:15:49 +1000949system administrator to contain the public host keys of all machines in the
Damien Miller7684ee12000-03-17 23:40:15 +1100950organization.
951This file should be world-readable.
952This file contains
Damien Miller32aa1441999-10-29 09:15:49 +1000953public keys, one per line, in the following format (fields separated
954by spaces): system name, number of bits in modulus, public exponent,
Damien Miller7684ee12000-03-17 23:40:15 +1100955modulus, and optional comment field.
956When different names are used
Damien Miller32aa1441999-10-29 09:15:49 +1000957for the same machine, all such names should be listed, separated by
Damien Miller7684ee12000-03-17 23:40:15 +1100958commas.
959The format is described on the
Damien Miller32aa1441999-10-29 09:15:49 +1000960.Xr sshd 8
961manual page.
962.Pp
963The canonical system name (as returned by name servers) is used by
964.Xr sshd 8
965to verify the client host when logging in; other names are needed because
966.Nm
967does not convert the user-supplied name to a canonical name before
968checking the key, because someone with access to the name servers
969would then be able to fool host authentication.
Damien Miller886c63a2000-01-20 23:13:36 +1100970.It Pa /etc/ssh_config
Damien Miller7684ee12000-03-17 23:40:15 +1100971Systemwide configuration file.
972This file provides defaults for those
Damien Miller32aa1441999-10-29 09:15:49 +1000973values that are not specified in the user's configuration file, and
Damien Miller7684ee12000-03-17 23:40:15 +1100974for those users who do not have a configuration file.
975This file must be world-readable.
Damien Miller32aa1441999-10-29 09:15:49 +1000976.It Pa $HOME/.rhosts
977This file is used in
978.Pa \&.rhosts
979authentication to list the
Damien Miller7684ee12000-03-17 23:40:15 +1100980host/user pairs that are permitted to log in.
981(Note that this file is
Damien Miller32aa1441999-10-29 09:15:49 +1000982also used by rlogin and rsh, which makes using this file insecure.)
983Each line of the file contains a host name (in the canonical form
984returned by name servers), and then a user name on that host,
Damien Miller7684ee12000-03-17 23:40:15 +1100985separated by a space.
986One some machines this file may need to be
Damien Miller32aa1441999-10-29 09:15:49 +1000987world-readable if the user's home directory is on a NFS partition,
988because
989.Xr sshd 8
Damien Miller7684ee12000-03-17 23:40:15 +1100990reads it as root.
991Additionally, this file must be owned by the user,
992and must not have write permissions for anyone else.
993The recommended
Damien Miller32aa1441999-10-29 09:15:49 +1000994permission for most machines is read/write for the user, and not
995accessible by others.
996.Pp
997Note that by default
998.Xr sshd 8
999will be installed so that it requires successful RSA host
Damien Miller7684ee12000-03-17 23:40:15 +11001000authentication before permitting \s+2.\s0rhosts authentication.
1001If your server machine does not have the client's host key in
Damien Miller886c63a2000-01-20 23:13:36 +11001002.Pa /etc/ssh_known_hosts ,
Damien Miller32aa1441999-10-29 09:15:49 +10001003you can store it in
1004.Pa $HOME/.ssh/known_hosts .
1005The easiest way to do this is to
1006connect back to the client from the server machine using ssh; this
1007will automatically add the host key inxi
1008.Pa $HOME/.ssh/known_hosts .
1009.It Pa $HOME/.shosts
1010This file is used exactly the same way as
1011.Pa \&.rhosts .
1012The purpose for
1013having this file is to be able to use rhosts authentication with
1014.Nm
1015without permitting login with
1016.Xr rlogin 1
1017or
1018.Xr rsh 1 .
1019.It Pa /etc/hosts.equiv
1020This file is used during
Damien Miller7684ee12000-03-17 23:40:15 +11001021.Pa \&.rhosts authentication.
1022It contains
Damien Miller32aa1441999-10-29 09:15:49 +10001023canonical hosts names, one per line (the full format is described on
1024the
1025.Xr sshd 8
Damien Miller7684ee12000-03-17 23:40:15 +11001026manual page).
1027If the client host is found in this file, login is
Damien Miller32aa1441999-10-29 09:15:49 +10001028automatically permitted provided client and server user names are the
Damien Miller7684ee12000-03-17 23:40:15 +11001029same.
1030Additionally, successful RSA host authentication is normally
1031required.
1032This file should only be writable by root.
Damien Miller886c63a2000-01-20 23:13:36 +11001033.It Pa /etc/shosts.equiv
Damien Miller32aa1441999-10-29 09:15:49 +10001034This file is processed exactly as
1035.Pa /etc/hosts.equiv .
1036This file may be useful to permit logins using
1037.Nm
1038but not using rsh/rlogin.
Damien Miller886c63a2000-01-20 23:13:36 +11001039.It Pa /etc/sshrc
Damien Miller32aa1441999-10-29 09:15:49 +10001040Commands in this file are executed by
1041.Nm
1042when the user logs in just before the user's shell (or command) is started.
1043See the
1044.Xr sshd 8
1045manual page for more information.
1046.It Pa $HOME/.ssh/rc
1047Commands in this file are executed by
1048.Nm
1049when the user logs in just before the user's shell (or command) is
1050started.
1051See the
1052.Xr sshd 8
1053manual page for more information.
Damien Miller4f0fa561999-12-26 14:24:41 +11001054.It Pa $HOME/.ssh/environment
1055Contains additional definitions for environment variables, see section
1056.Sx ENVIRONMENT
1057above.
Damien Miller32aa1441999-10-29 09:15:49 +10001058.It Pa libcrypto.so.X.1
1059A version of this library which includes support for the RSA algorithm
1060is required for proper operation.
1061.Sh AUTHOR
Damien Miller32aa1441999-10-29 09:15:49 +10001062OpenSSH
Damien Miller98c7ad62000-03-09 21:27:49 +11001063is a derivative of the original (free) ssh 1.2.12 release by Tatu Ylonen,
Damien Miller7684ee12000-03-17 23:40:15 +11001064but with bugs removed and newer features re-added.
1065Rapidly after the
Damien Miller98c7ad62000-03-09 21:27:49 +110010661.2.12 release, newer versions of the original ssh bore successively
1067more restrictive licenses, and thus demand for a free version was born.
1068This version of OpenSSH
Damien Miller32aa1441999-10-29 09:15:49 +10001069.Bl -bullet
1070.It
Damien Miller14537852000-01-22 19:57:40 +11001071has all components of a restrictive nature (i.e., patents, see
Damien Miller32aa1441999-10-29 09:15:49 +10001072.Xr ssl 8 )
1073directly removed from the source code; any licensed or patented components
1074are chosen from
1075external libraries.
1076.It
Damien Miller98c7ad62000-03-09 21:27:49 +11001077has been updated to support ssh protocol 1.5, making it compatible with
1078all other ssh protocol 1 clients and servers.
Damien Miller32aa1441999-10-29 09:15:49 +10001079.It
1080contains added support for
1081.Xr kerberos 8
1082authentication and ticket passing.
1083.It
1084supports one-time password authentication with
1085.Xr skey 1 .
1086.El
1087.Pp
1088The libraries described in
1089.Xr ssl 8
1090are required for proper operation.
Damien Miller10f6f6b1999-11-17 17:29:08 +11001091.Pp
Damien Miller6ee95641999-11-18 11:35:13 +11001092OpenSSH has been created by Aaron Campbell, Bob Beck, Markus Friedl,
Damien Miller10f6f6b1999-11-17 17:29:08 +11001093Niels Provos, Theo de Raadt, and Dug Song.
Damien Miller32aa1441999-10-29 09:15:49 +10001094.Sh SEE ALSO
1095.Xr rlogin 1 ,
1096.Xr rsh 1 ,
1097.Xr scp 1 ,
1098.Xr ssh-add 1 ,
1099.Xr ssh-agent 1 ,
1100.Xr ssh-keygen 1 ,
1101.Xr telnet 1 ,
1102.Xr sshd 8 ,
1103.Xr ssl 8