blob: 0116977b6c86c8ae55e1ed421c4a3e32beb36ee2 [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 Miller7684ee12000-03-17 23:40:15 +110012.\" $Id: ssh.1,v 1.19 2000/03/17 12:40:17 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
290Disables forwarding of the authentication agent connection. This may
291also be specified on a per-host basis in the configuration file.
292.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
345Disables forwarding of Kerberos tickets and AFS tokens. This may
346also be specified on a per-host basis in the configuration file.
347.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.
393This can be used to execute arbitary
394screen-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
517Specifies whether to pass AFS tokens to remote host. The argument to
518this keyword must be
519.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
537file. This allows ssh to detect if a host key changed due to DNS spoofing.
538If the option is set to
539.Dq no ,
540the check will not be executed.
Damien Miller32aa1441999-10-29 09:15:49 +1000541.It Cm Cipher
Damien Miller7684ee12000-03-17 23:40:15 +1100542Specifies the cipher to use for encrypting the session.
543Currently,
Damien Miller32aa1441999-10-29 09:15:49 +1000544.Dq blowfish ,
545and
546.Dq 3des
Damien Miller7684ee12000-03-17 23:40:15 +1100547are supported.
548The default is
Damien Miller32aa1441999-10-29 09:15:49 +1000549.Dq 3des .
550.It Cm Compression
Damien Miller7684ee12000-03-17 23:40:15 +1100551Specifies whether to use compression.
552The argument must be
Damien Miller32aa1441999-10-29 09:15:49 +1000553.Dq yes
554or
555.Dq no .
556.It Cm CompressionLevel
Damien Miller7684ee12000-03-17 23:40:15 +1100557Specifies the compression level to use if compression is enable.
558The argument must be an integer from 1 (fast) to 9 (slow, best).
559The default level is 6, which is good for most applications.
560The meaning of the values is the same as in
Damien Miller396691a2000-01-20 22:44:08 +1100561.Xr gzip 1 .
Damien Miller32aa1441999-10-29 09:15:49 +1000562.It Cm ConnectionAttempts
563Specifies the number of tries (one per second) to make before falling
Damien Miller7684ee12000-03-17 23:40:15 +1100564back to rsh or exiting.
565The argument must be an integer.
566This may be useful in scripts if the connection sometimes fails.
Damien Miller32aa1441999-10-29 09:15:49 +1000567.It Cm EscapeChar
568Sets the escape character (default:
569.Ql ~ ) .
570The escape character can also
Damien Miller7684ee12000-03-17 23:40:15 +1100571be set on the command line.
572The argument should be a single character,
Damien Miller32aa1441999-10-29 09:15:49 +1000573.Ql ^
574followed by a letter, or
575.Dq none
576to disable the escape
577character entirely (making the connection transparent for binary
578data).
579.It Cm FallBackToRsh
580Specifies that if connecting via
581.Nm
582fails due to a connection refused error (there is no
583.Xr sshd 8
584listening on the remote host),
585.Xr rsh 1
586should automatically be used instead (after a suitable warning about
Damien Miller7684ee12000-03-17 23:40:15 +1100587the session being unencrypted).
588The argument must be
Damien Miller32aa1441999-10-29 09:15:49 +1000589.Dq yes
590or
591.Dq no .
592.It Cm ForwardAgent
593Specifies whether the connection to the authentication agent (if any)
Damien Miller7684ee12000-03-17 23:40:15 +1100594will be forwarded to the remote machine.
595The argument must be
Damien Miller32aa1441999-10-29 09:15:49 +1000596.Dq yes
597or
598.Dq no .
599.It Cm ForwardX11
600Specifies whether X11 connections will be automatically redirected
601over the secure channel and
602.Ev DISPLAY
Damien Miller7684ee12000-03-17 23:40:15 +1100603set.
604The argument must be
Damien Miller32aa1441999-10-29 09:15:49 +1000605.Dq yes
606or
607.Dq no .
Damien Miller98c7ad62000-03-09 21:27:49 +1100608The default is
609.Dq no .
Damien Miller32aa1441999-10-29 09:15:49 +1000610.It Cm GatewayPorts
611Specifies whether remote hosts are allowed to connect to local
612forwarded ports.
613The argument must be
614.Dq yes
615or
616.Dq no .
617The default is
618.Dq no .
619.It Cm GlobalKnownHostsFile
620Specifies a file to use instead of
Damien Miller886c63a2000-01-20 23:13:36 +1100621.Pa /etc/ssh_known_hosts .
Damien Miller32aa1441999-10-29 09:15:49 +1000622.It Cm HostName
Damien Miller7684ee12000-03-17 23:40:15 +1100623Specifies the real host name to log into.
624This can be used to specify nicknames or abbreviations for hosts.
625Default is the name given on the command line.
626Numeric IP addresses are also permitted (both on the command line and in
Damien Miller32aa1441999-10-29 09:15:49 +1000627.Cm HostName
628specifications).
629.It Cm IdentityFile
630Specifies the file from which the user's RSA authentication identity
631is read (default
632.Pa .ssh/identity
633in the user's home directory).
634Additionally, any identities represented by the authentication agent
Damien Miller7684ee12000-03-17 23:40:15 +1100635will be used for authentication.
636The file name may use the tilde
637syntax to refer to a user's home directory.
638It is possible to have
Damien Miller32aa1441999-10-29 09:15:49 +1000639multiple identity files specified in configuration files; all these
640identities will be tried in sequence.
641.It Cm KeepAlive
642Specifies whether the system should send keepalive messages to the
Damien Miller7684ee12000-03-17 23:40:15 +1100643other side.
644If they are sent, death of the connection or crash of one
645of the machines will be properly noticed.
646However, this means that
Damien Miller32aa1441999-10-29 09:15:49 +1000647connections will die if the route is down temporarily, and some people
648find it annoying.
649.Pp
650The default is
651.Dq yes
652(to send keepalives), and the client will notice
Damien Miller7684ee12000-03-17 23:40:15 +1100653if the network goes down or the remote host dies.
654This is important in scripts, and many users want it too.
Damien Miller32aa1441999-10-29 09:15:49 +1000655.Pp
656To disable keepalives, the value should be set to
657.Dq no
658in both the server and the client configuration files.
659.It Cm KerberosAuthentication
660Specifies whether Kerberos authentication will be used. The argument to
661this keyword must be
662.Dq yes
663or
664.Dq no .
665.It Cm KerberosTgtPassing
666Specifies whether a Kerberos TGT will be forwarded to the server. This
667will only work if the Kerberos server is actually an AFS kaserver. The
668argument to this keyword must be
669.Dq yes
670or
671.Dq no .
672.It Cm LocalForward
673Specifies that a TCP/IP port on the local machine be forwarded over
Damien Miller7684ee12000-03-17 23:40:15 +1100674the secure channel to given host:port from the remote machine.
675The first argument must be a port number, and the second must be
676host:port.
677Multiple forwardings may be specified, and additional
678forwardings can be given on the command line.
679Only the superuser can forward privileged ports.
Damien Miller5ce662a1999-11-11 17:57:39 +1100680.It Cm LogLevel
681Gives the verbosity level that is used when logging messages from
682.Nm ssh .
683The possible values are:
Damien Miller00d4bb12000-03-03 22:48:49 +1100684QUIET, FATAL, ERROR, INFO, VERBOSE and DEBUG.
Damien Miller5ce662a1999-11-11 17:57:39 +1100685The default is INFO.
Damien Miller32aa1441999-10-29 09:15:49 +1000686.It Cm NumberOfPasswordPrompts
687Specifies the number of password prompts before giving up. The
688argument to this keyword must be an integer. Default is 3.
Damien Miller396691a2000-01-20 22:44:08 +1100689.It Cm PasswordAuthentication
Damien Miller7684ee12000-03-17 23:40:15 +1100690Specifies whether to use password authentication.
691The argument to this keyword must be
Damien Miller396691a2000-01-20 22:44:08 +1100692.Dq yes
693or
694.Dq no .
Damien Miller32aa1441999-10-29 09:15:49 +1000695.It Cm Port
Damien Miller7684ee12000-03-17 23:40:15 +1100696Specifies the port number to connect on the remote host.
697Default is 22.
Damien Miller32aa1441999-10-29 09:15:49 +1000698.It Cm ProxyCommand
Damien Miller7684ee12000-03-17 23:40:15 +1100699Specifies the command to use to connect to the server.
700The command
701string extends to the end of the line, and is executed with
702.Pa /bin/sh .
703In the command string,
704.Ql %h
705will be substituted by the host name to
706connect and
707.Ql %p
708by the port.
709The command can be basically anything,
710and should read from its standard input and write to its standard output.
711It should eventually connect an
Damien Miller32aa1441999-10-29 09:15:49 +1000712.Xr sshd 8
713server running on some machine, or execute
714.Ic sshd -i
Damien Miller7684ee12000-03-17 23:40:15 +1100715somewhere.
716Host key management will be done using the
Damien Miller32aa1441999-10-29 09:15:49 +1000717HostName of the host being connected (defaulting to the name typed by
718the user).
Damien Milleraae6c611999-12-06 11:47:28 +1100719Note that
720.Cm CheckHostIP
721is not available for connects with a proxy command.
Damien Miller32aa1441999-10-29 09:15:49 +1000722.Pp
723.It Cm RemoteForward
724Specifies that a TCP/IP port on the remote machine be forwarded over
Damien Miller7684ee12000-03-17 23:40:15 +1100725the secure channel to given host:port from the local machine.
726The first argument must be a port number, and the second must be
727host:port.
728Multiple forwardings may be specified, and additional
729forwardings can be given on the command line.
730Only the superuser can forward privileged ports.
Damien Miller32aa1441999-10-29 09:15:49 +1000731.It Cm RhostsAuthentication
Damien Miller7684ee12000-03-17 23:40:15 +1100732Specifies whether to try rhosts based authentication.
733Note that this
Damien Miller32aa1441999-10-29 09:15:49 +1000734declaration only affects the client side and has no effect whatsoever
Damien Miller7684ee12000-03-17 23:40:15 +1100735on security.
736Disabling rhosts authentication may reduce
Damien Miller32aa1441999-10-29 09:15:49 +1000737authentication time on slow connections when rhosts authentication is
Damien Miller7684ee12000-03-17 23:40:15 +1100738not used.
739Most servers do not permit RhostsAuthentication because it
740is not secure (see RhostsRSAAuthentication).
741The argument to this keyword must be
Damien Miller32aa1441999-10-29 09:15:49 +1000742.Dq yes
743or
744.Dq no .
745.It Cm RhostsRSAAuthentication
746Specifies whether to try rhosts based authentication with RSA host
Damien Miller7684ee12000-03-17 23:40:15 +1100747authentication.
748This is the primary authentication method for most sites.
749The argument must be
Damien Miller32aa1441999-10-29 09:15:49 +1000750.Dq yes
751or
752.Dq no .
753.It Cm RSAAuthentication
Damien Miller7684ee12000-03-17 23:40:15 +1100754Specifies whether to try RSA authentication.
755The argument to this keyword must be
Damien Miller32aa1441999-10-29 09:15:49 +1000756.Dq yes
757or
758.Dq no .
759RSA authentication will only be
760attempted if the identity file exists, or an authentication agent is
761running.
Damien Miller95def091999-11-25 00:26:21 +1100762.It Cm SkeyAuthentication
763Specifies whether to use
764.Xr skey 1
Damien Miller7684ee12000-03-17 23:40:15 +1100765authentication.
766The argument to this keyword must be
Damien Miller95def091999-11-25 00:26:21 +1100767.Dq yes
768or
769.Dq no .
770The default is
771.Dq no .
Damien Miller32aa1441999-10-29 09:15:49 +1000772.It Cm StrictHostKeyChecking
773If this flag is set to
774.Dq yes ,
775.Nm
776ssh will never automatically add host keys to the
777.Pa $HOME/.ssh/known_hosts
Damien Miller7684ee12000-03-17 23:40:15 +1100778file, and refuses to connect hosts whose host key has changed.
779This provides maximum protection against trojan horse attacks.
780However, it can be somewhat annoying if you don't have good
Damien Miller886c63a2000-01-20 23:13:36 +1100781.Pa /etc/ssh_known_hosts
Damien Miller32aa1441999-10-29 09:15:49 +1000782files installed and frequently
Damien Miller7684ee12000-03-17 23:40:15 +1100783connect new hosts.
784Basically this option forces the user to manually
785add any new hosts.
786Normally this option is disabled, and new hosts
787will automatically be added to the known host files.
788The host keys of
789known hosts will be verified automatically in either case.
790The argument must be
Damien Miller32aa1441999-10-29 09:15:49 +1000791.Dq yes
792or
793.Dq no .
Damien Miller32aa1441999-10-29 09:15:49 +1000794.It Cm UsePrivilegedPort
795Specifies whether to use a privileged port for outgoing connections.
796The argument must be
797.Dq yes
798or
799.Dq no .
800The default is
801.Dq yes .
802Note that setting this option to
803.Dq no
Damien Millera34a28b1999-12-14 10:47:15 +1100804turns off
Damien Miller32aa1441999-10-29 09:15:49 +1000805.Cm RhostsAuthentication
806and
807.Cm RhostsRSAAuthentication .
Damien Miller396691a2000-01-20 22:44:08 +1100808.It Cm User
Damien Miller7684ee12000-03-17 23:40:15 +1100809Specifies the user to log in as.
810This can be useful if you have a different user name on different machines.
811This saves the trouble of
Damien Miller396691a2000-01-20 22:44:08 +1100812having to remember to give the user name on the command line.
813.It Cm UserKnownHostsFile
814Specifies a file to use instead of
815.Pa $HOME/.ssh/known_hosts .
Damien Miller32aa1441999-10-29 09:15:49 +1000816.It Cm UseRsh
Damien Miller7684ee12000-03-17 23:40:15 +1100817Specifies that rlogin/rsh should be used for this host.
818It is possible that the host does not at all support the
Damien Miller32aa1441999-10-29 09:15:49 +1000819.Nm
Damien Miller7684ee12000-03-17 23:40:15 +1100820protocol.
821This causes
Damien Miller32aa1441999-10-29 09:15:49 +1000822.Nm
Damien Miller7684ee12000-03-17 23:40:15 +1100823to immediately execute
Damien Miller32aa1441999-10-29 09:15:49 +1000824.Xr rsh 1 .
825All other options (except
826.Cm HostName )
Damien Miller7684ee12000-03-17 23:40:15 +1100827are ignored if this has been specified.
828The argument must be
Damien Miller32aa1441999-10-29 09:15:49 +1000829.Dq yes
830or
831.Dq no .
832.Sh ENVIRONMENT
833.Nm
834will normally set the following environment variables:
835.Bl -tag -width Ds
836.It Ev DISPLAY
837The
838.Ev DISPLAY
Damien Miller7684ee12000-03-17 23:40:15 +1100839variable indicates the location of the X11 server.
840It is automatically set by
Damien Miller32aa1441999-10-29 09:15:49 +1000841.Nm
842to point to a value of the form
843.Dq hostname:n
844where hostname indicates
Damien Miller7684ee12000-03-17 23:40:15 +1100845the host where the shell runs, and n is an integer >= 1.
846.Nm
847uses this special value to forward X11 connections over the secure
848channel.
849The user should normally not set DISPLAY explicitly, as that
Damien Miller32aa1441999-10-29 09:15:49 +1000850will render the X11 connection insecure (and will require the user to
851manually copy any required authorization cookies).
852.It Ev HOME
853Set to the path of the user's home directory.
854.It Ev LOGNAME
855Synonym for
856.Ev USER ;
857set for compatibility with systems that use this variable.
858.It Ev MAIL
859Set to point the user's mailbox.
Damien Miller7684ee12000-03-17 23:40:15 +1100860.It Ev PATH
Damien Miller32aa1441999-10-29 09:15:49 +1000861Set to the default
862.Ev PATH ,
863as specified when compiling
864.Nm ssh .
865.It Ev SSH_AUTH_SOCK
866indicates the path of a unix-domain socket used to communicate with the
867agent.
868.It Ev SSH_CLIENT
Damien Miller7684ee12000-03-17 23:40:15 +1100869Identifies the client end of the connection.
870The variable contains
Damien Miller32aa1441999-10-29 09:15:49 +1000871three space-separated values: client ip-address, client port number,
872and server port number.
873.It Ev SSH_TTY
874This is set to the name of the tty (path to the device) associated
Damien Miller7684ee12000-03-17 23:40:15 +1100875with the current shell or command.
876If the current session has no tty,
Damien Miller32aa1441999-10-29 09:15:49 +1000877this variable is not set.
878.It Ev TZ
879The timezone variable is set to indicate the present timezone if it
880was set when the daemon was started (e.i., the daemon passes the value
881on to new connections).
882.It Ev USER
883Set to the name of the user logging in.
884.El
885.Pp
886Additionally,
887.Nm
888reads
889.Pa $HOME/.ssh/environment ,
890and adds lines of the format
891.Dq VARNAME=value
892to the environment.
893.Sh FILES
Damien Miller98c7ad62000-03-09 21:27:49 +1100894.Bl -tag -width Ds
Damien Miller32aa1441999-10-29 09:15:49 +1000895.It Pa $HOME/.ssh/known_hosts
896Records host keys for all hosts the user has logged into (that are not
897in
Damien Miller886c63a2000-01-20 23:13:36 +1100898.Pa /etc/ssh_known_hosts ) .
Damien Miller32aa1441999-10-29 09:15:49 +1000899See
900.Xr sshd 8 .
Damien Miller32aa1441999-10-29 09:15:49 +1000901.It Pa $HOME/.ssh/identity
Damien Miller7684ee12000-03-17 23:40:15 +1100902Contains the RSA authentication identity of the user.
903This file
Damien Miller32aa1441999-10-29 09:15:49 +1000904contains sensitive data and should be readable by the user but not
905accessible by others (read/write/execute).
906Note that
907.Nm
908ignores this file if it is accessible by others.
909It is possible to specify a passphrase when
910generating the key; the passphrase will be used to encrypt the
911sensitive part of this file using 3DES.
912.It Pa $HOME/.ssh/identity.pub
913Contains the public key for authentication (public part of the
Damien Miller7684ee12000-03-17 23:40:15 +1100914identity file in human-readable form).
915The contents of this file should be added to
Damien Miller32aa1441999-10-29 09:15:49 +1000916.Pa $HOME/.ssh/authorized_keys
917on all machines
Damien Miller7684ee12000-03-17 23:40:15 +1100918where you wish to log in using RSA authentication.
919This file is not
920sensitive and can (but need not) be readable by anyone.
921This file is
Damien Miller32aa1441999-10-29 09:15:49 +1000922never used automatically and is not necessary; it is only provided for
923the convenience of the user.
924.It Pa $HOME/.ssh/config
Damien Miller7684ee12000-03-17 23:40:15 +1100925This is the per-user configuration file.
926The format of this file is described above.
927This file is used by the
Damien Miller32aa1441999-10-29 09:15:49 +1000928.Nm
Damien Miller7684ee12000-03-17 23:40:15 +1100929client.
930This file does not usually contain any sensitive information,
Damien Miller32aa1441999-10-29 09:15:49 +1000931but the recommended permissions are read/write for the user, and not
932accessible by others.
933.It Pa $HOME/.ssh/authorized_keys
Damien Miller7684ee12000-03-17 23:40:15 +1100934Lists the RSA keys that can be used for logging in as this user.
935The format of this file is described in the
Damien Miller32aa1441999-10-29 09:15:49 +1000936.Xr sshd 8
Damien Miller7684ee12000-03-17 23:40:15 +1100937manual page.
938In the simplest form the format is the same as the .pub
Damien Miller32aa1441999-10-29 09:15:49 +1000939identity files (that is, each line contains the number of bits in
940modulus, public exponent, modulus, and comment fields, separated by
Damien Miller7684ee12000-03-17 23:40:15 +1100941spaces).
942This file is not highly sensitive, but the recommended
Damien Miller32aa1441999-10-29 09:15:49 +1000943permissions are read/write for the user, and not accessible by others.
Damien Miller886c63a2000-01-20 23:13:36 +1100944.It Pa /etc/ssh_known_hosts
Damien Miller7684ee12000-03-17 23:40:15 +1100945Systemwide list of known host keys.
946This file should be prepared by the
Damien Miller32aa1441999-10-29 09:15:49 +1000947system administrator to contain the public host keys of all machines in the
Damien Miller7684ee12000-03-17 23:40:15 +1100948organization.
949This file should be world-readable.
950This file contains
Damien Miller32aa1441999-10-29 09:15:49 +1000951public keys, one per line, in the following format (fields separated
952by spaces): system name, number of bits in modulus, public exponent,
Damien Miller7684ee12000-03-17 23:40:15 +1100953modulus, and optional comment field.
954When different names are used
Damien Miller32aa1441999-10-29 09:15:49 +1000955for the same machine, all such names should be listed, separated by
Damien Miller7684ee12000-03-17 23:40:15 +1100956commas.
957The format is described on the
Damien Miller32aa1441999-10-29 09:15:49 +1000958.Xr sshd 8
959manual page.
960.Pp
961The canonical system name (as returned by name servers) is used by
962.Xr sshd 8
963to verify the client host when logging in; other names are needed because
964.Nm
965does not convert the user-supplied name to a canonical name before
966checking the key, because someone with access to the name servers
967would then be able to fool host authentication.
Damien Miller886c63a2000-01-20 23:13:36 +1100968.It Pa /etc/ssh_config
Damien Miller7684ee12000-03-17 23:40:15 +1100969Systemwide configuration file.
970This file provides defaults for those
Damien Miller32aa1441999-10-29 09:15:49 +1000971values that are not specified in the user's configuration file, and
Damien Miller7684ee12000-03-17 23:40:15 +1100972for those users who do not have a configuration file.
973This file must be world-readable.
Damien Miller32aa1441999-10-29 09:15:49 +1000974.It Pa $HOME/.rhosts
975This file is used in
976.Pa \&.rhosts
977authentication to list the
Damien Miller7684ee12000-03-17 23:40:15 +1100978host/user pairs that are permitted to log in.
979(Note that this file is
Damien Miller32aa1441999-10-29 09:15:49 +1000980also used by rlogin and rsh, which makes using this file insecure.)
981Each line of the file contains a host name (in the canonical form
982returned by name servers), and then a user name on that host,
Damien Miller7684ee12000-03-17 23:40:15 +1100983separated by a space.
984One some machines this file may need to be
Damien Miller32aa1441999-10-29 09:15:49 +1000985world-readable if the user's home directory is on a NFS partition,
986because
987.Xr sshd 8
Damien Miller7684ee12000-03-17 23:40:15 +1100988reads it as root.
989Additionally, this file must be owned by the user,
990and must not have write permissions for anyone else.
991The recommended
Damien Miller32aa1441999-10-29 09:15:49 +1000992permission for most machines is read/write for the user, and not
993accessible by others.
994.Pp
995Note that by default
996.Xr sshd 8
997will be installed so that it requires successful RSA host
Damien Miller7684ee12000-03-17 23:40:15 +1100998authentication before permitting \s+2.\s0rhosts authentication.
999If your server machine does not have the client's host key in
Damien Miller886c63a2000-01-20 23:13:36 +11001000.Pa /etc/ssh_known_hosts ,
Damien Miller32aa1441999-10-29 09:15:49 +10001001you can store it in
1002.Pa $HOME/.ssh/known_hosts .
1003The easiest way to do this is to
1004connect back to the client from the server machine using ssh; this
1005will automatically add the host key inxi
1006.Pa $HOME/.ssh/known_hosts .
1007.It Pa $HOME/.shosts
1008This file is used exactly the same way as
1009.Pa \&.rhosts .
1010The purpose for
1011having this file is to be able to use rhosts authentication with
1012.Nm
1013without permitting login with
1014.Xr rlogin 1
1015or
1016.Xr rsh 1 .
1017.It Pa /etc/hosts.equiv
1018This file is used during
Damien Miller7684ee12000-03-17 23:40:15 +11001019.Pa \&.rhosts authentication.
1020It contains
Damien Miller32aa1441999-10-29 09:15:49 +10001021canonical hosts names, one per line (the full format is described on
1022the
1023.Xr sshd 8
Damien Miller7684ee12000-03-17 23:40:15 +11001024manual page).
1025If the client host is found in this file, login is
Damien Miller32aa1441999-10-29 09:15:49 +10001026automatically permitted provided client and server user names are the
Damien Miller7684ee12000-03-17 23:40:15 +11001027same.
1028Additionally, successful RSA host authentication is normally
1029required.
1030This file should only be writable by root.
Damien Miller886c63a2000-01-20 23:13:36 +11001031.It Pa /etc/shosts.equiv
Damien Miller32aa1441999-10-29 09:15:49 +10001032This file is processed exactly as
1033.Pa /etc/hosts.equiv .
1034This file may be useful to permit logins using
1035.Nm
1036but not using rsh/rlogin.
Damien Miller886c63a2000-01-20 23:13:36 +11001037.It Pa /etc/sshrc
Damien Miller32aa1441999-10-29 09:15:49 +10001038Commands in this file are executed by
1039.Nm
1040when the user logs in just before the user's shell (or command) is started.
1041See the
1042.Xr sshd 8
1043manual page for more information.
1044.It Pa $HOME/.ssh/rc
1045Commands in this file are executed by
1046.Nm
1047when the user logs in just before the user's shell (or command) is
1048started.
1049See the
1050.Xr sshd 8
1051manual page for more information.
Damien Miller4f0fa561999-12-26 14:24:41 +11001052.It Pa $HOME/.ssh/environment
1053Contains additional definitions for environment variables, see section
1054.Sx ENVIRONMENT
1055above.
Damien Miller32aa1441999-10-29 09:15:49 +10001056.It Pa libcrypto.so.X.1
1057A version of this library which includes support for the RSA algorithm
1058is required for proper operation.
1059.Sh AUTHOR
Damien Miller32aa1441999-10-29 09:15:49 +10001060OpenSSH
Damien Miller98c7ad62000-03-09 21:27:49 +11001061is a derivative of the original (free) ssh 1.2.12 release by Tatu Ylonen,
Damien Miller7684ee12000-03-17 23:40:15 +11001062but with bugs removed and newer features re-added.
1063Rapidly after the
Damien Miller98c7ad62000-03-09 21:27:49 +110010641.2.12 release, newer versions of the original ssh bore successively
1065more restrictive licenses, and thus demand for a free version was born.
1066This version of OpenSSH
Damien Miller32aa1441999-10-29 09:15:49 +10001067.Bl -bullet
1068.It
Damien Miller14537852000-01-22 19:57:40 +11001069has all components of a restrictive nature (i.e., patents, see
Damien Miller32aa1441999-10-29 09:15:49 +10001070.Xr ssl 8 )
1071directly removed from the source code; any licensed or patented components
1072are chosen from
1073external libraries.
1074.It
Damien Miller98c7ad62000-03-09 21:27:49 +11001075has been updated to support ssh protocol 1.5, making it compatible with
1076all other ssh protocol 1 clients and servers.
Damien Miller32aa1441999-10-29 09:15:49 +10001077.It
1078contains added support for
1079.Xr kerberos 8
1080authentication and ticket passing.
1081.It
1082supports one-time password authentication with
1083.Xr skey 1 .
1084.El
1085.Pp
1086The libraries described in
1087.Xr ssl 8
1088are required for proper operation.
Damien Miller10f6f6b1999-11-17 17:29:08 +11001089.Pp
Damien Miller6ee95641999-11-18 11:35:13 +11001090OpenSSH has been created by Aaron Campbell, Bob Beck, Markus Friedl,
Damien Miller10f6f6b1999-11-17 17:29:08 +11001091Niels Provos, Theo de Raadt, and Dug Song.
Damien Miller32aa1441999-10-29 09:15:49 +10001092.Sh SEE ALSO
1093.Xr rlogin 1 ,
1094.Xr rsh 1 ,
1095.Xr scp 1 ,
1096.Xr ssh-add 1 ,
1097.Xr ssh-agent 1 ,
1098.Xr ssh-keygen 1 ,
1099.Xr telnet 1 ,
1100.Xr sshd 8 ,
1101.Xr ssl 8