]> andersk Git - openssh.git/blame - ssh.1
- markus@cvs.openbsd.org 2001/04/22 13:41:02
[openssh.git] / ssh.1
CommitLineData
bf740959 1.\" -*- nroff -*-
2.\"
bf740959 3.\" Author: Tatu Ylonen <ylo@cs.hut.fi>
bf740959 4.\" Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
5.\" All rights reserved
6.\"
bcbf86ec 7.\" As far as I am concerned, the code I have written for this software
8.\" can be used freely for any purpose. Any derived versions of this
9.\" software must be clearly marked as such, and if the derived work is
10.\" incompatible with the protocol description in the RFC file, it must be
11.\" called by a name other than "ssh" or "Secure Shell".
12.\"
f3c7c613 13.\" Copyright (c) 1999,2000 Markus Friedl. All rights reserved.
14.\" Copyright (c) 1999 Aaron Campbell. All rights reserved.
15.\" Copyright (c) 1999 Theo de Raadt. All rights reserved.
bcbf86ec 16.\"
17.\" Redistribution and use in source and binary forms, with or without
18.\" modification, are permitted provided that the following conditions
19.\" are met:
20.\" 1. Redistributions of source code must retain the above copyright
21.\" notice, this list of conditions and the following disclaimer.
22.\" 2. Redistributions in binary form must reproduce the above copyright
23.\" notice, this list of conditions and the following disclaimer in the
24.\" documentation and/or other materials provided with the distribution.
bf740959 25.\"
bcbf86ec 26.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
27.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
28.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
29.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
30.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
31.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
32.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
33.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
34.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
35.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
bf740959 36.\"
2cad6cef 37.\" $OpenBSD: ssh.1,v 1.106 2001/04/22 13:32:27 markus Exp $
bf740959 38.Dd September 25, 1999
39.Dt SSH 1
40.Os
41.Sh NAME
42.Nm ssh
2c86906e 43.Nd OpenSSH SSH client (remote login program)
bf740959 44.Sh SYNOPSIS
45.Nm ssh
46.Op Fl l Ar login_name
47.Op Ar hostname | user@hostname
48.Op Ar command
49.Pp
50.Nm ssh
9afadca8 51.Op Fl afgknqstvxACNPTX1246
d0c832f3 52.Op Fl c Ar cipher_spec
bf740959 53.Op Fl e Ar escape_char
54.Op Fl i Ar identity_file
55.Op Fl l Ar login_name
b2552997 56.Op Fl m Ar mac_spec
bf740959 57.Op Fl o Ar option
58.Op Fl p Ar port
59.Oo Fl L Xo
60.Sm off
bf740959 61.Ar port :
7b2ea3a1 62.Ar host :
bf740959 63.Ar hostport
64.Sm on
65.Xc
66.Oc
67.Oo Fl R Xo
68.Sm off
bf740959 69.Ar port :
7b2ea3a1 70.Ar host :
bf740959 71.Ar hostport
72.Sm on
73.Xc
74.Oc
75.Op Ar hostname | user@hostname
76.Op Ar command
f54651ce 77.Sh DESCRIPTION
bf740959 78.Nm
2c86906e 79(SSH client) is a program for logging into a remote machine and for
610cd5c6 80executing commands on a remote machine.
81It is intended to replace
bf740959 82rlogin and rsh, and provide secure encrypted communications between
610cd5c6 83two untrusted hosts over an insecure network.
84X11 connections and
bf740959 85arbitrary TCP/IP ports can also be forwarded over the secure channel.
86.Pp
87.Nm
f54651ce 88connects and logs into the specified
bf740959 89.Ar hostname .
90The user must prove
1d1ffb87 91his/her identity to the remote machine using one of several methods
92depending on the protocol version used:
93.Pp
94.Ss SSH protocol version 1
bf740959 95.Pp
96First, if the machine the user logs in from is listed in
97.Pa /etc/hosts.equiv
98or
5f4fdfae 99.Pa /etc/shosts.equiv
bf740959 100on the remote machine, and the user names are
101the same on both sides, the user is immediately permitted to log in.
f54651ce 102Second, if
bf740959 103.Pa \&.rhosts
104or
105.Pa \&.shosts
106exists in the user's home directory on the
107remote machine and contains a line containing the name of the client
108machine and the name of the user on that machine, the user is
610cd5c6 109permitted to log in.
110This form of authentication alone is normally not
bf740959 111allowed by the server because it is not secure.
112.Pp
113The second (and primary) authentication method is the
114.Pa rhosts
115or
116.Pa hosts.equiv
610cd5c6 117method combined with RSA-based host authentication.
118It means that if the login would be permitted by
1d1ffb87 119.Pa $HOME/.rhosts ,
120.Pa $HOME/.shosts ,
bf740959 121.Pa /etc/hosts.equiv ,
122or
5f4fdfae 123.Pa /etc/shosts.equiv ,
bf740959 124and if additionally the server can verify the client's
f54651ce 125host key (see
5f4fdfae 126.Pa /etc/ssh_known_hosts
5bbb5681 127and
128.Pa $HOME/.ssh/known_hosts
bf740959 129in the
130.Sx FILES
610cd5c6 131section), only then login is permitted.
132This authentication method closes security holes due to IP
133spoofing, DNS spoofing and routing spoofing.
134[Note to the administrator:
bf740959 135.Pa /etc/hosts.equiv ,
1d1ffb87 136.Pa $HOME/.rhosts ,
bf740959 137and the rlogin/rsh protocol in general, are inherently insecure and should be
138disabled if security is desired.]
139.Pp
f54651ce 140As a third authentication method,
bf740959 141.Nm
142supports RSA based authentication.
143The scheme is based on public-key cryptography: there are cryptosystems
144where encryption and decryption are done using separate keys, and it
145is not possible to derive the decryption key from the encryption key.
610cd5c6 146RSA is one such system.
f54651ce 147The idea is that each user creates a public/private
610cd5c6 148key pair for authentication purposes.
149The server knows the public key, and only the user knows the private key.
f54651ce 150The file
bf740959 151.Pa $HOME/.ssh/authorized_keys
152lists the public keys that are permitted for logging
610cd5c6 153in.
154When the user logs in, the
bf740959 155.Nm
156program tells the server which key pair it would like to use for
610cd5c6 157authentication.
158The server checks if this key is permitted, and if
bf740959 159so, sends the user (actually the
160.Nm
161program running on behalf of the user) a challenge, a random number,
610cd5c6 162encrypted by the user's public key.
163The challenge can only be
164decrypted using the proper private key.
165The user's client then decrypts the
bf740959 166challenge using the private key, proving that he/she knows the private
167key but without disclosing it to the server.
168.Pp
169.Nm
610cd5c6 170implements the RSA authentication protocol automatically.
171The user creates his/her RSA key pair by running
bf740959 172.Xr ssh-keygen 1 .
f54651ce 173This stores the private key in
1d1ffb87 174.Pa $HOME/.ssh/identity
bf740959 175and the public key in
1d1ffb87 176.Pa $HOME/.ssh/identity.pub
610cd5c6 177in the user's home directory.
178The user should then copy the
bf740959 179.Pa identity.pub
f54651ce 180to
1d1ffb87 181.Pa $HOME/.ssh/authorized_keys
f54651ce 182in his/her home directory on the remote machine (the
bf740959 183.Pa authorized_keys
f54651ce 184file corresponds to the conventional
1d1ffb87 185.Pa $HOME/.rhosts
bf740959 186file, and has one key
610cd5c6 187per line, though the lines can be very long).
188After this, the user can log in without giving the password.
189RSA authentication is much
bf740959 190more secure than rhosts authentication.
191.Pp
192The most convenient way to use RSA authentication may be with an
610cd5c6 193authentication agent.
194See
bf740959 195.Xr ssh-agent 1
196for more information.
197.Pp
f54651ce 198If other authentication methods fail,
bf740959 199.Nm
610cd5c6 200prompts the user for a password.
201The password is sent to the remote
bf740959 202host for checking; however, since all communications are encrypted,
203the password cannot be seen by someone listening on the network.
204.Pp
1d1ffb87 205.Ss SSH protocol version 2
206.Pp
207When a user connects using the protocol version 2
208different authentication methods are available:
209At first, the client attempts to authenticate using the public key method.
210If this method fails password authentication is tried.
211.Pp
212The public key method is similar to RSA authentication described
fa08c86b 213in the previous section except that the DSA or RSA algorithm is used
214instead.
c0ecc314 215The client uses his private key,
1d1ffb87 216.Pa $HOME/.ssh/id_dsa
c0ecc314 217or
218.Pa $HOME/.ssh/id_rsa ,
1d1ffb87 219to sign the session identifier and sends the result to the server.
220The server checks whether the matching public key is listed in
221.Pa $HOME/.ssh/authorized_keys2
222and grants access if both the key is found and the signature is correct.
223The session identifier is derived from a shared Diffie-Hellman value
224and is only known to the client and the server.
225.Pp
226If public key authentication fails or is not available a password
227can be sent encrypted to the remote host for proving the user's identity.
228This protocol 2 implementation does not yet support Kerberos or
229S/Key authentication.
230.Pp
231Protocol 2 provides additional mechanisms for confidentiality
d0c832f3 232(the traffic is encrypted using 3DES, Blowfish, CAST128 or Arcfour)
f2ba0775 233and integrity (hmac-md5, hmac-sha1).
1d1ffb87 234Note that protocol 1 lacks a strong mechanism for ensuring the
235integrity of the connection.
236.Pp
237.Ss Login session and remote execution
238.Pp
bf740959 239When the user's identity has been accepted by the server, the server
240either executes the given command, or logs into the machine and gives
610cd5c6 241the user a normal shell on the remote machine.
242All communication with
bf740959 243the remote command or shell will be automatically encrypted.
244.Pp
245If a pseudo-terminal has been allocated (normal login session), the
df841692 246user may use the escape characters noted below.
bf740959 247.Pp
248If no pseudo tty has been allocated, the
249session is transparent and can be used to reliably transfer binary
610cd5c6 250data.
251On most systems, setting the escape character to
bf740959 252.Dq none
253will also make the session transparent even if a tty is used.
254.Pp
ce9c0b75 255The session terminates when the command or shell on the remote
e91c60f2 256machine exits and all X11 and TCP/IP connections have been closed.
bf740959 257The exit status of the remote program is returned as the exit status
258of
259.Nm ssh .
260.Pp
df841692 261.Ss Escape Characters
262.Pp
263When a pseudo terminal has been requested, ssh supports a number of functions
67b964a1 264through the use of an escape character.
df841692 265.Pp
266A single tilde character can be sent as
267.Ic ~~
268(or by following the tilde by a character other than those described above).
269The escape character must always follow a newline to be interpreted as
270special.
271The escape character can be changed in configuration files using the
272.Cm EscapeChar
273configuration directive or on the command line by the
274.Fl e
275option.
276.Pp
277The supported escapes (assuming the default
278.Ql ~ )
279are:
280.Bl -tag -width Ds
281.It Cm ~.
282Disconnect
283.It Cm ~^Z
284Background ssh
285.It Cm ~#
286List forwarded connections
287.It Cm ~&
288Background ssh at logout when waiting for forwarded connection / X11 sessions
289to terminate (this does not currently work for SSH protocol version 2)
290.It Cm ~?
291Display a list of escape characters
292.It Cm ~R
67b964a1 293Request rekeying of the connection (only useful for SSH protocol version 2
294and if the peer supports it)
df841692 295.El
296.Pp
1d1ffb87 297.Ss X11 and TCP forwarding
298.Pp
bf740959 299If the user is using X11 (the
300.Ev DISPLAY
301environment variable is set), the connection to the X11 display is
302automatically forwarded to the remote side in such a way that any X11
303programs started from the shell (or command) will go through the
304encrypted channel, and the connection to the real X server will be made
610cd5c6 305from the local machine.
306The user should not manually set
bf740959 307.Ev DISPLAY .
308Forwarding of X11 connections can be
309configured on the command line or in configuration files.
310.Pp
311The
f54651ce 312.Ev DISPLAY
bf740959 313value set by
314.Nm
315will point to the server machine, but with a display number greater
610cd5c6 316than zero.
317This is normal, and happens because
bf740959 318.Nm
319creates a
320.Dq proxy
321X server on the server machine for forwarding the
322connections over the encrypted channel.
323.Pp
324.Nm
325will also automatically set up Xauthority data on the server machine.
326For this purpose, it will generate a random authorization cookie,
327store it in Xauthority on the server, and verify that any forwarded
328connections carry this cookie and replace it by the real cookie when
610cd5c6 329the connection is opened.
330The real authentication cookie is never
bf740959 331sent to the server machine (and no cookies are sent in the plain).
332.Pp
333If the user is using an authentication agent, the connection to the agent
334is automatically forwarded to the remote side unless disabled on
335command line or in a configuration file.
336.Pp
337Forwarding of arbitrary TCP/IP connections over the secure channel can
610cd5c6 338be specified either on command line or in a configuration file.
339One possible application of TCP/IP forwarding is a secure connection to an
e91c60f2 340electronic purse; another is going through firewalls.
bf740959 341.Pp
1d1ffb87 342.Ss Server authentication
343.Pp
bf740959 344.Nm
1d1ffb87 345automatically maintains and checks a database containing
610cd5c6 346identifications for all hosts it has ever been used with.
1d1ffb87 347RSA host keys are stored in
348.Pa $HOME/.ssh/known_hosts
349and
fa08c86b 350host keys used in the protocol version 2 are stored in
1d1ffb87 351.Pa $HOME/.ssh/known_hosts2
610cd5c6 352in the user's home directory.
1d1ffb87 353Additionally, the files
5f4fdfae 354.Pa /etc/ssh_known_hosts
1d1ffb87 355and
356.Pa /etc/ssh_known_hosts2
357are automatically checked for known hosts.
610cd5c6 358Any new hosts are automatically added to the user's file.
359If a host's identification
bf740959 360ever changes,
361.Nm
362warns about this and disables password authentication to prevent a
610cd5c6 363trojan horse from getting the user's password.
364Another purpose of
bf740959 365this mechanism is to prevent man-in-the-middle attacks which could
610cd5c6 366otherwise be used to circumvent the encryption.
367The
bf740959 368.Cm StrictHostKeyChecking
369option (see below) can be used to prevent logins to machines whose
370host key is not known or has changed.
fa08c86b 371.Pp
372The options are as follows:
bf740959 373.Bl -tag -width Ds
374.It Fl a
4fe2af09 375Disables forwarding of the authentication agent connection.
71276795 376.It Fl A
377Enables forwarding of the authentication agent connection.
378This can also be specified on a per-host basis in a configuration file.
bf740959 379.It Fl c Ar blowfish|3des
f54651ce 380Selects the cipher to use for encrypting the session.
bf740959 381.Ar 3des
610cd5c6 382is used by default.
f54651ce 383It is believed to be secure.
bf740959 384.Ar 3des
385(triple-des) is an encrypt-decrypt-encrypt triple with three different keys.
386It is presumably more secure than the
387.Ar des
a22aff1f 388cipher which is no longer fully supported in
d0c832f3 389.Nm ssh .
bf740959 390.Ar blowfish
391is a fast block cipher, it appears very secure and is much faster than
610cd5c6 392.Ar 3des .
9afadca8 393.It Fl c Ar cipher_spec
d0c832f3 394Additionally, for protocol version 2 a comma-separated list of ciphers can
94ec8c6b 395be specified in order of preference.
9afadca8 396See
397.Cm Ciphers
398for more information.
bf740959 399.It Fl e Ar ch|^ch|none
400Sets the escape character for sessions with a pty (default:
401.Ql ~ ) .
610cd5c6 402The escape character is only recognized at the beginning of a line.
403The escape character followed by a dot
bf740959 404.Pq Ql \&.
405closes the connection, followed
406by control-Z suspends the connection, and followed by itself sends the
610cd5c6 407escape character once.
408Setting the character to
bf740959 409.Dq none
410disables any escapes and makes the session fully transparent.
411.It Fl f
412Requests
413.Nm
610cd5c6 414to go to background just before command execution.
415This is useful if
bf740959 416.Nm
417is going to ask for passwords or passphrases, but the user
610cd5c6 418wants it in the background.
f54651ce 419This implies
bf740959 420.Fl n .
421The recommended way to start X11 programs at a remote site is with
422something like
423.Ic ssh -f host xterm .
7b2ea3a1 424.It Fl g
425Allows remote hosts to connect to local forwarded ports.
bf740959 426.It Fl i Ar identity_file
f54651ce 427Selects the file from which the identity (private key) for
fa08c86b 428RSA or DSA authentication is read.
f54651ce 429Default is
1d1ffb87 430.Pa $HOME/.ssh/identity
610cd5c6 431in the user's home directory.
432Identity files may also be specified on
433a per-host basis in the configuration file.
434It is possible to have multiple
bf740959 435.Fl i
436options (and multiple identities specified in
437configuration files).
bf740959 438.It Fl k
4fe2af09 439Disables forwarding of Kerberos tickets and AFS tokens.
440This may also be specified on a per-host basis in the configuration file.
bf740959 441.It Fl l Ar login_name
610cd5c6 442Specifies the user to log in as on the remote machine.
443This also may be specified on a per-host basis in the configuration file.
b2552997 444.It Fl m Ar mac_spec
445Additionally, for protocol version 2 a comma-separated list of MAC
446(message authentication code) algorithms can
447be specified in order of preference.
448See the
449.Cm MACs
450keyword for more information.
bf740959 451.It Fl n
452Redirects stdin from
453.Pa /dev/null
454(actually, prevents reading from stdin).
455This must be used when
456.Nm
610cd5c6 457is run in the background.
458A common trick is to use this to run X11 programs on a remote machine.
459For example,
bf740959 460.Ic ssh -n shadows.cs.hut.fi emacs &
461will start an emacs on shadows.cs.hut.fi, and the X11
462connection will be automatically forwarded over an encrypted channel.
463The
464.Nm
465program will be put in the background.
466(This does not work if
467.Nm
468needs to ask for a password or passphrase; see also the
469.Fl f
470option.)
0e73cc53 471.It Fl N
472Do not execute a remote command.
0b6fbf03 473This is useful if you just want to forward ports
0e73cc53 474(protocol version 2 only).
bf740959 475.It Fl o Ar option
476Can be used to give options in the format used in the config file.
477This is useful for specifying options for which there is no separate
610cd5c6 478command-line flag.
479The option has the same format as a line in the configuration file.
bf740959 480.It Fl p Ar port
610cd5c6 481Port to connect to on the remote host.
482This can be specified on a
bf740959 483per-host basis in the configuration file.
484.It Fl P
485Use a non-privileged port for outgoing connections.
486This can be used if your firewall does
487not permit connections from privileged ports.
95f1eccc 488Note that this option turns off
bf740959 489.Cm RhostsAuthentication
490and
6ffc9c88 491.Cm RhostsRSAAuthentication
492for older servers.
bf740959 493.It Fl q
610cd5c6 494Quiet mode.
495Causes all warning and diagnostic messages to be suppressed.
496Only fatal errors are displayed.
ae810de7 497.It Fl s
498May be used to request invocation of a subsystem on the remote system. Subsystems are a feature of the SSH2 protocol which facilitate the use
499of SSH as a secure transport for other application (eg. sftp). The
500subsystem is specified as the remote command.
bf740959 501.It Fl t
610cd5c6 502Force pseudo-tty allocation.
4fe2af09 503This can be used to execute arbitrary
610cd5c6 504screen-based programs on a remote machine, which can be very useful,
505e.g., when implementing menu services.
8abcdba4 506Multiple
507.Fl t
508options force tty allocation, even if
509.Nm
510has no local tty.
0e73cc53 511.It Fl T
0b6fbf03 512Disable pseudo-tty allocation.
bf740959 513.It Fl v
610cd5c6 514Verbose mode.
515Causes
bf740959 516.Nm
610cd5c6 517to print debugging messages about its progress.
518This is helpful in
bf740959 519debugging connection, authentication, and configuration problems.
8abcdba4 520Multiple
521.Fl v
522options increases the verbosity.
94ec8c6b 523Maximum is 3.
bf740959 524.It Fl x
610cd5c6 525Disables X11 forwarding.
bf740959 526.It Fl X
527Enables X11 forwarding.
71276795 528This can also be specified on a per-host basis in a configuration file.
bf740959 529.It Fl C
530Requests compression of all data (including stdin, stdout, stderr, and
610cd5c6 531data for forwarded X11 and TCP/IP connections).
532The compression algorithm is the same used by
7b2ea3a1 533.Xr gzip 1 ,
534and the
bf740959 535.Dq level
536can be controlled by the
537.Cm CompressionLevel
610cd5c6 538option (see below).
539Compression is desirable on modem lines and other
bf740959 540slow connections, but will only slow down things on fast networks.
541The default value can be set on a host-by-host basis in the
542configuration files; see the
543.Cm Compress
544option below.
545.It Fl L Ar port:host:hostport
546Specifies that the given port on the local (client) host is to be
610cd5c6 547forwarded to the given host and port on the remote side.
548This works by allocating a socket to listen to
bf740959 549.Ar port
550on the local side, and whenever a connection is made to this port, the
551connection is forwarded over the secure channel, and a connection is
552made to
48e671d5 553.Ar host
554port
555.Ar hostport
610cd5c6 556from the remote machine.
557Port forwardings can also be specified in the configuration file.
558Only root can forward privileged ports.
48e671d5 559IPv6 addresses can be specified with an alternative syntax:
560.Ar port/host/hostport
bf740959 561.It Fl R Ar port:host:hostport
562Specifies that the given port on the remote (server) host is to be
610cd5c6 563forwarded to the given host and port on the local side.
564This works by allocating a socket to listen to
bf740959 565.Ar port
566on the remote side, and whenever a connection is made to this port, the
567connection is forwarded over the secure channel, and a connection is
568made to
48e671d5 569.Ar host
570port
571.Ar hostport
610cd5c6 572from the local machine.
573Port forwardings can also be specified in the configuration file.
574Privileged ports can be forwarded only when
bf740959 575logging in as root on the remote machine.
9afadca8 576.It Fl 1
577Forces
578.Nm
579to try protocol version 1 only.
6ae2364d 580.It Fl 2
581Forces
582.Nm
1d1ffb87 583to try protocol version 2 only.
48e671d5 584.It Fl 4
585Forces
586.Nm
587to use IPv4 addresses only.
588.It Fl 6
589Forces
590.Nm
591to use IPv6 addresses only.
bf740959 592.El
593.Sh CONFIGURATION FILES
594.Nm
595obtains configuration data from the following sources (in this order):
596command line options, user's configuration file
597.Pq Pa $HOME/.ssh/config ,
598and system-wide configuration file
5f4fdfae 599.Pq Pa /etc/ssh_config .
bf740959 600For each parameter, the first obtained value
610cd5c6 601will be used.
602The configuration files contain sections bracketed by
603.Dq Host
604specifications, and that section is only applied for hosts that
605match one of the patterns given in the specification.
606The matched host name is the one given on the command line.
bf740959 607.Pp
608Since the first obtained value for each parameter is used, more
609host-specific declarations should be given near the beginning of the
610file, and general defaults at the end.
611.Pp
612The configuration file has the following format:
613.Pp
614Empty lines and lines starting with
615.Ql #
616are comments.
617.Pp
618Otherwise a line is of the format
619.Dq keyword arguments .
620The possible
621keywords and their meanings are as follows (note that the
622configuration files are case-sensitive):
623.Bl -tag -width Ds
624.It Cm Host
625Restricts the following declarations (up to the next
626.Cm Host
627keyword) to be only for those hosts that match one of the patterns
628given after the keyword.
629.Ql \&*
630and
631.Ql ?
632can be used as wildcards in the
610cd5c6 633patterns.
634A single
bf740959 635.Ql \&*
636as a pattern can be used to provide global
610cd5c6 637defaults for all hosts.
638The host is the
bf740959 639.Ar hostname
640argument given on the command line (i.e., the name is not converted to
641a canonicalized host name before matching).
642.It Cm AFSTokenPassing
4fe2af09 643Specifies whether to pass AFS tokens to remote host.
644The argument to this keyword must be
bf740959 645.Dq yes
646or
647.Dq no .
648.It Cm BatchMode
649If set to
650.Dq yes ,
610cd5c6 651passphrase/password querying will be disabled.
652This option is useful in scripts and other batch jobs where you have no
653user to supply the password.
654The argument must be
bf740959 655.Dq yes
656or
657.Dq no .
01ce749f 658The default is
659.Dq no .
7b2ea3a1 660.It Cm CheckHostIP
661If this flag is set to
662.Dq yes ,
01ce749f 663ssh will additionally check the host IP address in the
7b2ea3a1 664.Pa known_hosts
4fe2af09 665file.
666This allows ssh to detect if a host key changed due to DNS spoofing.
7b2ea3a1 667If the option is set to
668.Dq no ,
669the check will not be executed.
01ce749f 670The default is
671.Dq yes .
bf740959 672.It Cm Cipher
33de75a3 673Specifies the cipher to use for encrypting the session
a22aff1f 674in protocol version 1.
610cd5c6 675Currently,
a22aff1f 676.Dq blowfish
bf740959 677and
678.Dq 3des
610cd5c6 679are supported.
680The default is
bf740959 681.Dq 3des .
f54651ce 682.It Cm Ciphers
683Specifies the ciphers allowed for protocol version 2
684in order of preference.
685Multiple ciphers must be comma-separated.
686The default is
9afadca8 687.Pp
688.Bd -literal
f2ba0775 689 ``aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour,
9afadca8 690 aes192-cbc,aes256-cbc,rijndael128-cbc,rijndael192-cbc,
691 rijndael256-cbc,rijndael-cbc@lysator.liu.se''
692.Ed
bf740959 693.It Cm Compression
610cd5c6 694Specifies whether to use compression.
695The argument must be
bf740959 696.Dq yes
697or
698.Dq no .
01ce749f 699The default is
700.Dq no .
bf740959 701.It Cm CompressionLevel
01ce749f 702Specifies the compression level to use if compression is enabled.
610cd5c6 703The argument must be an integer from 1 (fast) to 9 (slow, best).
704The default level is 6, which is good for most applications.
705The meaning of the values is the same as in
7b2ea3a1 706.Xr gzip 1 .
bf740959 707.It Cm ConnectionAttempts
708Specifies the number of tries (one per second) to make before falling
610cd5c6 709back to rsh or exiting.
710The argument must be an integer.
711This may be useful in scripts if the connection sometimes fails.
01ce749f 712The default is 4.
fa08c86b 713.It Cm PubkeyAuthentication
714Specifies whether to try public key authentication.
1d1ffb87 715The argument to this keyword must be
716.Dq yes
717or
718.Dq no .
01ce749f 719The default is
720.Dq yes .
1d1ffb87 721Note that this option applies to protocol version 2 only.
bf740959 722.It Cm EscapeChar
723Sets the escape character (default:
724.Ql ~ ) .
725The escape character can also
610cd5c6 726be set on the command line.
727The argument should be a single character,
bf740959 728.Ql ^
729followed by a letter, or
730.Dq none
731to disable the escape
732character entirely (making the connection transparent for binary
733data).
f54651ce 734.It Cm FallBackToRsh
bf740959 735Specifies that if connecting via
736.Nm
737fails due to a connection refused error (there is no
738.Xr sshd 8
f54651ce 739listening on the remote host),
bf740959 740.Xr rsh 1
741should automatically be used instead (after a suitable warning about
610cd5c6 742the session being unencrypted).
743The argument must be
bf740959 744.Dq yes
745or
746.Dq no .
01ce749f 747The default is
748.Dq no .
bf740959 749.It Cm ForwardAgent
750Specifies whether the connection to the authentication agent (if any)
610cd5c6 751will be forwarded to the remote machine.
752The argument must be
bf740959 753.Dq yes
754or
755.Dq no .
71276795 756The default is
757.Dq no .
bf740959 758.It Cm ForwardX11
759Specifies whether X11 connections will be automatically redirected
f54651ce 760over the secure channel and
bf740959 761.Ev DISPLAY
610cd5c6 762set.
f54651ce 763The argument must be
bf740959 764.Dq yes
765or
766.Dq no .
c8d54615 767The default is
768.Dq no .
bf740959 769.It Cm GatewayPorts
770Specifies whether remote hosts are allowed to connect to local
771forwarded ports.
772The argument must be
773.Dq yes
774or
775.Dq no .
776The default is
777.Dq no .
778.It Cm GlobalKnownHostsFile
a5df12e9 779Specifies a file to use for the protocol version 1 global
780host key database instead of
5f4fdfae 781.Pa /etc/ssh_known_hosts .
a5df12e9 782.It Cm GlobalKnownHostsFile2
783Specifies a file to use for the protocol version 2 global
784host key database instead of
785.Pa /etc/ssh_known_hosts2 .
8abcdba4 786.It Cm HostKeyAlias
787Specifies an alias that should be used instead of the
788real host name when looking up or saving the host key
61e96248 789in the known_hosts files.
790This option is useful for tunneling ssh connections
8abcdba4 791or if you have multiple servers running on a single host.
e961a8f9 792.It Cm HostKeyAlgorithms
793Specfies the protocol version 2 host key algorithms
794that the client wants to use in order of preference.
795The default for this option is:
796.Dq ssh-rsa,ssh-dss
bf740959 797.It Cm HostName
610cd5c6 798Specifies the real host name to log into.
799This can be used to specify nicknames or abbreviations for hosts.
800Default is the name given on the command line.
801Numeric IP addresses are also permitted (both on the command line and in
bf740959 802.Cm HostName
803specifications).
804.It Cm IdentityFile
805Specifies the file from which the user's RSA authentication identity
806is read (default
1d1ffb87 807.Pa $HOME/.ssh/identity
bf740959 808in the user's home directory).
809Additionally, any identities represented by the authentication agent
610cd5c6 810will be used for authentication.
811The file name may use the tilde
812syntax to refer to a user's home directory.
813It is possible to have
bf740959 814multiple identity files specified in configuration files; all these
815identities will be tried in sequence.
816.It Cm KeepAlive
817Specifies whether the system should send keepalive messages to the
610cd5c6 818other side.
819If they are sent, death of the connection or crash of one
820of the machines will be properly noticed.
821However, this means that
bf740959 822connections will die if the route is down temporarily, and some people
4fe2af09 823find it annoying.
bf740959 824.Pp
825The default is
826.Dq yes
827(to send keepalives), and the client will notice
610cd5c6 828if the network goes down or the remote host dies.
829This is important in scripts, and many users want it too.
bf740959 830.Pp
831To disable keepalives, the value should be set to
832.Dq no
833in both the server and the client configuration files.
834.It Cm KerberosAuthentication
4fe2af09 835Specifies whether Kerberos authentication will be used.
836The argument to this keyword must be
bf740959 837.Dq yes
838or
839.Dq no .
840.It Cm KerberosTgtPassing
4fe2af09 841Specifies whether a Kerberos TGT will be forwarded to the server.
842This will only work if the Kerberos server is actually an AFS kaserver.
843The argument to this keyword must be
bf740959 844.Dq yes
845or
846.Dq no .
847.It Cm LocalForward
848Specifies that a TCP/IP port on the local machine be forwarded over
610cd5c6 849the secure channel to given host:port from the remote machine.
850The first argument must be a port number, and the second must be
851host:port.
852Multiple forwardings may be specified, and additional
853forwardings can be given on the command line.
854Only the superuser can forward privileged ports.
6a17f9c2 855.It Cm LogLevel
856Gives the verbosity level that is used when logging messages from
857.Nm ssh .
858The possible values are:
59c97189 859QUIET, FATAL, ERROR, INFO, VERBOSE and DEBUG.
860The default is INFO.
b2552997 861.It Cm MACs
862Specifies the MAC (message authentication code) algorithms
863in order of preference.
864The MAC algorithm is used in protocol version 2
865for data integrity protection.
866Multiple algorithms must be comma-separated.
867The default is
868.Pp
869.Bd -literal
f2ba0775 870 ``hmac-md5,hmac-sha1,hmac-ripemd160,hmac-ripemd160@openssh.com,
b2552997 871 hmac-sha1-96,hmac-md5-96''
872.Ed
bf740959 873.It Cm NumberOfPasswordPrompts
4fe2af09 874Specifies the number of password prompts before giving up.
875The argument to this keyword must be an integer.
876Default is 3.
7b2ea3a1 877.It Cm PasswordAuthentication
610cd5c6 878Specifies whether to use password authentication.
879The argument to this keyword must be
7b2ea3a1 880.Dq yes
881or
882.Dq no .
01ce749f 883The default is
884.Dq yes .
1d1ffb87 885Note that this option applies to both protocol version 1 and 2.
bf740959 886.It Cm Port
610cd5c6 887Specifies the port number to connect on the remote host.
888Default is 22.
babd91d4 889.It Cm PreferredAuthentications
890Specifies the order in which the client should try protocol 2
891authentication methods. This allows a client to prefer one method (e.g.
892.Cm keyboard-interactive )
893over another method (e.g.
894.Cm password )
895The default for this option is:
896.Dq publickey, password, keyboard-interactive
f54651ce 897.It Cm Protocol
898Specifies the protocol versions
899.Nm
900should support in order of preference.
901The possible values are
902.Dq 1
903and
904.Dq 2 .
905Multiple versions must be comma-separated.
906The default is
b4a19d21 907.Dq 2,1 .
1d1ffb87 908This means that
909.Nm
b4a19d21 910tries version 2 and falls back to version 1
911if version 2 is not available.
bf740959 912.It Cm ProxyCommand
610cd5c6 913Specifies the command to use to connect to the server.
914The command
915string extends to the end of the line, and is executed with
916.Pa /bin/sh .
917In the command string,
918.Ql %h
919will be substituted by the host name to
920connect and
921.Ql %p
922by the port.
923The command can be basically anything,
924and should read from its standard input and write to its standard output.
925It should eventually connect an
bf740959 926.Xr sshd 8
927server running on some machine, or execute
928.Ic sshd -i
610cd5c6 929somewhere.
930Host key management will be done using the
bf740959 931HostName of the host being connected (defaulting to the name typed by
932the user).
57112b5a 933Note that
934.Cm CheckHostIP
935is not available for connects with a proxy command.
bf740959 936.Pp
937.It Cm RemoteForward
938Specifies that a TCP/IP port on the remote machine be forwarded over
610cd5c6 939the secure channel to given host:port from the local machine.
940The first argument must be a port number, and the second must be
941host:port.
942Multiple forwardings may be specified, and additional
943forwardings can be given on the command line.
944Only the superuser can forward privileged ports.
bf740959 945.It Cm RhostsAuthentication
610cd5c6 946Specifies whether to try rhosts based authentication.
947Note that this
bf740959 948declaration only affects the client side and has no effect whatsoever
610cd5c6 949on security.
950Disabling rhosts authentication may reduce
bf740959 951authentication time on slow connections when rhosts authentication is
610cd5c6 952not used.
953Most servers do not permit RhostsAuthentication because it
954is not secure (see RhostsRSAAuthentication).
955The argument to this keyword must be
bf740959 956.Dq yes
957or
958.Dq no .
01ce749f 959The default is
960.Dq yes .
bf740959 961.It Cm RhostsRSAAuthentication
962Specifies whether to try rhosts based authentication with RSA host
610cd5c6 963authentication.
610cd5c6 964The argument must be
bf740959 965.Dq yes
966or
967.Dq no .
01ce749f 968The default is
969.Dq yes .
bf740959 970.It Cm RSAAuthentication
610cd5c6 971Specifies whether to try RSA authentication.
972The argument to this keyword must be
bf740959 973.Dq yes
974or
975.Dq no .
976RSA authentication will only be
977attempted if the identity file exists, or an authentication agent is
978running.
01ce749f 979The default is
980.Dq yes .
1d1ffb87 981Note that this option applies to protocol version 1 only.
61e96248 982.It Cm ChallengeResponseAuthentication
983Specifies whether to use challenge response authentication.
984Currently there is only support for
5260325f 985.Xr skey 1
610cd5c6 986authentication.
987The argument to this keyword must be
5260325f 988.Dq yes
989or
990.Dq no .
991The default is
992.Dq no .
bf740959 993.It Cm StrictHostKeyChecking
994If this flag is set to
f54651ce 995.Dq yes ,
bf740959 996.Nm
a877488a 997will never automatically add host keys to the
bf740959 998.Pa $HOME/.ssh/known_hosts
1d1ffb87 999and
1000.Pa $HOME/.ssh/known_hosts2
a877488a 1001files, and refuses to connect to hosts whose host key has changed.
610cd5c6 1002This provides maximum protection against trojan horse attacks.
1003However, it can be somewhat annoying if you don't have good
5f4fdfae 1004.Pa /etc/ssh_known_hosts
1d1ffb87 1005and
1006.Pa /etc/ssh_known_hosts2
bf740959 1007files installed and frequently
a877488a 1008connect to new hosts.
1009This option forces the user to manually
1010add all new hosts.
1011If this flag is set to
1012.Dq no ,
1013.Nm
1014will automatically add new host keys to the
1015user known hosts files.
1016If this flag is set to
1017.Dq ask ,
1018new host keys
1019will be added to the user known host files only after the user
1020has confirmed that is what they really want to do, and
1021.Nm
1022will refuse to connect to hosts whose host key has changed.
610cd5c6 1023The host keys of
a877488a 1024known hosts will be verified automatically in all cases.
610cd5c6 1025The argument must be
a877488a 1026.Dq yes ,
1027.Dq no
bf740959 1028or
a877488a 1029.Dq ask .
1030The default is
1031.Dq ask .
bf740959 1032.It Cm UsePrivilegedPort
1033Specifies whether to use a privileged port for outgoing connections.
1034The argument must be
1035.Dq yes
1036or
1037.Dq no .
1038The default is
d5ebca2b 1039.Dq no .
bf740959 1040Note that setting this option to
1041.Dq no
95f1eccc 1042turns off
bf740959 1043.Cm RhostsAuthentication
1044and
6ffc9c88 1045.Cm RhostsRSAAuthentication
1046for older servers.
7b2ea3a1 1047.It Cm User
610cd5c6 1048Specifies the user to log in as.
1049This can be useful if you have a different user name on different machines.
1050This saves the trouble of
7b2ea3a1 1051having to remember to give the user name on the command line.
1052.It Cm UserKnownHostsFile
a5df12e9 1053Specifies a file to use for the protocol version 1 user
1054host key database instead of
7b2ea3a1 1055.Pa $HOME/.ssh/known_hosts .
a5df12e9 1056.It Cm UserKnownHostsFile2
1057Specifies a file to use for the protocol version 2 user
1058host key database instead of
1059.Pa $HOME/.ssh/known_hosts2 .
bf740959 1060.It Cm UseRsh
610cd5c6 1061Specifies that rlogin/rsh should be used for this host.
1062It is possible that the host does not at all support the
bf740959 1063.Nm
610cd5c6 1064protocol.
1065This causes
bf740959 1066.Nm
610cd5c6 1067to immediately execute
bf740959 1068.Xr rsh 1 .
1069All other options (except
1070.Cm HostName )
610cd5c6 1071are ignored if this has been specified.
1072The argument must be
bf740959 1073.Dq yes
1074or
1075.Dq no .
fa649821 1076.It Cm XAuthLocation
1077Specifies the location of the
1078.Xr xauth 1
1079program.
1080The default is
1081.Pa /usr/X11R6/bin/xauth .
b5e300c2 1082.El
bf740959 1083.Sh ENVIRONMENT
1084.Nm
1085will normally set the following environment variables:
1086.Bl -tag -width Ds
1087.It Ev DISPLAY
1088The
1089.Ev DISPLAY
610cd5c6 1090variable indicates the location of the X11 server.
f54651ce 1091It is automatically set by
bf740959 1092.Nm
1093to point to a value of the form
1094.Dq hostname:n
1095where hostname indicates
610cd5c6 1096the host where the shell runs, and n is an integer >= 1.
1097.Nm
1098uses this special value to forward X11 connections over the secure
1099channel.
1100The user should normally not set DISPLAY explicitly, as that
bf740959 1101will render the X11 connection insecure (and will require the user to
1102manually copy any required authorization cookies).
1103.It Ev HOME
1104Set to the path of the user's home directory.
1105.It Ev LOGNAME
1106Synonym for
1107.Ev USER ;
1108set for compatibility with systems that use this variable.
1109.It Ev MAIL
1110Set to point the user's mailbox.
610cd5c6 1111.It Ev PATH
bf740959 1112Set to the default
1113.Ev PATH ,
1114as specified when compiling
1115.Nm ssh .
1116.It Ev SSH_AUTH_SOCK
1117indicates the path of a unix-domain socket used to communicate with the
1118agent.
1119.It Ev SSH_CLIENT
610cd5c6 1120Identifies the client end of the connection.
1121The variable contains
bf740959 1122three space-separated values: client ip-address, client port number,
1123and server port number.
8abcdba4 1124.It Ev SSH_ORIGINAL_COMMAND
1125The variable contains the original command line if a forced command
1126is executed.
1127It can be used to extract the original arguments.
bf740959 1128.It Ev SSH_TTY
1129This is set to the name of the tty (path to the device) associated
610cd5c6 1130with the current shell or command.
1131If the current session has no tty,
bf740959 1132this variable is not set.
1133.It Ev TZ
1134The timezone variable is set to indicate the present timezone if it
c345cf9d 1135was set when the daemon was started (i.e., the daemon passes the value
bf740959 1136on to new connections).
1137.It Ev USER
1138Set to the name of the user logging in.
1139.El
1140.Pp
f54651ce 1141Additionally,
bf740959 1142.Nm
f54651ce 1143reads
1144.Pa $HOME/.ssh/environment ,
bf740959 1145and adds lines of the format
1146.Dq VARNAME=value
1147to the environment.
1148.Sh FILES
c8d54615 1149.Bl -tag -width Ds
a5df12e9 1150.It Pa $HOME/.ssh/known_hosts, $HOME/.ssh/known_hosts2
bf740959 1151Records host keys for all hosts the user has logged into (that are not
1152in
a5df12e9 1153.Pa /etc/ssh_known_hosts
1154for protocol version 1 or
1155.Pa /etc/ssh_known_hosts2
1156for protocol version 2).
bf740959 1157See
1158.Xr sshd 8 .
c0ecc314 1159.It Pa $HOME/.ssh/identity, $HOME/.ssh/id_dsa, $HOME/.ssh/id_rsa
1160Contains the authentication identity of the user.
1161They are for protocol 1 RSA, protocol 2 DSA, and protocol 2 RSA, respectively.
1d1ffb87 1162These files
1163contain sensitive data and should be readable by the user but not
bf740959 1164accessible by others (read/write/execute).
1165Note that
1166.Nm
1d1ffb87 1167ignores a private key file if it is accessible by others.
bf740959 1168It is possible to specify a passphrase when
1169generating the key; the passphrase will be used to encrypt the
1170sensitive part of this file using 3DES.
c0ecc314 1171.It Pa $HOME/.ssh/identity.pub, $HOME/.ssh/id_dsa.pub, $HOME/.ssh/id_rsa.pub
bf740959 1172Contains the public key for authentication (public part of the
610cd5c6 1173identity file in human-readable form).
1d1ffb87 1174The contents of the
1175.Pa $HOME/.ssh/identity.pub
1176file should be added to
bf740959 1177.Pa $HOME/.ssh/authorized_keys
1178on all machines
c0ecc314 1179where you wish to log in using protocol version 1 RSA authentication.
1d1ffb87 1180The contents of the
1181.Pa $HOME/.ssh/id_dsa.pub
c0ecc314 1182and
1183.Pa $HOME/.ssh/id_rsa.pub
1d1ffb87 1184file should be added to
1185.Pa $HOME/.ssh/authorized_keys2
1186on all machines
c0ecc314 1187where you wish to log in using protocol version 2 DSA/RSA authentication.
1d1ffb87 1188These files are not
610cd5c6 1189sensitive and can (but need not) be readable by anyone.
1d1ffb87 1190These files are
c44559d2 1191never used automatically and are not necessary; they are only provided for
bf740959 1192the convenience of the user.
1193.It Pa $HOME/.ssh/config
610cd5c6 1194This is the per-user configuration file.
1195The format of this file is described above.
1196This file is used by the
bf740959 1197.Nm
610cd5c6 1198client.
1199This file does not usually contain any sensitive information,
bf740959 1200but the recommended permissions are read/write for the user, and not
1201accessible by others.
1202.It Pa $HOME/.ssh/authorized_keys
610cd5c6 1203Lists the RSA keys that can be used for logging in as this user.
1204The format of this file is described in the
bf740959 1205.Xr sshd 8
610cd5c6 1206manual page.
1207In the simplest form the format is the same as the .pub
bf740959 1208identity files (that is, each line contains the number of bits in
1209modulus, public exponent, modulus, and comment fields, separated by
610cd5c6 1210spaces).
1211This file is not highly sensitive, but the recommended
bf740959 1212permissions are read/write for the user, and not accessible by others.
1d1ffb87 1213.It Pa $HOME/.ssh/authorized_keys2
fa08c86b 1214Lists the public keys (DSA/RSA) that can be used for logging in as this user.
1d1ffb87 1215This file is not highly sensitive, but the recommended
1216permissions are read/write for the user, and not accessible by others.
1217.It Pa /etc/ssh_known_hosts, /etc/ssh_known_hosts2
610cd5c6 1218Systemwide list of known host keys.
1d1ffb87 1219.Pa /etc/ssh_known_hosts
1220contains RSA and
1221.Pa /etc/ssh_known_hosts2
fa08c86b 1222contains DSA or RSA keys for protocol version 2.
1d1ffb87 1223These files should be prepared by the
bf740959 1224system administrator to contain the public host keys of all machines in the
610cd5c6 1225organization.
1226This file should be world-readable.
1227This file contains
bf740959 1228public keys, one per line, in the following format (fields separated
1229by spaces): system name, number of bits in modulus, public exponent,
610cd5c6 1230modulus, and optional comment field.
1231When different names are used
bf740959 1232for the same machine, all such names should be listed, separated by
610cd5c6 1233commas.
1234The format is described on the
bf740959 1235.Xr sshd 8
1236manual page.
1237.Pp
1238The canonical system name (as returned by name servers) is used by
1239.Xr sshd 8
1240to verify the client host when logging in; other names are needed because
1241.Nm
1242does not convert the user-supplied name to a canonical name before
1243checking the key, because someone with access to the name servers
1244would then be able to fool host authentication.
5f4fdfae 1245.It Pa /etc/ssh_config
610cd5c6 1246Systemwide configuration file.
1247This file provides defaults for those
bf740959 1248values that are not specified in the user's configuration file, and
610cd5c6 1249for those users who do not have a configuration file.
1250This file must be world-readable.
bf740959 1251.It Pa $HOME/.rhosts
1252This file is used in
1253.Pa \&.rhosts
1254authentication to list the
610cd5c6 1255host/user pairs that are permitted to log in.
1256(Note that this file is
bf740959 1257also used by rlogin and rsh, which makes using this file insecure.)
1258Each line of the file contains a host name (in the canonical form
1259returned by name servers), and then a user name on that host,
610cd5c6 1260separated by a space.
e91c60f2 1261On some machines this file may need to be
bf740959 1262world-readable if the user's home directory is on a NFS partition,
1263because
1264.Xr sshd 8
610cd5c6 1265reads it as root.
1266Additionally, this file must be owned by the user,
1267and must not have write permissions for anyone else.
1268The recommended
bf740959 1269permission for most machines is read/write for the user, and not
1270accessible by others.
1271.Pp
1272Note that by default
1273.Xr sshd 8
1274will be installed so that it requires successful RSA host
610cd5c6 1275authentication before permitting \s+2.\s0rhosts authentication.
1276If your server machine does not have the client's host key in
5f4fdfae 1277.Pa /etc/ssh_known_hosts ,
bf740959 1278you can store it in
1279.Pa $HOME/.ssh/known_hosts .
1280The easiest way to do this is to
1281connect back to the client from the server machine using ssh; this
1d1ffb87 1282will automatically add the host key to
bf740959 1283.Pa $HOME/.ssh/known_hosts .
1284.It Pa $HOME/.shosts
1285This file is used exactly the same way as
1286.Pa \&.rhosts .
1287The purpose for
1288having this file is to be able to use rhosts authentication with
1289.Nm
1290without permitting login with
1291.Xr rlogin 1
1292or
1293.Xr rsh 1 .
1294.It Pa /etc/hosts.equiv
1295This file is used during
610cd5c6 1296.Pa \&.rhosts authentication.
1297It contains
bf740959 1298canonical hosts names, one per line (the full format is described on
1299the
1300.Xr sshd 8
610cd5c6 1301manual page).
1302If the client host is found in this file, login is
bf740959 1303automatically permitted provided client and server user names are the
610cd5c6 1304same.
1305Additionally, successful RSA host authentication is normally
1306required.
1307This file should only be writable by root.
5f4fdfae 1308.It Pa /etc/shosts.equiv
f54651ce 1309This file is processed exactly as
bf740959 1310.Pa /etc/hosts.equiv .
1311This file may be useful to permit logins using
1312.Nm
1313but not using rsh/rlogin.
5f4fdfae 1314.It Pa /etc/sshrc
bf740959 1315Commands in this file are executed by
1316.Nm
1317when the user logs in just before the user's shell (or command) is started.
1318See the
1319.Xr sshd 8
1320manual page for more information.
1321.It Pa $HOME/.ssh/rc
1322Commands in this file are executed by
1323.Nm
1324when the user logs in just before the user's shell (or command) is
1325started.
f54651ce 1326See the
bf740959 1327.Xr sshd 8
1328manual page for more information.
83b7f649 1329.It Pa $HOME/.ssh/environment
1330Contains additional definitions for environment variables, see section
1331.Sx ENVIRONMENT
1332above.
b5e300c2 1333.El
fa08c86b 1334.Sh AUTHORS
5fb622e4 1335OpenSSH is a derivative of the original and free
1336ssh 1.2.12 release by Tatu Ylonen.
1337Aaron Campbell, Bob Beck, Markus Friedl, Niels Provos,
1338Theo de Raadt and Dug Song
1339removed many bugs, re-added newer features and
1340created OpenSSH.
1341Markus Friedl contributed the support for SSH
1342protocol versions 1.5 and 2.0.
bf740959 1343.Sh SEE ALSO
1344.Xr rlogin 1 ,
1345.Xr rsh 1 ,
1346.Xr scp 1 ,
61e96248 1347.Xr sftp 1 ,
bf740959 1348.Xr ssh-add 1 ,
1349.Xr ssh-agent 1 ,
1350.Xr ssh-keygen 1 ,
1351.Xr telnet 1 ,
9afadca8 1352.Xr sshd 8
2cad6cef 1353.Rs
1354.%A T. Ylonen
1355.%A T. Kivinen
1356.%A M. Saarinen
1357.%A T. Rinne
1358.%A S. Lehtinen
1359.%T "SSH Protocol Architecture"
1360.%N draft-ietf-secsh-architecture-07.txt
1361.%D January 2001
1362.%O work in progress material
1363.Re
This page took 0.350709 seconds and 5 git commands to generate.