blob: d8b3775da7e88fec22e6ca050c959316b901e59a [file] [log] [blame]
Damien Miller32aa1441999-10-29 09:15:49 +10001.\" -*- nroff -*-
2.\"
Damien Miller32aa1441999-10-29 09:15:49 +10003.\" Author: Tatu Ylonen <ylo@cs.hut.fi>
Damien Miller32aa1441999-10-29 09:15:49 +10004.\" Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
5.\" All rights reserved
6.\"
Damien Millere4340be2000-09-16 13:29:08 +11007.\" As far as I am concerned, the code I have written for this software
8.\" can be used freely for any purpose. Any derived versions of this
9.\" software must be clearly marked as such, and if the derived work is
10.\" incompatible with the protocol description in the RFC file, it must be
11.\" called by a name other than "ssh" or "Secure Shell".
Damien Miller32aa1441999-10-29 09:15:49 +100012.\"
Ben Lindstrom92a2e382001-03-05 06:59:27 +000013.\" Copyright (c) 1999,2000 Markus Friedl. All rights reserved.
14.\" Copyright (c) 1999 Aaron Campbell. All rights reserved.
15.\" Copyright (c) 1999 Theo de Raadt. All rights reserved.
Damien Millere4340be2000-09-16 13:29:08 +110016.\"
17.\" Redistribution and use in source and binary forms, with or without
18.\" modification, are permitted provided that the following conditions
19.\" are met:
20.\" 1. Redistributions of source code must retain the above copyright
21.\" notice, this list of conditions and the following disclaimer.
22.\" 2. Redistributions in binary form must reproduce the above copyright
23.\" notice, this list of conditions and the following disclaimer in the
24.\" documentation and/or other materials provided with the distribution.
25.\"
26.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
27.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
28.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
29.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
30.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
31.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
32.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
33.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
34.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
35.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Damien Miller32aa1441999-10-29 09:15:49 +100036.\"
Damien Miller081f3c72010-08-03 16:05:25 +100037.\" $OpenBSD: ssh.1,v 1.307 2010/07/23 08:49:25 dtucker Exp $
38.Dd $Mdocdate: July 23 2010 $
Damien Miller32aa1441999-10-29 09:15:49 +100039.Dt SSH 1
40.Os
41.Sh NAME
42.Nm ssh
Ben Lindstromd58eb5f2001-03-07 06:07:22 +000043.Nd OpenSSH SSH client (remote login program)
Damien Miller32aa1441999-10-29 09:15:49 +100044.Sh SYNOPSIS
45.Nm ssh
Damien Millerbcfbc482010-07-16 13:59:11 +100046.Bk -words
Damien Millere272a5b2008-11-03 19:22:37 +110047.Op Fl 1246AaCfgKkMNnqsTtVvXxYy
Ben Lindstrome0f88042001-04-30 13:06:24 +000048.Op Fl b Ar bind_address
Damien Miller30c3d422000-05-09 11:02:59 +100049.Op Fl c Ar cipher_spec
Damien Millerbcfbc482010-07-16 13:59:11 +100050.Op Fl D Oo Ar bind_address : Oc Ns Ar port
Damien Miller32aa1441999-10-29 09:15:49 +100051.Op Fl e Ar escape_char
Ben Lindstrom14f31ab2001-09-12 17:48:04 +000052.Op Fl F Ar configfile
Damien Miller048dc932010-02-12 09:22:04 +110053.Op Fl I Ar pkcs11
Darren Tucker61776952003-10-02 16:19:47 +100054.Op Fl i Ar identity_file
Damien Millerbcfbc482010-07-16 13:59:11 +100055.Op Fl L Oo Ar bind_address : Oc Ns Ar port : Ns Ar host : Ns Ar hostport
Darren Tucker61776952003-10-02 16:19:47 +100056.Op Fl l Ar login_name
57.Op Fl m Ar mac_spec
Darren Tucker7ebfc102004-11-07 20:06:19 +110058.Op Fl O Ar ctl_cmd
Darren Tucker61776952003-10-02 16:19:47 +100059.Op Fl o Ar option
Darren Tucker61776952003-10-02 16:19:47 +100060.Op Fl p Ar port
Damien Millerbcfbc482010-07-16 13:59:11 +100061.Op Fl R Oo Ar bind_address : Oc Ns Ar port : Ns Ar host : Ns Ar hostport
Darren Tucker7ebfc102004-11-07 20:06:19 +110062.Op Fl S Ar ctl_path
Darren Tucker7ad8dd22010-01-12 19:40:27 +110063.Op Fl W Ar host : Ns Ar port
Damien Millerbcfbc482010-07-16 13:59:11 +100064.Op Fl w Ar local_tun Ns Op : Ns Ar remote_tun
Darren Tucker61776952003-10-02 16:19:47 +100065.Oo Ar user Ns @ Oc Ns Ar hostname
Damien Miller32aa1441999-10-29 09:15:49 +100066.Op Ar command
Damien Millerbcfbc482010-07-16 13:59:11 +100067.Ek
Damien Miller22c77262000-04-13 12:26:34 +100068.Sh DESCRIPTION
Damien Miller32aa1441999-10-29 09:15:49 +100069.Nm
Ben Lindstromd58eb5f2001-03-07 06:07:22 +000070(SSH client) is a program for logging into a remote machine and for
Damien Miller7684ee12000-03-17 23:40:15 +110071executing commands on a remote machine.
Darren Tucker61776952003-10-02 16:19:47 +100072It is intended to replace rlogin and rsh,
73and provide secure encrypted communications between
Damien Miller7684ee12000-03-17 23:40:15 +110074two untrusted hosts over an insecure network.
Damien Miller8bfaf932006-01-14 10:09:30 +110075X11 connections and arbitrary TCP ports
Darren Tucker61776952003-10-02 16:19:47 +100076can also be forwarded over the secure channel.
Damien Miller32aa1441999-10-29 09:15:49 +100077.Pp
78.Nm
Damien Miller22c77262000-04-13 12:26:34 +100079connects and logs into the specified
Darren Tucker61776952003-10-02 16:19:47 +100080.Ar hostname
81(with optional
82.Ar user
83name).
Damien Miller32aa1441999-10-29 09:15:49 +100084The user must prove
Damien Millere247cc42000-05-07 12:03:14 +100085his/her identity to the remote machine using one of several methods
Darren Tucker5434cfe2005-12-20 16:11:35 +110086depending on the protocol version used (see below).
Damien Millere247cc42000-05-07 12:03:14 +100087.Pp
Darren Tucker61776952003-10-02 16:19:47 +100088If
89.Ar command
90is specified,
Darren Tuckerb18c8672005-12-20 16:10:09 +110091it is executed on the remote host instead of a login shell.
Darren Tucker0b42e6d2004-08-13 21:22:40 +100092.Pp
Damien Miller0bc1bd82000-11-13 22:57:25 +110093The options are as follows:
Damien Miller32aa1441999-10-29 09:15:49 +100094.Bl -tag -width Ds
Darren Tucker61776952003-10-02 16:19:47 +100095.It Fl 1
96Forces
97.Nm
98to try protocol version 1 only.
99.It Fl 2
100Forces
101.Nm
102to try protocol version 2 only.
103.It Fl 4
104Forces
105.Nm
106to use IPv4 addresses only.
107.It Fl 6
108Forces
109.Nm
110to use IPv6 addresses only.
Damien Millerb1715dc2000-05-30 13:44:51 +1000111.It Fl A
112Enables forwarding of the authentication agent connection.
113This can also be specified on a per-host basis in a configuration file.
Damien Millerb5fdfaa2002-09-12 09:52:03 +1000114.Pp
Damien Miller495dca32003-04-01 21:42:14 +1000115Agent forwarding should be enabled with caution.
116Users with the ability to bypass file permissions on the remote host
Darren Tuckerae69e1d2009-10-24 11:41:34 +1100117(for the agent's
Darren Tucker98c9aec2009-10-24 11:42:44 +1100118.Ux Ns -domain
119socket) can access the local agent through the forwarded connection.
Damien Miller495dca32003-04-01 21:42:14 +1000120An attacker cannot obtain key material from the agent,
Damien Millerb5fdfaa2002-09-12 09:52:03 +1000121however they can perform operations on the keys that enable them to
122authenticate using the identities loaded into the agent.
Darren Tucker61776952003-10-02 16:19:47 +1000123.It Fl a
124Disables forwarding of the authentication agent connection.
Ben Lindstrome0f88042001-04-30 13:06:24 +0000125.It Fl b Ar bind_address
Darren Tuckera5cf8552005-07-14 17:04:18 +1000126Use
127.Ar bind_address
128on the local machine as the source address
129of the connection.
130Only useful on systems with more than one address.
Darren Tucker61776952003-10-02 16:19:47 +1000131.It Fl C
132Requests compression of all data (including stdin, stdout, stderr, and
Damien Miller8bfaf932006-01-14 10:09:30 +1100133data for forwarded X11 and TCP connections).
Darren Tucker61776952003-10-02 16:19:47 +1000134The compression algorithm is the same used by
135.Xr gzip 1 ,
136and the
137.Dq level
138can be controlled by the
139.Cm CompressionLevel
140option for protocol version 1.
141Compression is desirable on modem lines and other
142slow connections, but will only slow down things on fast networks.
143The default value can be set on a host-by-host basis in the
144configuration files; see the
145.Cm Compression
146option.
Damien Miller05202ff2004-06-15 10:30:39 +1000147.It Fl c Ar cipher_spec
148Selects the cipher specification for encrypting the session.
149.Pp
150Protocol version 1 allows specification of a single cipher.
Darren Tucker1e4308e2005-10-03 18:18:40 +1000151The supported values are
Damien Miller05202ff2004-06-15 10:30:39 +1000152.Dq 3des ,
Darren Tuckerff9f4842005-12-20 16:10:45 +1100153.Dq blowfish ,
Damien Miller05202ff2004-06-15 10:30:39 +1000154and
155.Dq des .
Damien Miller32aa1441999-10-29 09:15:49 +1000156.Ar 3des
157(triple-des) is an encrypt-decrypt-encrypt triple with three different keys.
Damien Miller05202ff2004-06-15 10:30:39 +1000158It is believed to be secure.
Damien Miller32aa1441999-10-29 09:15:49 +1000159.Ar blowfish
Darren Tucker61776952003-10-02 16:19:47 +1000160is a fast block cipher; it appears very secure and is much faster than
Damien Miller7684ee12000-03-17 23:40:15 +1100161.Ar 3des .
Ben Lindstromffa1dd62001-09-12 16:52:28 +0000162.Ar des
163is only supported in the
164.Nm
165client for interoperability with legacy protocol 1 implementations
166that do not support the
167.Ar 3des
Damien Miller495dca32003-04-01 21:42:14 +1000168cipher.
169Its use is strongly discouraged due to cryptographic weaknesses.
Damien Miller05202ff2004-06-15 10:30:39 +1000170The default is
171.Dq 3des .
172.Pp
Damien Miller35978212005-12-24 14:56:47 +1100173For protocol version 2,
Damien Miller05202ff2004-06-15 10:30:39 +1000174.Ar cipher_spec
175is a comma-separated list of ciphers
176listed in order of preference.
Darren Tucker3a6a51f2009-06-21 17:48:52 +1000177See the
178.Cm Ciphers
Damien Miller081f3c72010-08-03 16:05:25 +1000179keyword in
180.Xr ssh_config 5
181for more information.
Darren Tuckerc8d64212005-10-03 18:13:42 +1000182.It Fl D Xo
183.Sm off
184.Oo Ar bind_address : Oc
185.Ar port
186.Sm on
187.Xc
Darren Tucker61776952003-10-02 16:19:47 +1000188Specifies a local
189.Dq dynamic
190application-level port forwarding.
191This works by allocating a socket to listen to
192.Ar port
Darren Tuckerc8d64212005-10-03 18:13:42 +1000193on the local side, optionally bound to the specified
194.Ar bind_address .
195Whenever a connection is made to this port, the
Darren Tucker61776952003-10-02 16:19:47 +1000196connection is forwarded over the secure channel, and the application
197protocol is then used to determine where to connect to from the
198remote machine.
199Currently the SOCKS4 and SOCKS5 protocols are supported, and
200.Nm
201will act as a SOCKS server.
202Only root can forward privileged ports.
203Dynamic port forwardings can also be specified in the configuration file.
Darren Tuckerc8d64212005-10-03 18:13:42 +1000204.Pp
205IPv6 addresses can be specified with an alternative syntax:
206.Sm off
207.Xo
208.Op Ar bind_address No /
209.Ar port
210.Xc
211.Sm on
212or by enclosing the address in square brackets.
213Only the superuser can forward privileged ports.
214By default, the local port is bound in accordance with the
215.Cm GatewayPorts
216setting.
217However, an explicit
218.Ar bind_address
219may be used to bind the connection to a specific address.
220The
221.Ar bind_address
222of
223.Dq localhost
224indicates that the listening port be bound for local use only, while an
225empty address or
226.Sq *
227indicates that the port should be available from all interfaces.
Damien Miller2142ba02005-12-24 14:56:29 +1100228.It Fl e Ar escape_char
Damien Miller32aa1441999-10-29 09:15:49 +1000229Sets the escape character for sessions with a pty (default:
230.Ql ~ ) .
Damien Miller7684ee12000-03-17 23:40:15 +1100231The escape character is only recognized at the beginning of a line.
232The escape character followed by a dot
Damien Miller32aa1441999-10-29 09:15:49 +1000233.Pq Ql \&.
Darren Tucker61776952003-10-02 16:19:47 +1000234closes the connection;
235followed by control-Z suspends the connection;
236and followed by itself sends the escape character once.
Damien Miller7684ee12000-03-17 23:40:15 +1100237Setting the character to
Damien Miller32aa1441999-10-29 09:15:49 +1000238.Dq none
239disables any escapes and makes the session fully transparent.
Darren Tucker61776952003-10-02 16:19:47 +1000240.It Fl F Ar configfile
241Specifies an alternative per-user configuration file.
242If a configuration file is given on the command line,
243the system-wide configuration file
244.Pq Pa /etc/ssh/ssh_config
245will be ignored.
246The default for the per-user configuration file is
Damien Miller167ea5d2005-05-26 12:04:02 +1000247.Pa ~/.ssh/config .
Damien Miller32aa1441999-10-29 09:15:49 +1000248.It Fl f
249Requests
250.Nm
Damien Miller7684ee12000-03-17 23:40:15 +1100251to go to background just before command execution.
252This is useful if
Damien Miller32aa1441999-10-29 09:15:49 +1000253.Nm
254is going to ask for passwords or passphrases, but the user
Damien Miller7684ee12000-03-17 23:40:15 +1100255wants it in the background.
Damien Miller22c77262000-04-13 12:26:34 +1000256This implies
Damien Miller32aa1441999-10-29 09:15:49 +1000257.Fl n .
258The recommended way to start X11 programs at a remote site is with
259something like
260.Ic ssh -f host xterm .
Darren Tucker9a2a6092008-07-04 12:53:50 +1000261.Pp
262If the
263.Cm ExitOnForwardFailure
264configuration option is set to
265.Dq yes ,
266then a client started with
267.Fl f
268will wait for all remote port forwards to be successfully established
269before placing itself in the background.
Damien Miller396691a2000-01-20 22:44:08 +1100270.It Fl g
271Allows remote hosts to connect to local forwarded ports.
Damien Miller7ea845e2010-02-12 09:21:02 +1100272.It Fl I Ar pkcs11
Damien Millerd400da52010-02-12 09:26:23 +1100273Specify the PKCS#11 shared library
Darren Tucker61776952003-10-02 16:19:47 +1000274.Nm
Damien Millera7618442010-02-12 09:26:02 +1100275should use to communicate with a PKCS#11 token providing the user's
Darren Tucker61776952003-10-02 16:19:47 +1000276private RSA key.
Damien Miller32aa1441999-10-29 09:15:49 +1000277.It Fl i Ar identity_file
Damien Millerfae23862002-01-22 23:32:26 +1100278Selects a file from which the identity (private key) for
Damien Miller0bc1bd82000-11-13 22:57:25 +1100279RSA or DSA authentication is read.
Damien Millerfae23862002-01-22 23:32:26 +1100280The default is
Damien Miller167ea5d2005-05-26 12:04:02 +1000281.Pa ~/.ssh/identity
Damien Millerfae23862002-01-22 23:32:26 +1100282for protocol version 1, and
Damien Miller167ea5d2005-05-26 12:04:02 +1000283.Pa ~/.ssh/id_rsa
Damien Millerfae23862002-01-22 23:32:26 +1100284and
Damien Miller167ea5d2005-05-26 12:04:02 +1000285.Pa ~/.ssh/id_dsa
Damien Millerfae23862002-01-22 23:32:26 +1100286for protocol version 2.
Damien Miller7684ee12000-03-17 23:40:15 +1100287Identity files may also be specified on
288a per-host basis in the configuration file.
289It is possible to have multiple
Damien Miller32aa1441999-10-29 09:15:49 +1000290.Fl i
291options (and multiple identities specified in
292configuration files).
Damien Miller5059d8d2010-03-05 21:31:11 +1100293.Nm
294will also try to load certificate information from the filename obtained
295by appending
296.Pa -cert.pub
297to identity filenames.
Darren Tucker415bddc2007-06-12 23:43:16 +1000298.It Fl K
299Enables GSSAPI-based authentication and forwarding (delegation) of GSSAPI
300credentials to the server.
Damien Miller32aa1441999-10-29 09:15:49 +1000301.It Fl k
Damien Millere0113cc2003-11-24 13:10:09 +1100302Disables forwarding (delegation) of GSSAPI credentials to the server.
Darren Tucker61776952003-10-02 16:19:47 +1000303.It Fl L Xo
304.Sm off
Damien Millerf91ee4c2005-03-01 21:24:33 +1100305.Oo Ar bind_address : Oc
Darren Tucker61776952003-10-02 16:19:47 +1000306.Ar port : host : hostport
307.Sm on
308.Xc
309Specifies that the given port on the local (client) host is to be
310forwarded to the given host and port on the remote side.
311This works by allocating a socket to listen to
312.Ar port
Damien Millerf91ee4c2005-03-01 21:24:33 +1100313on the local side, optionally bound to the specified
314.Ar bind_address .
315Whenever a connection is made to this port, the
Darren Tucker61776952003-10-02 16:19:47 +1000316connection is forwarded over the secure channel, and a connection is
317made to
318.Ar host
319port
320.Ar hostport
321from the remote machine.
322Port forwardings can also be specified in the configuration file.
Darren Tucker61776952003-10-02 16:19:47 +1000323IPv6 addresses can be specified with an alternative syntax:
324.Sm off
325.Xo
Damien Millerb096ac42005-03-09 11:00:05 +1100326.Op Ar bind_address No /
Darren Tucker61776952003-10-02 16:19:47 +1000327.Ar port No / Ar host No /
Damien Millerf91ee4c2005-03-01 21:24:33 +1100328.Ar hostport
Darren Tucker61776952003-10-02 16:19:47 +1000329.Xc
330.Sm on
Damien Millerf91ee4c2005-03-01 21:24:33 +1100331or by enclosing the address in square brackets.
332Only the superuser can forward privileged ports.
333By default, the local port is bound in accordance with the
334.Cm GatewayPorts
335setting.
336However, an explicit
337.Ar bind_address
338may be used to bind the connection to a specific address.
339The
340.Ar bind_address
341of
342.Dq localhost
Damien Miller36bf7dd2005-03-02 12:02:47 +1100343indicates that the listening port be bound for local use only, while an
344empty address or
345.Sq *
Damien Millerf91ee4c2005-03-01 21:24:33 +1100346indicates that the port should be available from all interfaces.
Damien Miller32aa1441999-10-29 09:15:49 +1000347.It Fl l Ar login_name
Damien Miller7684ee12000-03-17 23:40:15 +1100348Specifies the user to log in as on the remote machine.
349This also may be specified on a per-host basis in the configuration file.
Damien Miller0e220db2004-06-15 10:34:08 +1000350.It Fl M
351Places the
352.Nm
353client into
354.Dq master
355mode for connection sharing.
Damien Miller88b25522005-12-31 16:23:15 +1100356Multiple
357.Fl M
358options places
359.Nm
360into
361.Dq master
362mode with confirmation required before slave connections are accepted.
Damien Miller0e220db2004-06-15 10:34:08 +1000363Refer to the description of
364.Cm ControlMaster
365in
366.Xr ssh_config 5
367for details.
Damien Miller5d1eceb2004-06-30 22:37:57 +1000368.It Fl m Ar mac_spec
369Additionally, for protocol version 2 a comma-separated list of MAC
370(message authentication code) algorithms can
371be specified in order of preference.
372See the
373.Cm MACs
374keyword for more information.
Darren Tucker61776952003-10-02 16:19:47 +1000375.It Fl N
376Do not execute a remote command.
377This is useful for just forwarding ports
378(protocol version 2 only).
Damien Miller32aa1441999-10-29 09:15:49 +1000379.It Fl n
380Redirects stdin from
381.Pa /dev/null
382(actually, prevents reading from stdin).
383This must be used when
384.Nm
Damien Miller7684ee12000-03-17 23:40:15 +1100385is run in the background.
386A common trick is to use this to run X11 programs on a remote machine.
387For example,
Damien Miller32aa1441999-10-29 09:15:49 +1000388.Ic ssh -n shadows.cs.hut.fi emacs &
389will start an emacs on shadows.cs.hut.fi, and the X11
390connection will be automatically forwarded over an encrypted channel.
391The
392.Nm
393program will be put in the background.
394(This does not work if
395.Nm
396needs to ask for a password or passphrase; see also the
397.Fl f
398option.)
Darren Tuckere04644c2004-12-03 14:08:45 +1100399.It Fl O Ar ctl_cmd
400Control an active connection multiplexing master process.
401When the
402.Fl O
403option is specified, the
404.Ar ctl_cmd
405argument is interpreted and passed to the master process.
406Valid commands are:
407.Dq check
Damien Miller388f6fc2010-05-21 14:57:35 +1000408(check that the master process is running),
409.Dq forward
410(request forwardings without command execution) and
Darren Tuckere04644c2004-12-03 14:08:45 +1100411.Dq exit
412(request the master to exit).
Damien Miller32aa1441999-10-29 09:15:49 +1000413.It Fl o Ar option
Ben Lindstrom14c62eb2001-08-15 23:25:46 +0000414Can be used to give options in the format used in the configuration file.
Damien Miller32aa1441999-10-29 09:15:49 +1000415This is useful for specifying options for which there is no separate
Damien Miller7684ee12000-03-17 23:40:15 +1100416command-line flag.
Darren Tucker61776952003-10-02 16:19:47 +1000417For full details of the options listed below, and their possible values, see
418.Xr ssh_config 5 .
419.Pp
420.Bl -tag -width Ds -offset indent -compact
421.It AddressFamily
422.It BatchMode
423.It BindAddress
424.It ChallengeResponseAuthentication
425.It CheckHostIP
426.It Cipher
427.It Ciphers
428.It ClearAllForwardings
429.It Compression
430.It CompressionLevel
431.It ConnectionAttempts
Darren Tuckeredae0ec2004-05-02 22:15:52 +1000432.It ConnectTimeout
Damien Miller0e220db2004-06-15 10:34:08 +1000433.It ControlMaster
434.It ControlPath
Darren Tucker61776952003-10-02 16:19:47 +1000435.It DynamicForward
Darren Tucker61776952003-10-02 16:19:47 +1000436.It EscapeChar
Darren Tuckere7d4b192006-07-12 22:17:10 +1000437.It ExitOnForwardFailure
Darren Tucker61776952003-10-02 16:19:47 +1000438.It ForwardAgent
439.It ForwardX11
Darren Tucker0a118da2003-10-15 15:54:32 +1000440.It ForwardX11Trusted
Darren Tucker61776952003-10-02 16:19:47 +1000441.It GatewayPorts
442.It GlobalKnownHostsFile
443.It GSSAPIAuthentication
444.It GSSAPIDelegateCredentials
Damien Millere1776152005-03-01 21:47:37 +1100445.It HashKnownHosts
Darren Tucker61776952003-10-02 16:19:47 +1000446.It Host
447.It HostbasedAuthentication
448.It HostKeyAlgorithms
449.It HostKeyAlias
450.It HostName
451.It IdentityFile
Damien Millerbd394c32004-03-08 23:12:36 +1100452.It IdentitiesOnly
Darren Tucker636ca902004-11-05 20:22:00 +1100453.It KbdInteractiveDevices
Damien Millerd27b9472005-12-13 19:29:02 +1100454.It LocalCommand
Darren Tucker61776952003-10-02 16:19:47 +1000455.It LocalForward
456.It LogLevel
457.It MACs
458.It NoHostAuthenticationForLocalhost
459.It NumberOfPasswordPrompts
460.It PasswordAuthentication
Damien Millerd27b9472005-12-13 19:29:02 +1100461.It PermitLocalCommand
Damien Miller7ea845e2010-02-12 09:21:02 +1100462.It PKCS11Provider
Darren Tucker61776952003-10-02 16:19:47 +1000463.It Port
464.It PreferredAuthentications
465.It Protocol
466.It ProxyCommand
467.It PubkeyAuthentication
Darren Tucker62388b22006-01-20 11:31:47 +1100468.It RekeyLimit
Darren Tucker61776952003-10-02 16:19:47 +1000469.It RemoteForward
470.It RhostsRSAAuthentication
471.It RSAAuthentication
Darren Tucker7a6c0662004-05-02 22:14:03 +1000472.It SendEnv
Damien Miller509b0102003-12-17 16:33:10 +1100473.It ServerAliveInterval
474.It ServerAliveCountMax
Darren Tucker61776952003-10-02 16:19:47 +1000475.It StrictHostKeyChecking
Damien Miller12c150e2003-12-17 16:31:10 +1100476.It TCPKeepAlive
Damien Millerd27b9472005-12-13 19:29:02 +1100477.It Tunnel
478.It TunnelDevice
Darren Tucker61776952003-10-02 16:19:47 +1000479.It UsePrivilegedPort
480.It User
481.It UserKnownHostsFile
482.It VerifyHostKeyDNS
Damien Miller86399202008-06-30 00:04:31 +1000483.It VisualHostKey
Darren Tucker61776952003-10-02 16:19:47 +1000484.It XAuthLocation
485.El
Damien Miller32aa1441999-10-29 09:15:49 +1000486.It Fl p Ar port
Damien Miller7684ee12000-03-17 23:40:15 +1100487Port to connect to on the remote host.
488This can be specified on a
Damien Miller32aa1441999-10-29 09:15:49 +1000489per-host basis in the configuration file.
Damien Miller32aa1441999-10-29 09:15:49 +1000490.It Fl q
Damien Miller7684ee12000-03-17 23:40:15 +1100491Quiet mode.
Damien Millereb602472008-02-10 22:21:28 +1100492Causes most warning and diagnostic messages to be suppressed.
Darren Tucker61776952003-10-02 16:19:47 +1000493.It Fl R Xo
494.Sm off
Damien Millerf91ee4c2005-03-01 21:24:33 +1100495.Oo Ar bind_address : Oc
Darren Tucker61776952003-10-02 16:19:47 +1000496.Ar port : host : hostport
497.Sm on
498.Xc
Damien Miller32aa1441999-10-29 09:15:49 +1000499Specifies that the given port on the remote (server) host is to be
Damien Miller7684ee12000-03-17 23:40:15 +1100500forwarded to the given host and port on the local side.
501This works by allocating a socket to listen to
Damien Miller32aa1441999-10-29 09:15:49 +1000502.Ar port
503on the remote side, and whenever a connection is made to this port, the
504connection is forwarded over the secure channel, and a connection is
505made to
Damien Miller34132e52000-01-14 15:45:46 +1100506.Ar host
507port
508.Ar hostport
Damien Miller7684ee12000-03-17 23:40:15 +1100509from the local machine.
Damien Millerf91ee4c2005-03-01 21:24:33 +1100510.Pp
Damien Miller7684ee12000-03-17 23:40:15 +1100511Port forwardings can also be specified in the configuration file.
512Privileged ports can be forwarded only when
Damien Miller32aa1441999-10-29 09:15:49 +1000513logging in as root on the remote machine.
Damien Millerf91ee4c2005-03-01 21:24:33 +1100514IPv6 addresses can be specified by enclosing the address in square braces or
515using an alternative syntax:
Damien Millerf91ee4c2005-03-01 21:24:33 +1100516.Sm off
Damien Miller36bf7dd2005-03-02 12:02:47 +1100517.Xo
Damien Millerb096ac42005-03-09 11:00:05 +1100518.Op Ar bind_address No /
Damien Miller36bf7dd2005-03-02 12:02:47 +1100519.Ar host No / Ar port No /
520.Ar hostport
Damien Millerf91ee4c2005-03-01 21:24:33 +1100521.Xc .
Damien Miller36bf7dd2005-03-02 12:02:47 +1100522.Sm on
Damien Millerf91ee4c2005-03-01 21:24:33 +1100523.Pp
524By default, the listening socket on the server will be bound to the loopback
525interface only.
Darren Tucker63917bd2008-11-11 16:33:48 +1100526This may be overridden by specifying a
Damien Millerf91ee4c2005-03-01 21:24:33 +1100527.Ar bind_address .
Damien Miller36bf7dd2005-03-02 12:02:47 +1100528An empty
529.Ar bind_address ,
Damien Millerf91ee4c2005-03-01 21:24:33 +1100530or the address
Damien Miller36bf7dd2005-03-02 12:02:47 +1100531.Ql * ,
Damien Millerf91ee4c2005-03-01 21:24:33 +1100532indicates that the remote socket should listen on all interfaces.
533Specifying a remote
534.Ar bind_address
Damien Miller36bf7dd2005-03-02 12:02:47 +1100535will only succeed if the server's
536.Cm GatewayPorts
Damien Millerf91ee4c2005-03-01 21:24:33 +1100537option is enabled (see
Damien Miller36bf7dd2005-03-02 12:02:47 +1100538.Xr sshd_config 5 ) .
Damien Millere2f4cc52009-02-14 16:33:49 +1100539.Pp
540If the
541.Ar port
542argument is
Damien Miller65fa4ca2009-02-14 16:34:05 +1100543.Ql 0 ,
Damien Millere2f4cc52009-02-14 16:33:49 +1100544the listen port will be dynamically allocated on the server and reported
545to the client at run time.
Damien Miller388f6fc2010-05-21 14:57:35 +1000546When used together with
547.Ic -O forward
548the allocated port will be printed to the standard output.
Darren Tucker7ebfc102004-11-07 20:06:19 +1100549.It Fl S Ar ctl_path
Damien Miller67f30d72010-04-16 15:52:03 +1000550Specifies the location of a control socket for connection sharing,
Damien Miller9c60f242010-03-26 11:28:35 +1100551or the string
552.Dq none
553to disable connection sharing.
Damien Miller0e220db2004-06-15 10:34:08 +1000554Refer to the description of
Darren Tuckerba5c5922004-06-18 16:22:39 +1000555.Cm ControlPath
556and
Damien Miller0e220db2004-06-15 10:34:08 +1000557.Cm ControlMaster
558in
559.Xr ssh_config 5
560for details.
Darren Tucker61776952003-10-02 16:19:47 +1000561.It Fl s
562May be used to request invocation of a subsystem on the remote system.
563Subsystems are a feature of the SSH2 protocol which facilitate the use
564of SSH as a secure transport for other applications (eg.\&
565.Xr sftp 1 ) .
566The subsystem is specified as the remote command.
567.It Fl T
568Disable pseudo-tty allocation.
569.It Fl t
570Force pseudo-tty allocation.
571This can be used to execute arbitrary
572screen-based programs on a remote machine, which can be very useful,
Damien Miller208f1ed2006-03-15 11:56:03 +1100573e.g. when implementing menu services.
Darren Tucker61776952003-10-02 16:19:47 +1000574Multiple
575.Fl t
576options force tty allocation, even if
Ben Lindstrom19ceb172001-09-12 17:54:24 +0000577.Nm
Darren Tucker61776952003-10-02 16:19:47 +1000578has no local tty.
579.It Fl V
580Display the version number and exit.
581.It Fl v
582Verbose mode.
583Causes
Ben Lindstrom5ab6ae12001-02-10 22:08:03 +0000584.Nm
Darren Tucker61776952003-10-02 16:19:47 +1000585to print debugging messages about its progress.
586This is helpful in
587debugging connection, authentication, and configuration problems.
588Multiple
589.Fl v
590options increase the verbosity.
591The maximum is 3.
Darren Tucker7ad8dd22010-01-12 19:40:27 +1100592.It Fl W Ar host : Ns Ar port
593Requests that standard input and output on the client be forwarded to
594.Ar host
595on
596.Ar port
597over the secure channel.
598Implies
599.Fl N ,
600.Fl T ,
601.Cm ExitOnForwardFailure
602and
603.Cm ClearAllForwardings
604and works with Protocol version 2 only.
Damien Miller991dba42006-07-10 20:16:27 +1000605.It Fl w Xo
606.Ar local_tun Ns Op : Ns Ar remote_tun
607.Xc
608Requests
609tunnel
610device forwarding with the specified
Damien Millerd27b9472005-12-13 19:29:02 +1100611.Xr tun 4
Damien Miller991dba42006-07-10 20:16:27 +1000612devices between the client
613.Pq Ar local_tun
614and the server
615.Pq Ar remote_tun .
616.Pp
Damien Millercf1e3422005-12-24 14:56:04 +1100617The devices may be specified by numerical ID or the keyword
618.Dq any ,
619which uses the next available tunnel device.
Damien Miller991dba42006-07-10 20:16:27 +1000620If
621.Ar remote_tun
622is not specified, it defaults to
623.Dq any .
Damien Millercf1e3422005-12-24 14:56:04 +1100624See also the
Damien Millerd27b9472005-12-13 19:29:02 +1100625.Cm Tunnel
Damien Miller991dba42006-07-10 20:16:27 +1000626and
627.Cm TunnelDevice
628directives in
Damien Millerd27b9472005-12-13 19:29:02 +1100629.Xr ssh_config 5 .
Damien Miller991dba42006-07-10 20:16:27 +1000630If the
631.Cm Tunnel
632directive is unset, it is set to the default tunnel mode, which is
633.Dq point-to-point .
Darren Tucker61776952003-10-02 16:19:47 +1000634.It Fl X
635Enables X11 forwarding.
636This can also be specified on a per-host basis in a configuration file.
637.Pp
638X11 forwarding should be enabled with caution.
639Users with the ability to bypass file permissions on the remote host
640(for the user's X authorization database)
641can access the local X11 display through the forwarded connection.
642An attacker may then be able to perform activities such as keystroke monitoring.
Damien Miller947219e2005-03-02 13:22:30 +1100643.Pp
Damien Millerb022b232005-03-05 11:22:36 +1100644For this reason, X11 forwarding is subjected to X11 SECURITY extension
Damien Miller947219e2005-03-02 13:22:30 +1100645restrictions by default.
646Please refer to the
647.Nm
648.Fl Y
649option and the
650.Cm ForwardX11Trusted
651directive in
652.Xr ssh_config 5
653for more information.
Darren Tucker61776952003-10-02 16:19:47 +1000654.It Fl x
655Disables X11 forwarding.
Darren Tucker0a118da2003-10-15 15:54:32 +1000656.It Fl Y
657Enables trusted X11 forwarding.
Damien Miller947219e2005-03-02 13:22:30 +1100658Trusted X11 forwardings are not subjected to the X11 SECURITY extension
659controls.
Damien Millere272a5b2008-11-03 19:22:37 +1100660.It Fl y
661Send log information using the
662.Xr syslog 3
663system module.
664By default this information is sent to stderr.
Damien Miller32aa1441999-10-29 09:15:49 +1000665.El
Damien Millere9b333a2005-12-24 14:53:04 +1100666.Pp
667.Nm
668may additionally obtain configuration data from
669a per-user configuration file and a system-wide configuration file.
670The file format and configuration options are described in
671.Xr ssh_config 5 .
672.Pp
673.Nm
674exits with the exit status of the remote command or with 255
675if an error occurred.
Damien Millerc93a8132005-12-24 14:52:13 +1100676.Sh AUTHENTICATION
Darren Tucker94299ec2006-01-20 11:30:14 +1100677The OpenSSH SSH client supports SSH protocols 1 and 2.
Darren Tucker7a4a7652009-10-11 21:51:40 +1100678The default is to use protocol 2 only,
679though this can be changed via the
Damien Millerc93a8132005-12-24 14:52:13 +1100680.Cm Protocol
681option in
Darren Tucker7a4a7652009-10-11 21:51:40 +1100682.Xr ssh_config 5
683or the
Damien Millerc93a8132005-12-24 14:52:13 +1100684.Fl 1
685and
686.Fl 2
687options (see above).
688Both protocols support similar authentication methods,
Darren Tucker7a4a7652009-10-11 21:51:40 +1100689but protocol 2 is the default since
Damien Millerc93a8132005-12-24 14:52:13 +1100690it provides additional mechanisms for confidentiality
691(the traffic is encrypted using AES, 3DES, Blowfish, CAST128, or Arcfour)
Damien Millere45796f2007-06-11 14:01:42 +1000692and integrity (hmac-md5, hmac-sha1, umac-64, hmac-ripemd160).
Damien Millerc93a8132005-12-24 14:52:13 +1100693Protocol 1 lacks a strong mechanism for ensuring the
694integrity of the connection.
695.Pp
696The methods available for authentication are:
Damien Millerfbc94c82006-06-13 13:03:16 +1000697GSSAPI-based authentication,
Damien Millerc93a8132005-12-24 14:52:13 +1100698host-based authentication,
699public key authentication,
700challenge-response authentication,
701and password authentication.
702Authentication methods are tried in the order specified above,
703though protocol 2 has a configuration option to change the default order:
704.Cm PreferredAuthentications .
705.Pp
706Host-based authentication works as follows:
Darren Tuckerd3877b92005-12-20 16:09:36 +1100707If the machine the user logs in from is listed in
708.Pa /etc/hosts.equiv
709or
710.Pa /etc/shosts.equiv
711on the remote machine, and the user names are
712the same on both sides, or if the files
713.Pa ~/.rhosts
714or
715.Pa ~/.shosts
716exist in the user's home directory on the
717remote machine and contain a line containing the name of the client
718machine and the name of the user on that machine, the user is
Damien Millerc93a8132005-12-24 14:52:13 +1100719considered for login.
720Additionally, the server
721.Em must
722be able to verify the client's
723host key (see the description of
Darren Tuckerd3877b92005-12-20 16:09:36 +1100724.Pa /etc/ssh/ssh_known_hosts
725and
Damien Millerc93a8132005-12-24 14:52:13 +1100726.Pa ~/.ssh/known_hosts ,
727below)
728for login to be permitted.
Darren Tuckerd3877b92005-12-20 16:09:36 +1100729This authentication method closes security holes due to IP
Damien Millerc93a8132005-12-24 14:52:13 +1100730spoofing, DNS spoofing, and routing spoofing.
Darren Tuckerd3877b92005-12-20 16:09:36 +1100731[Note to the administrator:
732.Pa /etc/hosts.equiv ,
733.Pa ~/.rhosts ,
734and the rlogin/rsh protocol in general, are inherently insecure and should be
735disabled if security is desired.]
736.Pp
Damien Millerc93a8132005-12-24 14:52:13 +1100737Public key authentication works as follows:
738The scheme is based on public-key cryptography,
739using cryptosystems
740where encryption and decryption are done using separate keys,
741and it is unfeasible to derive the decryption key from the encryption key.
Darren Tuckerd3877b92005-12-20 16:09:36 +1100742The idea is that each user creates a public/private
743key pair for authentication purposes.
744The server knows the public key, and only the user knows the private key.
Damien Millerc93a8132005-12-24 14:52:13 +1100745.Nm
746implements public key authentication protocol automatically,
747using either the RSA or DSA algorithms.
748Protocol 1 is restricted to using only RSA keys,
749but protocol 2 may use either.
750The
751.Sx HISTORY
752section of
753.Xr ssl 8
754contains a brief discussion of the two algorithms.
Darren Tuckerd3877b92005-12-20 16:09:36 +1100755.Pp
756The file
757.Pa ~/.ssh/authorized_keys
758lists the public keys that are permitted for logging in.
759When the user logs in, the
760.Nm
761program tells the server which key pair it would like to use for
762authentication.
Damien Millerc93a8132005-12-24 14:52:13 +1100763The client proves that it has access to the private key
764and the server checks that the corresponding public key
765is authorized to accept the account.
Darren Tuckerd3877b92005-12-20 16:09:36 +1100766.Pp
Damien Millerc93a8132005-12-24 14:52:13 +1100767The user creates his/her key pair by running
Darren Tuckerd3877b92005-12-20 16:09:36 +1100768.Xr ssh-keygen 1 .
769This stores the private key in
770.Pa ~/.ssh/identity
Damien Millerc93a8132005-12-24 14:52:13 +1100771(protocol 1),
772.Pa ~/.ssh/id_dsa
773(protocol 2 DSA),
774or
775.Pa ~/.ssh/id_rsa
776(protocol 2 RSA)
Darren Tuckerd3877b92005-12-20 16:09:36 +1100777and stores the public key in
778.Pa ~/.ssh/identity.pub
Damien Millerc93a8132005-12-24 14:52:13 +1100779(protocol 1),
780.Pa ~/.ssh/id_dsa.pub
781(protocol 2 DSA),
782or
783.Pa ~/.ssh/id_rsa.pub
784(protocol 2 RSA)
Darren Tuckerd3877b92005-12-20 16:09:36 +1100785in the user's home directory.
Damien Millerc93a8132005-12-24 14:52:13 +1100786The user should then copy the public key
Darren Tuckerd3877b92005-12-20 16:09:36 +1100787to
788.Pa ~/.ssh/authorized_keys
Damien Millerc93a8132005-12-24 14:52:13 +1100789in his/her home directory on the remote machine.
790The
Darren Tuckerd3877b92005-12-20 16:09:36 +1100791.Pa authorized_keys
792file corresponds to the conventional
793.Pa ~/.rhosts
794file, and has one key
Damien Millerc93a8132005-12-24 14:52:13 +1100795per line, though the lines can be very long.
Darren Tuckerd3877b92005-12-20 16:09:36 +1100796After this, the user can log in without giving the password.
797.Pp
Damien Miller922b5412010-03-05 21:30:54 +1100798A variation on public key authentication
799is available in the form of certificate authentication:
800instead of a set of public/private keys,
801signed certificates are used.
802This has the advantage that a single trusted certification authority
803can be used in place of many public/private keys.
804See the
805.Sx CERTIFICATES
806section of
807.Xr ssh-keygen 1
808for more information.
809.Pp
810The most convenient way to use public key or certificate authentication
811may be with an authentication agent.
Darren Tuckerd3877b92005-12-20 16:09:36 +1100812See
813.Xr ssh-agent 1
814for more information.
815.Pp
Damien Millerc93a8132005-12-24 14:52:13 +1100816Challenge-response authentication works as follows:
817The server sends an arbitrary
818.Qq challenge
819text, and prompts for a response.
820Protocol 2 allows multiple challenges and responses;
821protocol 1 is restricted to just one challenge/response.
822Examples of challenge-response authentication include
823BSD Authentication (see
824.Xr login.conf 5 )
825and PAM (some non-OpenBSD systems).
826.Pp
827Finally, if other authentication methods fail,
Darren Tuckerd3877b92005-12-20 16:09:36 +1100828.Nm
829prompts the user for a password.
830The password is sent to the remote
831host for checking; however, since all communications are encrypted,
832the password cannot be seen by someone listening on the network.
Damien Miller48c94ab2006-01-02 23:38:00 +1100833.Pp
834.Nm
835automatically maintains and checks a database containing
836identification for all hosts it has ever been used with.
837Host keys are stored in
838.Pa ~/.ssh/known_hosts
839in the user's home directory.
840Additionally, the file
841.Pa /etc/ssh/ssh_known_hosts
842is automatically checked for known hosts.
843Any new hosts are automatically added to the user's file.
844If a host's identification ever changes,
845.Nm
846warns about this and disables password authentication to prevent
847server spoofing or man-in-the-middle attacks,
848which could otherwise be used to circumvent the encryption.
849The
850.Cm StrictHostKeyChecking
851option can be used to control logins to machines whose
852host key is not known or has changed.
853.Pp
Darren Tuckerd3877b92005-12-20 16:09:36 +1100854When the user's identity has been accepted by the server, the server
855either executes the given command, or logs into the machine and gives
856the user a normal shell on the remote machine.
857All communication with
858the remote command or shell will be automatically encrypted.
859.Pp
860If a pseudo-terminal has been allocated (normal login session), the
861user may use the escape characters noted below.
862.Pp
863If no pseudo-tty has been allocated,
864the session is transparent and can be used to reliably transfer binary data.
865On most systems, setting the escape character to
866.Dq none
867will also make the session transparent even if a tty is used.
868.Pp
869The session terminates when the command or shell on the remote
Damien Miller8bfaf932006-01-14 10:09:30 +1100870machine exits and all X11 and TCP connections have been closed.
Damien Miller52d20612005-12-24 14:52:36 +1100871.Sh ESCAPE CHARACTERS
Darren Tuckerd3877b92005-12-20 16:09:36 +1100872When a pseudo-terminal has been requested,
873.Nm
874supports a number of functions through the use of an escape character.
875.Pp
876A single tilde character can be sent as
877.Ic ~~
878or by following the tilde by a character other than those described below.
879The escape character must always follow a newline to be interpreted as
880special.
881The escape character can be changed in configuration files using the
882.Cm EscapeChar
883configuration directive or on the command line by the
884.Fl e
885option.
886.Pp
887The supported escapes (assuming the default
888.Ql ~ )
889are:
890.Bl -tag -width Ds
891.It Cm ~.
892Disconnect.
893.It Cm ~^Z
894Background
Damien Miller1164c292006-01-02 23:38:37 +1100895.Nm .
Darren Tuckerd3877b92005-12-20 16:09:36 +1100896.It Cm ~#
897List forwarded connections.
898.It Cm ~&
899Background
900.Nm
901at logout when waiting for forwarded connection / X11 sessions to terminate.
902.It Cm ~?
903Display a list of escape characters.
904.It Cm ~B
905Send a BREAK to the remote system
906(only useful for SSH protocol version 2 and if the peer supports it).
907.It Cm ~C
908Open command line.
909Currently this allows the addition of port forwardings using the
Damien Miller0164cb82008-11-05 16:30:31 +1100910.Fl L ,
Darren Tuckerd3877b92005-12-20 16:09:36 +1100911.Fl R
Damien Miller0164cb82008-11-05 16:30:31 +1100912and
913.Fl D
Damien Miller329cb012005-12-24 14:53:23 +1100914options (see above).
Darren Tuckerd3877b92005-12-20 16:09:36 +1100915It also allows the cancellation of existing remote port-forwardings
916using
Damien Miller57e8ad32006-07-10 20:20:52 +1000917.Sm off
918.Fl KR Oo Ar bind_address : Oc Ar port .
919.Sm on
Darren Tuckerd3877b92005-12-20 16:09:36 +1100920.Ic !\& Ns Ar command
921allows the user to execute a local command if the
922.Ic PermitLocalCommand
923option is enabled in
924.Xr ssh_config 5 .
925Basic help is available, using the
926.Fl h
927option.
928.It Cm ~R
929Request rekeying of the connection
930(only useful for SSH protocol version 2 and if the peer supports it).
931.El
Damien Millerf3177182006-01-14 10:09:13 +1100932.Sh TCP FORWARDING
933Forwarding of arbitrary TCP connections over the secure channel can
934be specified either on the command line or in a configuration file.
935One possible application of TCP forwarding is a secure connection to a
936mail server; another is going through firewalls.
937.Pp
938In the example below, we look at encrypting communication between
939an IRC client and server, even though the IRC server does not directly
940support encrypted communications.
941This works as follows:
942the user connects to the remote host using
943.Nm ,
944specifying a port to be used to forward connections
945to the remote server.
946After that it is possible to start the service which is to be encrypted
947on the client machine,
948connecting to the same local port,
949and
950.Nm
951will encrypt and forward the connection.
952.Pp
953The following example tunnels an IRC session from client machine
954.Dq 127.0.0.1
955(localhost)
956to remote server
957.Dq server.example.com :
958.Bd -literal -offset 4n
959$ ssh -f -L 1234:localhost:6667 server.example.com sleep 10
960$ irc -c '#users' -p 1234 pinky 127.0.0.1
961.Ed
962.Pp
963This tunnels a connection to IRC server
964.Dq server.example.com ,
965joining channel
966.Dq #users ,
967nickname
968.Dq pinky ,
969using port 1234.
970It doesn't matter which port is used,
971as long as it's greater than 1023
972(remember, only root can open sockets on privileged ports)
973and doesn't conflict with any ports already in use.
974The connection is forwarded to port 6667 on the remote server,
975since that's the standard port for IRC services.
976.Pp
977The
978.Fl f
979option backgrounds
980.Nm
981and the remote command
982.Dq sleep 10
983is specified to allow an amount of time
984(10 seconds, in the example)
985to start the service which is to be tunnelled.
986If no connections are made within the time specified,
987.Nm
988will exit.
Damien Millerf3177182006-01-14 10:09:13 +1100989.Sh X11 FORWARDING
Darren Tuckerd3877b92005-12-20 16:09:36 +1100990If the
991.Cm ForwardX11
992variable is set to
993.Dq yes
994(or see the description of the
Damien Millerd7f308f2005-12-24 14:55:16 +1100995.Fl X ,
996.Fl x ,
Darren Tuckerd3877b92005-12-20 16:09:36 +1100997and
Damien Millerd7f308f2005-12-24 14:55:16 +1100998.Fl Y
Damien Miller9a765b22005-12-24 14:53:44 +1100999options above)
Darren Tuckerd3877b92005-12-20 16:09:36 +11001000and the user is using X11 (the
1001.Ev DISPLAY
1002environment variable is set), the connection to the X11 display is
1003automatically forwarded to the remote side in such a way that any X11
1004programs started from the shell (or command) will go through the
1005encrypted channel, and the connection to the real X server will be made
1006from the local machine.
1007The user should not manually set
1008.Ev DISPLAY .
1009Forwarding of X11 connections can be
1010configured on the command line or in configuration files.
1011.Pp
1012The
1013.Ev DISPLAY
1014value set by
1015.Nm
1016will point to the server machine, but with a display number greater than zero.
1017This is normal, and happens because
1018.Nm
1019creates a
1020.Dq proxy
1021X server on the server machine for forwarding the
1022connections over the encrypted channel.
1023.Pp
1024.Nm
1025will also automatically set up Xauthority data on the server machine.
1026For this purpose, it will generate a random authorization cookie,
1027store it in Xauthority on the server, and verify that any forwarded
1028connections carry this cookie and replace it by the real cookie when
1029the connection is opened.
1030The real authentication cookie is never
1031sent to the server machine (and no cookies are sent in the plain).
1032.Pp
1033If the
1034.Cm ForwardAgent
1035variable is set to
1036.Dq yes
1037(or see the description of the
1038.Fl A
1039and
1040.Fl a
Damien Miller9a765b22005-12-24 14:53:44 +11001041options above) and
Darren Tuckerd3877b92005-12-20 16:09:36 +11001042the user is using an authentication agent, the connection to the agent
1043is automatically forwarded to the remote side.
Damien Millerbbc59092006-01-31 21:46:51 +11001044.Sh VERIFYING HOST KEYS
1045When connecting to a server for the first time,
1046a fingerprint of the server's public key is presented to the user
1047(unless the option
1048.Cm StrictHostKeyChecking
1049has been disabled).
1050Fingerprints can be determined using
1051.Xr ssh-keygen 1 :
1052.Pp
1053.Dl $ ssh-keygen -l -f /etc/ssh/ssh_host_rsa_key
1054.Pp
Darren Tuckerf6bffb12008-06-14 09:04:26 +10001055If the fingerprint is already known, it can be matched
1056and the key can be accepted or rejected.
1057Because of the difficulty of comparing host keys
1058just by looking at hex strings,
1059there is also support to compare host keys visually,
1060using
1061.Em random art .
1062By setting the
Damien Miller10288242008-06-30 00:04:03 +10001063.Cm VisualHostKey
Darren Tuckerf6bffb12008-06-14 09:04:26 +10001064option to
Damien Miller10288242008-06-30 00:04:03 +10001065.Dq yes ,
Darren Tuckerf6bffb12008-06-14 09:04:26 +10001066a small ASCII graphic gets displayed on every login to a server, no matter
1067if the session itself is interactive or not.
1068By learning the pattern a known server produces, a user can easily
1069find out that the host key has changed when a completely different pattern
1070is displayed.
1071Because these patterns are not unambiguous however, a pattern that looks
1072similar to the pattern remembered only gives a good probability that the
1073host key is the same, not guaranteed proof.
1074.Pp
1075To get a listing of the fingerprints along with their random art for
1076all known hosts, the following command line can be used:
1077.Pp
1078.Dl $ ssh-keygen -lv -f ~/.ssh/known_hosts
1079.Pp
Damien Millerbbc59092006-01-31 21:46:51 +11001080If the fingerprint is unknown,
1081an alternative method of verification is available:
1082SSH fingerprints verified by DNS.
1083An additional resource record (RR),
1084SSHFP,
1085is added to a zonefile
1086and the connecting client is able to match the fingerprint
1087with that of the key presented.
1088.Pp
1089In this example, we are connecting a client to a server,
1090.Dq host.example.com .
1091The SSHFP resource records should first be added to the zonefile for
1092host.example.com:
1093.Bd -literal -offset indent
Damien Millera1b3d632006-03-26 00:07:02 +11001094$ ssh-keygen -r host.example.com.
Damien Millerbbc59092006-01-31 21:46:51 +11001095.Ed
1096.Pp
1097The output lines will have to be added to the zonefile.
1098To check that the zone is answering fingerprint queries:
1099.Pp
1100.Dl $ dig -t SSHFP host.example.com
1101.Pp
1102Finally the client connects:
1103.Bd -literal -offset indent
1104$ ssh -o "VerifyHostKeyDNS ask" host.example.com
1105[...]
1106Matching host key fingerprint found in DNS.
1107Are you sure you want to continue connecting (yes/no)?
1108.Ed
1109.Pp
1110See the
1111.Cm VerifyHostKeyDNS
1112option in
1113.Xr ssh_config 5
1114for more information.
Darren Tucker248dd132006-01-20 11:30:58 +11001115.Sh SSH-BASED VIRTUAL PRIVATE NETWORKS
1116.Nm
1117contains support for Virtual Private Network (VPN) tunnelling
1118using the
1119.Xr tun 4
1120network pseudo-device,
1121allowing two networks to be joined securely.
1122The
1123.Xr sshd_config 5
1124configuration option
1125.Cm PermitTunnel
1126controls whether the server supports this,
1127and at what level (layer 2 or 3 traffic).
1128.Pp
1129The following example would connect client network 10.0.50.0/24
Damien Miller3975ee22006-11-05 05:31:33 +11001130with remote network 10.0.99.0/24 using a point-to-point connection
1131from 10.1.1.1 to 10.1.1.2,
1132provided that the SSH server running on the gateway to the remote network,
1133at 192.168.1.15, allows it.
1134.Pp
1135On the client:
Darren Tucker248dd132006-01-20 11:30:58 +11001136.Bd -literal -offset indent
1137# ssh -f -w 0:1 192.168.1.15 true
Damien Miller3975ee22006-11-05 05:31:33 +11001138# ifconfig tun0 10.1.1.1 10.1.1.2 netmask 255.255.255.252
1139# route add 10.0.99.0/24 10.1.1.2
1140.Ed
1141.Pp
1142On the server:
1143.Bd -literal -offset indent
1144# ifconfig tun1 10.1.1.2 10.1.1.1 netmask 255.255.255.252
1145# route add 10.0.50.0/24 10.1.1.1
Darren Tucker248dd132006-01-20 11:30:58 +11001146.Ed
1147.Pp
1148Client access may be more finely tuned via the
1149.Pa /root/.ssh/authorized_keys
1150file (see below) and the
1151.Cm PermitRootLogin
1152server option.
Damien Millere93eaaa2006-03-15 11:05:59 +11001153The following entry would permit connections on
Darren Tucker248dd132006-01-20 11:30:58 +11001154.Xr tun 4
Damien Millere93eaaa2006-03-15 11:05:59 +11001155device 1 from user
Darren Tucker248dd132006-01-20 11:30:58 +11001156.Dq jane
Damien Millere93eaaa2006-03-15 11:05:59 +11001157and on tun device 2 from user
Darren Tucker248dd132006-01-20 11:30:58 +11001158.Dq john ,
1159if
1160.Cm PermitRootLogin
1161is set to
1162.Dq forced-commands-only :
1163.Bd -literal -offset 2n
1164tunnel="1",command="sh /etc/netstart tun1" ssh-rsa ... jane
Damien Miller9f67a212006-03-15 11:05:35 +11001165tunnel="2",command="sh /etc/netstart tun2" ssh-rsa ... john
Darren Tucker248dd132006-01-20 11:30:58 +11001166.Ed
1167.Pp
Darren Tuckerffe88e12006-10-18 07:53:06 +10001168Since an SSH-based setup entails a fair amount of overhead,
Darren Tucker248dd132006-01-20 11:30:58 +11001169it may be more suited to temporary setups,
1170such as for wireless VPNs.
1171More permanent VPNs are better provided by tools such as
1172.Xr ipsecctl 8
1173and
1174.Xr isakmpd 8 .
Damien Miller32aa1441999-10-29 09:15:49 +10001175.Sh ENVIRONMENT
1176.Nm
1177will normally set the following environment variables:
Damien Miller6aa22902006-01-06 14:48:34 +11001178.Bl -tag -width "SSH_ORIGINAL_COMMAND"
Damien Miller32aa1441999-10-29 09:15:49 +10001179.It Ev DISPLAY
1180The
1181.Ev DISPLAY
Damien Miller7684ee12000-03-17 23:40:15 +11001182variable indicates the location of the X11 server.
Damien Miller22c77262000-04-13 12:26:34 +10001183It is automatically set by
Damien Miller32aa1441999-10-29 09:15:49 +10001184.Nm
1185to point to a value of the form
Damien Miller14af93e2006-01-02 23:38:21 +11001186.Dq hostname:n ,
1187where
1188.Dq hostname
1189indicates the host where the shell runs, and
1190.Sq n
1191is an integer \*(Ge 1.
Damien Miller7684ee12000-03-17 23:40:15 +11001192.Nm
1193uses this special value to forward X11 connections over the secure
1194channel.
Ben Lindstromc65e6a02001-04-23 13:02:16 +00001195The user should normally not set
1196.Ev DISPLAY
1197explicitly, as that
Damien Miller32aa1441999-10-29 09:15:49 +10001198will render the X11 connection insecure (and will require the user to
1199manually copy any required authorization cookies).
1200.It Ev HOME
1201Set to the path of the user's home directory.
1202.It Ev LOGNAME
1203Synonym for
1204.Ev USER ;
1205set for compatibility with systems that use this variable.
1206.It Ev MAIL
Ben Lindstrome59433d2001-09-12 16:41:37 +00001207Set to the path of the user's mailbox.
Damien Miller7684ee12000-03-17 23:40:15 +11001208.It Ev PATH
Damien Miller32aa1441999-10-29 09:15:49 +10001209Set to the default
1210.Ev PATH ,
1211as specified when compiling
Damien Miller1164c292006-01-02 23:38:37 +11001212.Nm .
Ben Lindstrom5bf5d672001-07-04 04:31:38 +00001213.It Ev SSH_ASKPASS
1214If
1215.Nm
1216needs a passphrase, it will read the passphrase from the current
1217terminal if it was run from a terminal.
1218If
1219.Nm
1220does not have a terminal associated with it but
1221.Ev DISPLAY
1222and
1223.Ev SSH_ASKPASS
1224are set, it will execute the program specified by
1225.Ev SSH_ASKPASS
1226and open an X11 window to read the passphrase.
1227This is particularly useful when calling
1228.Nm
1229from a
Darren Tucker4e4fe002004-11-05 20:01:03 +11001230.Pa .xsession
Ben Lindstrom5bf5d672001-07-04 04:31:38 +00001231or related script.
1232(Note that on some machines it
1233may be necessary to redirect the input from
1234.Pa /dev/null
1235to make this work.)
Damien Miller32aa1441999-10-29 09:15:49 +10001236.It Ev SSH_AUTH_SOCK
Damien Miller14af93e2006-01-02 23:38:21 +11001237Identifies the path of a
1238.Ux Ns -domain
1239socket used to communicate with the agent.
Damien Millerf37e2462002-09-19 11:47:55 +10001240.It Ev SSH_CONNECTION
1241Identifies the client and server ends of the connection.
Damien Miller7684ee12000-03-17 23:40:15 +11001242The variable contains
Damien Miller14af93e2006-01-02 23:38:21 +11001243four space-separated values: client IP address, client port number,
1244server IP address, and server port number.
Ben Lindstrom4dccfa52000-12-28 16:40:05 +00001245.It Ev SSH_ORIGINAL_COMMAND
Damien Miller14af93e2006-01-02 23:38:21 +11001246This variable contains the original command line if a forced command
Ben Lindstrom4dccfa52000-12-28 16:40:05 +00001247is executed.
1248It can be used to extract the original arguments.
Damien Miller32aa1441999-10-29 09:15:49 +10001249.It Ev SSH_TTY
1250This is set to the name of the tty (path to the device) associated
Damien Miller7684ee12000-03-17 23:40:15 +11001251with the current shell or command.
1252If the current session has no tty,
Damien Miller32aa1441999-10-29 09:15:49 +10001253this variable is not set.
1254.It Ev TZ
Damien Miller6dbdb6a2005-12-13 19:25:43 +11001255This variable is set to indicate the present time zone if it
Damien Miller208f1ed2006-03-15 11:56:03 +11001256was set when the daemon was started (i.e. the daemon passes the value
Damien Miller32aa1441999-10-29 09:15:49 +10001257on to new connections).
1258.It Ev USER
1259Set to the name of the user logging in.
1260.El
1261.Pp
Damien Miller22c77262000-04-13 12:26:34 +10001262Additionally,
Damien Miller32aa1441999-10-29 09:15:49 +10001263.Nm
Damien Miller22c77262000-04-13 12:26:34 +10001264reads
Damien Miller167ea5d2005-05-26 12:04:02 +10001265.Pa ~/.ssh/environment ,
Damien Miller32aa1441999-10-29 09:15:49 +10001266and adds lines of the format
1267.Dq VARNAME=value
Damien Miller14af93e2006-01-02 23:38:21 +11001268to the environment if the file exists and users are allowed to
Ben Lindstromdc7adf22002-08-20 18:38:02 +00001269change their environment.
Darren Tucker61776952003-10-02 16:19:47 +10001270For more information, see the
Ben Lindstromdc7adf22002-08-20 18:38:02 +00001271.Cm PermitUserEnvironment
Ben Lindstrombd9bf382002-08-20 18:54:20 +00001272option in
Ben Lindstromdc7adf22002-08-20 18:38:02 +00001273.Xr sshd_config 5 .
Damien Miller32aa1441999-10-29 09:15:49 +10001274.Sh FILES
Damien Miller7655f5c2006-01-06 14:48:18 +11001275.Bl -tag -width Ds -compact
Damien Miller7655f5c2006-01-06 14:48:18 +11001276.It ~/.rhosts
Damien Miller1bcdb502006-01-06 14:49:38 +11001277This file is used for host-based authentication (see above).
Ben Lindstromebd888d2001-03-05 05:49:29 +00001278On some machines this file may need to be
Damien Miller1bcdb502006-01-06 14:49:38 +11001279world-readable if the user's home directory is on an NFS partition,
Damien Miller32aa1441999-10-29 09:15:49 +10001280because
1281.Xr sshd 8
Damien Miller7684ee12000-03-17 23:40:15 +11001282reads it as root.
1283Additionally, this file must be owned by the user,
1284and must not have write permissions for anyone else.
1285The recommended
Damien Miller32aa1441999-10-29 09:15:49 +10001286permission for most machines is read/write for the user, and not
1287accessible by others.
1288.Pp
Damien Miller7655f5c2006-01-06 14:48:18 +11001289.It ~/.shosts
Damien Miller1bcdb502006-01-06 14:49:38 +11001290This file is used in exactly the same way as
1291.Pa .rhosts ,
1292but allows host-based authentication without permitting login with
1293rlogin/rsh.
Damien Miller7655f5c2006-01-06 14:48:18 +11001294.Pp
Damien Miller520e6152008-02-10 22:46:22 +11001295.It ~/.ssh/
1296This directory is the default location for all user-specific configuration
1297and authentication information.
1298There is no general requirement to keep the entire contents of this directory
1299secret, but the recommended permissions are read/write/execute for the user,
1300and not accessible by others.
1301.Pp
Damien Millerfb8ea742006-01-06 14:48:52 +11001302.It ~/.ssh/authorized_keys
1303Lists the public keys (RSA/DSA) that can be used for logging in as this user.
1304The format of this file is described in the
1305.Xr sshd 8
1306manual page.
Damien Millerfb8ea742006-01-06 14:48:52 +11001307This file is not highly sensitive, but the recommended
1308permissions are read/write for the user, and not accessible by others.
1309.Pp
1310.It ~/.ssh/config
1311This is the per-user configuration file.
1312The file format and configuration options are described in
1313.Xr ssh_config 5 .
1314Because of the potential for abuse, this file must have strict permissions:
1315read/write for the user, and not accessible by others.
1316.Pp
1317.It ~/.ssh/environment
Damien Miller4c102ee2006-01-06 14:49:17 +11001318Contains additional definitions for environment variables; see
1319.Sx ENVIRONMENT ,
Damien Millerfb8ea742006-01-06 14:48:52 +11001320above.
1321.Pp
1322.It ~/.ssh/identity
1323.It ~/.ssh/id_dsa
1324.It ~/.ssh/id_rsa
1325Contains the private key for authentication.
1326These files
1327contain sensitive data and should be readable by the user but not
1328accessible by others (read/write/execute).
1329.Nm
1330will simply ignore a private key file if it is accessible by others.
1331It is possible to specify a passphrase when
1332generating the key which will be used to encrypt the
1333sensitive part of this file using 3DES.
1334.Pp
1335.It ~/.ssh/identity.pub
1336.It ~/.ssh/id_dsa.pub
1337.It ~/.ssh/id_rsa.pub
1338Contains the public key for authentication.
1339These files are not
1340sensitive and can (but need not) be readable by anyone.
Damien Millerfb8ea742006-01-06 14:48:52 +11001341.Pp
1342.It ~/.ssh/known_hosts
Damien Millere87eb4c2006-01-14 10:08:36 +11001343Contains a list of host keys for all hosts the user has logged into
1344that are not already in the systemwide list of known host keys.
Damien Millerfb8ea742006-01-06 14:48:52 +11001345See
Damien Millere87eb4c2006-01-14 10:08:36 +11001346.Xr sshd 8
1347for further details of the format of this file.
Damien Millerfb8ea742006-01-06 14:48:52 +11001348.Pp
1349.It ~/.ssh/rc
1350Commands in this file are executed by
1351.Nm
Damien Miller7e76e1f2006-01-14 10:08:57 +11001352when the user logs in, just before the user's shell (or command) is
Damien Millerfb8ea742006-01-06 14:48:52 +11001353started.
1354See the
1355.Xr sshd 8
1356manual page for more information.
1357.Pp
Damien Miller7655f5c2006-01-06 14:48:18 +11001358.It /etc/hosts.equiv
Damien Miller1bcdb502006-01-06 14:49:38 +11001359This file is for host-based authentication (see above).
1360It should only be writable by root.
Damien Miller7655f5c2006-01-06 14:48:18 +11001361.Pp
1362.It /etc/shosts.equiv
Damien Miller1bcdb502006-01-06 14:49:38 +11001363This file is used in exactly the same way as
1364.Pa hosts.equiv ,
1365but allows host-based authentication without permitting login with
1366rlogin/rsh.
Damien Miller7655f5c2006-01-06 14:48:18 +11001367.Pp
Damien Millerfb8ea742006-01-06 14:48:52 +11001368.It Pa /etc/ssh/ssh_config
1369Systemwide configuration file.
1370The file format and configuration options are described in
1371.Xr ssh_config 5 .
1372.Pp
1373.It /etc/ssh/ssh_host_key
1374.It /etc/ssh/ssh_host_dsa_key
1375.It /etc/ssh/ssh_host_rsa_key
1376These three files contain the private parts of the host keys
Damien Miller7e76e1f2006-01-14 10:08:57 +11001377and are used for host-based authentication.
1378If protocol version 1 is used,
Damien Millerfb8ea742006-01-06 14:48:52 +11001379.Nm
1380must be setuid root, since the host key is readable only by root.
1381For protocol version 2,
1382.Nm
1383uses
1384.Xr ssh-keysign 8
Damien Miller7e76e1f2006-01-14 10:08:57 +11001385to access the host keys,
1386eliminating the requirement that
Damien Millerfb8ea742006-01-06 14:48:52 +11001387.Nm
Damien Miller7e76e1f2006-01-14 10:08:57 +11001388be setuid root when host-based authentication is used.
Damien Millerfb8ea742006-01-06 14:48:52 +11001389By default
1390.Nm
1391is not setuid root.
1392.Pp
1393.It /etc/ssh/ssh_known_hosts
1394Systemwide list of known host keys.
1395This file should be prepared by the
1396system administrator to contain the public host keys of all machines in the
1397organization.
Damien Millere87eb4c2006-01-14 10:08:36 +11001398It should be world-readable.
1399See
Damien Millerfb8ea742006-01-06 14:48:52 +11001400.Xr sshd 8
Damien Millere87eb4c2006-01-14 10:08:36 +11001401for further details of the format of this file.
Damien Millerfb8ea742006-01-06 14:48:52 +11001402.Pp
Damien Miller7655f5c2006-01-06 14:48:18 +11001403.It /etc/ssh/sshrc
Damien Miller32aa1441999-10-29 09:15:49 +10001404Commands in this file are executed by
1405.Nm
Damien Miller7e76e1f2006-01-14 10:08:57 +11001406when the user logs in, just before the user's shell (or command) is started.
Damien Miller32aa1441999-10-29 09:15:49 +10001407See the
1408.Xr sshd 8
1409manual page for more information.
Damien Miller7b28dc52000-09-05 13:34:53 +11001410.El
Damien Miller32aa1441999-10-29 09:15:49 +10001411.Sh SEE ALSO
Damien Miller32aa1441999-10-29 09:15:49 +10001412.Xr scp 1 ,
Damien Miller33804262001-02-04 23:20:18 +11001413.Xr sftp 1 ,
Damien Miller32aa1441999-10-29 09:15:49 +10001414.Xr ssh-add 1 ,
1415.Xr ssh-agent 1 ,
1416.Xr ssh-keygen 1 ,
Damien Miller128a0f12006-01-06 14:50:11 +11001417.Xr ssh-keyscan 1 ,
Darren Tucker248dd132006-01-20 11:30:58 +11001418.Xr tun 4 ,
Darren Tucker61776952003-10-02 16:19:47 +10001419.Xr hosts.equiv 5 ,
Ben Lindstrombf69e3b2002-06-23 00:31:24 +00001420.Xr ssh_config 5 ,
Ben Lindstromc001cd32002-06-23 00:32:11 +00001421.Xr ssh-keysign 8 ,
Ben Lindstrom5ab6ae12001-02-10 22:08:03 +00001422.Xr sshd 8
Ben Lindstrom160ec622001-04-22 17:17:46 +00001423.Rs
Damien Miller39a93a32006-03-15 11:34:45 +11001424.%R RFC 4250
1425.%T "The Secure Shell (SSH) Protocol Assigned Numbers"
1426.%D 2006
1427.Re
1428.Rs
1429.%R RFC 4251
1430.%T "The Secure Shell (SSH) Protocol Architecture"
1431.%D 2006
1432.Re
1433.Rs
1434.%R RFC 4252
1435.%T "The Secure Shell (SSH) Authentication Protocol"
1436.%D 2006
1437.Re
1438.Rs
1439.%R RFC 4253
1440.%T "The Secure Shell (SSH) Transport Layer Protocol"
1441.%D 2006
1442.Re
1443.Rs
1444.%R RFC 4254
1445.%T "The Secure Shell (SSH) Connection Protocol"
1446.%D 2006
1447.Re
1448.Rs
1449.%R RFC 4255
1450.%T "Using DNS to Securely Publish Secure Shell (SSH) Key Fingerprints"
1451.%D 2006
1452.Re
1453.Rs
1454.%R RFC 4256
1455.%T "Generic Message Exchange Authentication for the Secure Shell Protocol (SSH)"
1456.%D 2006
1457.Re
1458.Rs
1459.%R RFC 4335
1460.%T "The Secure Shell (SSH) Session Channel Break Extension"
1461.%D 2006
1462.Re
1463.Rs
1464.%R RFC 4344
1465.%T "The Secure Shell (SSH) Transport Layer Encryption Modes"
1466.%D 2006
1467.Re
1468.Rs
1469.%R RFC 4345
1470.%T "Improved Arcfour Modes for the Secure Shell (SSH) Transport Layer Protocol"
1471.%D 2006
Ben Lindstrom160ec622001-04-22 17:17:46 +00001472.Re
Damien Miller3e96d742006-03-25 23:39:29 +11001473.Rs
1474.%R RFC 4419
1475.%T "Diffie-Hellman Group Exchange for the Secure Shell (SSH) Transport Layer Protocol"
1476.%D 2006
1477.Re
Damien Millerc0367fb2007-01-05 16:25:46 +11001478.Rs
1479.%R RFC 4716
1480.%T "The Secure Shell (SSH) Public Key File Format"
1481.%D 2006
1482.Re
Darren Tuckerf6bffb12008-06-14 09:04:26 +10001483.Rs
1484.%T "Hash Visualization: a New Technique to improve Real-World Security"
1485.%A A. Perrig
1486.%A D. Song
1487.%D 1999
1488.%O "International Workshop on Cryptographic Techniques and E-Commerce (CrypTEC '99)"
1489.Re
Damien Millerf1ce5052003-06-11 22:04:39 +10001490.Sh AUTHORS
1491OpenSSH is a derivative of the original and free
1492ssh 1.2.12 release by Tatu Ylonen.
1493Aaron Campbell, Bob Beck, Markus Friedl, Niels Provos,
1494Theo de Raadt and Dug Song
1495removed many bugs, re-added newer features and
1496created OpenSSH.
1497Markus Friedl contributed the support for SSH
1498protocol versions 1.5 and 2.0.