]> CyberLeo.Net >> Repos - FreeBSD/releng/8.1.git/blob - crypto/openssh/ssh.1
Copy stable/8 to releng/8.1 in preparation for 8.1-RC1.
[FreeBSD/releng/8.1.git] / crypto / openssh / ssh.1
1 .\"  -*- nroff -*-
2 .\"
3 .\" Author: Tatu Ylonen <ylo@cs.hut.fi>
4 .\" Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
5 .\"                    All rights reserved
6 .\"
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 .\"
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.
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.
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.
36 .\"
37 .\" $OpenBSD: ssh.1,v 1.302 2010/03/05 10:28:21 djm Exp $
38 .\" $FreeBSD$
39 .Dd March 5, 2010
40 .Dt SSH 1
41 .Os
42 .Sh NAME
43 .Nm ssh
44 .Nd OpenSSH SSH client (remote login program)
45 .Sh SYNOPSIS
46 .Nm ssh
47 .Op Fl 1246AaCfgKkMNnqsTtVvXxYy
48 .Op Fl b Ar bind_address
49 .Op Fl c Ar cipher_spec
50 .Oo Fl D\ \&
51 .Sm off
52 .Oo Ar bind_address : Oc
53 .Ar port
54 .Sm on
55 .Oc
56 .Op Fl e Ar escape_char
57 .Op Fl F Ar configfile
58 .Op Fl I Ar pkcs11
59 .Bk -words
60 .Op Fl i Ar identity_file
61 .Ek
62 .Oo Fl L\ \&
63 .Sm off
64 .Oo Ar bind_address : Oc
65 .Ar port : host : hostport
66 .Sm on
67 .Oc
68 .Bk -words
69 .Op Fl l Ar login_name
70 .Ek
71 .Op Fl m Ar mac_spec
72 .Op Fl O Ar ctl_cmd
73 .Op Fl o Ar option
74 .Op Fl p Ar port
75 .Oo Fl R\ \&
76 .Sm off
77 .Oo Ar bind_address : Oc
78 .Ar port : host : hostport
79 .Sm on
80 .Oc
81 .Op Fl S Ar ctl_path
82 .Op Fl W Ar host : Ns Ar port
83 .Oo Fl w Ar local_tun Ns
84 .Op : Ns Ar remote_tun Oc
85 .Oo Ar user Ns @ Oc Ns Ar hostname
86 .Op Ar command
87 .Sh DESCRIPTION
88 .Nm
89 (SSH client) is a program for logging into a remote machine and for
90 executing commands on a remote machine.
91 It is intended to replace rlogin and rsh,
92 and provide secure encrypted communications between
93 two untrusted hosts over an insecure network.
94 X11 connections and arbitrary TCP ports
95 can also be forwarded over the secure channel.
96 .Pp
97 .Nm
98 connects and logs into the specified
99 .Ar hostname
100 (with optional
101 .Ar user
102 name).
103 The user must prove
104 his/her identity to the remote machine using one of several methods
105 depending on the protocol version used (see below).
106 .Pp
107 If
108 .Ar command
109 is specified,
110 it is executed on the remote host instead of a login shell.
111 .Pp
112 The options are as follows:
113 .Bl -tag -width Ds
114 .It Fl 1
115 Forces
116 .Nm
117 to try protocol version 1 only.
118 .It Fl 2
119 Forces
120 .Nm
121 to try protocol version 2 only.
122 .It Fl 4
123 Forces
124 .Nm
125 to use IPv4 addresses only.
126 .It Fl 6
127 Forces
128 .Nm
129 to use IPv6 addresses only.
130 .It Fl A
131 Enables forwarding of the authentication agent connection.
132 This can also be specified on a per-host basis in a configuration file.
133 .Pp
134 Agent forwarding should be enabled with caution.
135 Users with the ability to bypass file permissions on the remote host
136 (for the agent's
137 .Ux Ns -domain
138 socket) can access the local agent through the forwarded connection.
139 An attacker cannot obtain key material from the agent,
140 however they can perform operations on the keys that enable them to
141 authenticate using the identities loaded into the agent.
142 .It Fl a
143 Disables forwarding of the authentication agent connection.
144 .It Fl b Ar bind_address
145 Use
146 .Ar bind_address
147 on the local machine as the source address
148 of the connection.
149 Only useful on systems with more than one address.
150 .It Fl C
151 Requests compression of all data (including stdin, stdout, stderr, and
152 data for forwarded X11 and TCP connections).
153 The compression algorithm is the same used by
154 .Xr gzip 1 ,
155 and the
156 .Dq level
157 can be controlled by the
158 .Cm CompressionLevel
159 option for protocol version 1.
160 Compression is desirable on modem lines and other
161 slow connections, but will only slow down things on fast networks.
162 The default value can be set on a host-by-host basis in the
163 configuration files; see the
164 .Cm Compression
165 option.
166 .It Fl c Ar cipher_spec
167 Selects the cipher specification for encrypting the session.
168 .Pp
169 Protocol version 1 allows specification of a single cipher.
170 The supported values are
171 .Dq 3des ,
172 .Dq blowfish ,
173 and
174 .Dq des .
175 .Ar 3des
176 (triple-des) is an encrypt-decrypt-encrypt triple with three different keys.
177 It is believed to be secure.
178 .Ar blowfish
179 is a fast block cipher; it appears very secure and is much faster than
180 .Ar 3des .
181 .Ar des
182 is only supported in the
183 .Nm
184 client for interoperability with legacy protocol 1 implementations
185 that do not support the
186 .Ar 3des
187 cipher.
188 Its use is strongly discouraged due to cryptographic weaknesses.
189 The default is
190 .Dq 3des .
191 .Pp
192 For protocol version 2,
193 .Ar cipher_spec
194 is a comma-separated list of ciphers
195 listed in order of preference.
196 See the
197 .Cm Ciphers
198 keyword for more information.
199 .It Fl D Xo
200 .Sm off
201 .Oo Ar bind_address : Oc
202 .Ar port
203 .Sm on
204 .Xc
205 Specifies a local
206 .Dq dynamic
207 application-level port forwarding.
208 This works by allocating a socket to listen to
209 .Ar port
210 on the local side, optionally bound to the specified
211 .Ar bind_address .
212 Whenever a connection is made to this port, the
213 connection is forwarded over the secure channel, and the application
214 protocol is then used to determine where to connect to from the
215 remote machine.
216 Currently the SOCKS4 and SOCKS5 protocols are supported, and
217 .Nm
218 will act as a SOCKS server.
219 Only root can forward privileged ports.
220 Dynamic port forwardings can also be specified in the configuration file.
221 .Pp
222 IPv6 addresses can be specified with an alternative syntax:
223 .Sm off
224 .Xo
225 .Op Ar bind_address No /
226 .Ar port
227 .Xc
228 .Sm on
229 or by enclosing the address in square brackets.
230 Only the superuser can forward privileged ports.
231 By default, the local port is bound in accordance with the
232 .Cm GatewayPorts
233 setting.
234 However, an explicit
235 .Ar bind_address
236 may be used to bind the connection to a specific address.
237 The
238 .Ar bind_address
239 of
240 .Dq localhost
241 indicates that the listening port be bound for local use only, while an
242 empty address or
243 .Sq *
244 indicates that the port should be available from all interfaces.
245 .It Fl e Ar escape_char
246 Sets the escape character for sessions with a pty (default:
247 .Ql ~ ) .
248 The escape character is only recognized at the beginning of a line.
249 The escape character followed by a dot
250 .Pq Ql \&.
251 closes the connection;
252 followed by control-Z suspends the connection;
253 and followed by itself sends the escape character once.
254 Setting the character to
255 .Dq none
256 disables any escapes and makes the session fully transparent.
257 .It Fl F Ar configfile
258 Specifies an alternative per-user configuration file.
259 If a configuration file is given on the command line,
260 the system-wide configuration file
261 .Pq Pa /etc/ssh/ssh_config
262 will be ignored.
263 The default for the per-user configuration file is
264 .Pa ~/.ssh/config .
265 .It Fl f
266 Requests
267 .Nm
268 to go to background just before command execution.
269 This is useful if
270 .Nm
271 is going to ask for passwords or passphrases, but the user
272 wants it in the background.
273 This implies
274 .Fl n .
275 The recommended way to start X11 programs at a remote site is with
276 something like
277 .Ic ssh -f host xterm .
278 .Pp
279 If the
280 .Cm ExitOnForwardFailure
281 configuration option is set to
282 .Dq yes ,
283 then a client started with
284 .Fl f
285 will wait for all remote port forwards to be successfully established
286 before placing itself in the background.
287 .It Fl g
288 Allows remote hosts to connect to local forwarded ports.
289 .It Fl I Ar pkcs11
290 Specify the PKCS#11 shared library
291 .Nm
292 should use to communicate with a PKCS#11 token providing the user's
293 private RSA key.
294 .It Fl i Ar identity_file
295 Selects a file from which the identity (private key) for
296 RSA or DSA authentication is read.
297 The default is
298 .Pa ~/.ssh/identity
299 for protocol version 1, and
300 .Pa ~/.ssh/id_rsa
301 and
302 .Pa ~/.ssh/id_dsa
303 for protocol version 2.
304 Identity files may also be specified on
305 a per-host basis in the configuration file.
306 It is possible to have multiple
307 .Fl i
308 options (and multiple identities specified in
309 configuration files).
310 .Nm
311 will also try to load certificate information from the filename obtained
312 by appending
313 .Pa -cert.pub
314 to identity filenames.
315 .It Fl K
316 Enables GSSAPI-based authentication and forwarding (delegation) of GSSAPI
317 credentials to the server.
318 .It Fl k
319 Disables forwarding (delegation) of GSSAPI credentials to the server.
320 .It Fl L Xo
321 .Sm off
322 .Oo Ar bind_address : Oc
323 .Ar port : host : hostport
324 .Sm on
325 .Xc
326 Specifies that the given port on the local (client) host is to be
327 forwarded to the given host and port on the remote side.
328 This works by allocating a socket to listen to
329 .Ar port
330 on the local side, optionally bound to the specified
331 .Ar bind_address .
332 Whenever a connection is made to this port, the
333 connection is forwarded over the secure channel, and a connection is
334 made to
335 .Ar host
336 port
337 .Ar hostport
338 from the remote machine.
339 Port forwardings can also be specified in the configuration file.
340 IPv6 addresses can be specified with an alternative syntax:
341 .Sm off
342 .Xo
343 .Op Ar bind_address No /
344 .Ar port No / Ar host No /
345 .Ar hostport
346 .Xc
347 .Sm on
348 or by enclosing the address in square brackets.
349 Only the superuser can forward privileged ports.
350 By default, the local port is bound in accordance with the
351 .Cm GatewayPorts
352 setting.
353 However, an explicit
354 .Ar bind_address
355 may be used to bind the connection to a specific address.
356 The
357 .Ar bind_address
358 of
359 .Dq localhost
360 indicates that the listening port be bound for local use only, while an
361 empty address or
362 .Sq *
363 indicates that the port should be available from all interfaces.
364 .It Fl l Ar login_name
365 Specifies the user to log in as on the remote machine.
366 This also may be specified on a per-host basis in the configuration file.
367 .It Fl M
368 Places the
369 .Nm
370 client into
371 .Dq master
372 mode for connection sharing.
373 Multiple
374 .Fl M
375 options places
376 .Nm
377 into
378 .Dq master
379 mode with confirmation required before slave connections are accepted.
380 Refer to the description of
381 .Cm ControlMaster
382 in
383 .Xr ssh_config 5
384 for details.
385 .It Fl m Ar mac_spec
386 Additionally, for protocol version 2 a comma-separated list of MAC
387 (message authentication code) algorithms can
388 be specified in order of preference.
389 See the
390 .Cm MACs
391 keyword for more information.
392 .It Fl N
393 Do not execute a remote command.
394 This is useful for just forwarding ports
395 (protocol version 2 only).
396 .It Fl n
397 Redirects stdin from
398 .Pa /dev/null
399 (actually, prevents reading from stdin).
400 This must be used when
401 .Nm
402 is run in the background.
403 A common trick is to use this to run X11 programs on a remote machine.
404 For example,
405 .Ic ssh -n shadows.cs.hut.fi emacs &
406 will start an emacs on shadows.cs.hut.fi, and the X11
407 connection will be automatically forwarded over an encrypted channel.
408 The
409 .Nm
410 program will be put in the background.
411 (This does not work if
412 .Nm
413 needs to ask for a password or passphrase; see also the
414 .Fl f
415 option.)
416 .It Fl O Ar ctl_cmd
417 Control an active connection multiplexing master process.
418 When the
419 .Fl O
420 option is specified, the
421 .Ar ctl_cmd
422 argument is interpreted and passed to the master process.
423 Valid commands are:
424 .Dq check
425 (check that the master process is running) and
426 .Dq exit
427 (request the master to exit).
428 .It Fl o Ar option
429 Can be used to give options in the format used in the configuration file.
430 This is useful for specifying options for which there is no separate
431 command-line flag.
432 For full details of the options listed below, and their possible values, see
433 .Xr ssh_config 5 .
434 .Pp
435 .Bl -tag -width Ds -offset indent -compact
436 .It AddressFamily
437 .It BatchMode
438 .It BindAddress
439 .It ChallengeResponseAuthentication
440 .It CheckHostIP
441 .It Cipher
442 .It Ciphers
443 .It ClearAllForwardings
444 .It Compression
445 .It CompressionLevel
446 .It ConnectionAttempts
447 .It ConnectTimeout
448 .It ControlMaster
449 .It ControlPath
450 .It DynamicForward
451 .It EscapeChar
452 .It ExitOnForwardFailure
453 .It ForwardAgent
454 .It ForwardX11
455 .It ForwardX11Trusted
456 .It GatewayPorts
457 .It GlobalKnownHostsFile
458 .It GSSAPIAuthentication
459 .It GSSAPIDelegateCredentials
460 .It HashKnownHosts
461 .It Host
462 .It HostbasedAuthentication
463 .It HostKeyAlgorithms
464 .It HostKeyAlias
465 .It HostName
466 .It IdentityFile
467 .It IdentitiesOnly
468 .It KbdInteractiveDevices
469 .It LocalCommand
470 .It LocalForward
471 .It LogLevel
472 .It MACs
473 .It NoHostAuthenticationForLocalhost
474 .It NumberOfPasswordPrompts
475 .It PasswordAuthentication
476 .It PermitLocalCommand
477 .It PKCS11Provider
478 .It Port
479 .It PreferredAuthentications
480 .It Protocol
481 .It ProxyCommand
482 .It PubkeyAuthentication
483 .It RekeyLimit
484 .It RemoteForward
485 .It RhostsRSAAuthentication
486 .It RSAAuthentication
487 .It SendEnv
488 .It ServerAliveInterval
489 .It ServerAliveCountMax
490 .It StrictHostKeyChecking
491 .It TCPKeepAlive
492 .It Tunnel
493 .It TunnelDevice
494 .It UsePrivilegedPort
495 .It User
496 .It UserKnownHostsFile
497 .It VerifyHostKeyDNS
498 .It VersionAddendum
499 .It VisualHostKey
500 .It XAuthLocation
501 .El
502 .It Fl p Ar port
503 Port to connect to on the remote host.
504 This can be specified on a
505 per-host basis in the configuration file.
506 .It Fl q
507 Quiet mode.
508 Causes most warning and diagnostic messages to be suppressed.
509 .It Fl R Xo
510 .Sm off
511 .Oo Ar bind_address : Oc
512 .Ar port : host : hostport
513 .Sm on
514 .Xc
515 Specifies that the given port on the remote (server) host is to be
516 forwarded to the given host and port on the local side.
517 This works by allocating a socket to listen to
518 .Ar port
519 on the remote side, and whenever a connection is made to this port, the
520 connection is forwarded over the secure channel, and a connection is
521 made to
522 .Ar host
523 port
524 .Ar hostport
525 from the local machine.
526 .Pp
527 Port forwardings can also be specified in the configuration file.
528 Privileged ports can be forwarded only when
529 logging in as root on the remote machine.
530 IPv6 addresses can be specified by enclosing the address in square braces or
531 using an alternative syntax:
532 .Sm off
533 .Xo
534 .Op Ar bind_address No /
535 .Ar host No / Ar port No /
536 .Ar hostport
537 .Xc .
538 .Sm on
539 .Pp
540 By default, the listening socket on the server will be bound to the loopback
541 interface only.
542 This may be overridden by specifying a
543 .Ar bind_address .
544 An empty
545 .Ar bind_address ,
546 or the address
547 .Ql * ,
548 indicates that the remote socket should listen on all interfaces.
549 Specifying a remote
550 .Ar bind_address
551 will only succeed if the server's
552 .Cm GatewayPorts
553 option is enabled (see
554 .Xr sshd_config 5 ) .
555 .Pp
556 If the
557 .Ar port
558 argument is
559 .Ql 0 ,
560 the listen port will be dynamically allocated on the server and reported
561 to the client at run time.
562 .It Fl S Ar ctl_path
563 Specifies the location of a control socket for connection sharing.
564 Refer to the description of
565 .Cm ControlPath
566 and
567 .Cm ControlMaster
568 in
569 .Xr ssh_config 5
570 for details.
571 .It Fl s
572 May be used to request invocation of a subsystem on the remote system.
573 Subsystems are a feature of the SSH2 protocol which facilitate the use
574 of SSH as a secure transport for other applications (eg.\&
575 .Xr sftp 1 ) .
576 The subsystem is specified as the remote command.
577 .It Fl T
578 Disable pseudo-tty allocation.
579 .It Fl t
580 Force pseudo-tty allocation.
581 This can be used to execute arbitrary
582 screen-based programs on a remote machine, which can be very useful,
583 e.g. when implementing menu services.
584 Multiple
585 .Fl t
586 options force tty allocation, even if
587 .Nm
588 has no local tty.
589 .It Fl V
590 Display the version number and exit.
591 .It Fl v
592 Verbose mode.
593 Causes
594 .Nm
595 to print debugging messages about its progress.
596 This is helpful in
597 debugging connection, authentication, and configuration problems.
598 Multiple
599 .Fl v
600 options increase the verbosity.
601 The maximum is 3.
602 .It Fl W Ar host : Ns Ar port
603 Requests that standard input and output on the client be forwarded to
604 .Ar host
605 on
606 .Ar port
607 over the secure channel.
608 Implies
609 .Fl N ,
610 .Fl T ,
611 .Cm ExitOnForwardFailure
612 and
613 .Cm ClearAllForwardings
614 and works with Protocol version 2 only.
615 .It Fl w Xo
616 .Ar local_tun Ns Op : Ns Ar remote_tun
617 .Xc
618 Requests
619 tunnel
620 device forwarding with the specified
621 .Xr tun 4
622 devices between the client
623 .Pq Ar local_tun
624 and the server
625 .Pq Ar remote_tun .
626 .Pp
627 The devices may be specified by numerical ID or the keyword
628 .Dq any ,
629 which uses the next available tunnel device.
630 If
631 .Ar remote_tun
632 is not specified, it defaults to
633 .Dq any .
634 See also the
635 .Cm Tunnel
636 and
637 .Cm TunnelDevice
638 directives in
639 .Xr ssh_config 5 .
640 If the
641 .Cm Tunnel
642 directive is unset, it is set to the default tunnel mode, which is
643 .Dq point-to-point .
644 .It Fl X
645 Enables X11 forwarding.
646 This can also be specified on a per-host basis in a configuration file.
647 .Pp
648 X11 forwarding should be enabled with caution.
649 Users with the ability to bypass file permissions on the remote host
650 (for the user's X authorization database)
651 can access the local X11 display through the forwarded connection.
652 An attacker may then be able to perform activities such as keystroke monitoring.
653 .Pp
654 For this reason, X11 forwarding is subjected to X11 SECURITY extension
655 restrictions by default.
656 Please refer to the
657 .Nm
658 .Fl Y
659 option and the
660 .Cm ForwardX11Trusted
661 directive in
662 .Xr ssh_config 5
663 for more information.
664 .It Fl x
665 Disables X11 forwarding.
666 .It Fl Y
667 Enables trusted X11 forwarding.
668 Trusted X11 forwardings are not subjected to the X11 SECURITY extension
669 controls.
670 .It Fl y
671 Send log information using the
672 .Xr syslog 3
673 system module.
674 By default this information is sent to stderr.
675 .El
676 .Pp
677 .Nm
678 may additionally obtain configuration data from
679 a per-user configuration file and a system-wide configuration file.
680 The file format and configuration options are described in
681 .Xr ssh_config 5 .
682 .Pp
683 .Nm
684 exits with the exit status of the remote command or with 255
685 if an error occurred.
686 .Sh AUTHENTICATION
687 The OpenSSH SSH client supports SSH protocols 1 and 2.
688 The default is to use protocol 2 only,
689 though this can be changed via the
690 .Cm Protocol
691 option in
692 .Xr ssh_config 5
693 or the
694 .Fl 1
695 and
696 .Fl 2
697 options (see above).
698 Both protocols support similar authentication methods,
699 but protocol 2 is the default since
700 it provides additional mechanisms for confidentiality
701 (the traffic is encrypted using AES, 3DES, Blowfish, CAST128, or Arcfour)
702 and integrity (hmac-md5, hmac-sha1, umac-64, hmac-ripemd160).
703 Protocol 1 lacks a strong mechanism for ensuring the
704 integrity of the connection.
705 .Pp
706 The methods available for authentication are:
707 GSSAPI-based authentication,
708 host-based authentication,
709 public key authentication,
710 challenge-response authentication,
711 and password authentication.
712 Authentication methods are tried in the order specified above,
713 though protocol 2 has a configuration option to change the default order:
714 .Cm PreferredAuthentications .
715 .Pp
716 Host-based authentication works as follows:
717 If the machine the user logs in from is listed in
718 .Pa /etc/hosts.equiv
719 or
720 .Pa /etc/shosts.equiv
721 on the remote machine, and the user names are
722 the same on both sides, or if the files
723 .Pa ~/.rhosts
724 or
725 .Pa ~/.shosts
726 exist in the user's home directory on the
727 remote machine and contain a line containing the name of the client
728 machine and the name of the user on that machine, the user is
729 considered for login.
730 Additionally, the server
731 .Em must
732 be able to verify the client's
733 host key (see the description of
734 .Pa /etc/ssh/ssh_known_hosts
735 and
736 .Pa ~/.ssh/known_hosts ,
737 below)
738 for login to be permitted.
739 This authentication method closes security holes due to IP
740 spoofing, DNS spoofing, and routing spoofing.
741 [Note to the administrator:
742 .Pa /etc/hosts.equiv ,
743 .Pa ~/.rhosts ,
744 and the rlogin/rsh protocol in general, are inherently insecure and should be
745 disabled if security is desired.]
746 .Pp
747 Public key authentication works as follows:
748 The scheme is based on public-key cryptography,
749 using cryptosystems
750 where encryption and decryption are done using separate keys,
751 and it is unfeasible to derive the decryption key from the encryption key.
752 The idea is that each user creates a public/private
753 key pair for authentication purposes.
754 The server knows the public key, and only the user knows the private key.
755 .Nm
756 implements public key authentication protocol automatically,
757 using either the RSA or DSA algorithms.
758 Protocol 1 is restricted to using only RSA keys,
759 but protocol 2 may use either.
760 The
761 .Sx HISTORY
762 section of
763 .Xr ssl 8
764 contains a brief discussion of the two algorithms.
765 .Pp
766 The file
767 .Pa ~/.ssh/authorized_keys
768 lists the public keys that are permitted for logging in.
769 When the user logs in, the
770 .Nm
771 program tells the server which key pair it would like to use for
772 authentication.
773 The client proves that it has access to the private key
774 and the server checks that the corresponding public key
775 is authorized to accept the account.
776 .Pp
777 The user creates his/her key pair by running
778 .Xr ssh-keygen 1 .
779 This stores the private key in
780 .Pa ~/.ssh/identity
781 (protocol 1),
782 .Pa ~/.ssh/id_dsa
783 (protocol 2 DSA),
784 or
785 .Pa ~/.ssh/id_rsa
786 (protocol 2 RSA)
787 and stores the public key in
788 .Pa ~/.ssh/identity.pub
789 (protocol 1),
790 .Pa ~/.ssh/id_dsa.pub
791 (protocol 2 DSA),
792 or
793 .Pa ~/.ssh/id_rsa.pub
794 (protocol 2 RSA)
795 in the user's home directory.
796 The user should then copy the public key
797 to
798 .Pa ~/.ssh/authorized_keys
799 in his/her home directory on the remote machine.
800 The
801 .Pa authorized_keys
802 file corresponds to the conventional
803 .Pa ~/.rhosts
804 file, and has one key
805 per line, though the lines can be very long.
806 After this, the user can log in without giving the password.
807 .Pp
808 A variation on public key authentication
809 is available in the form of certificate authentication:
810 instead of a set of public/private keys,
811 signed certificates are used.
812 This has the advantage that a single trusted certification authority
813 can be used in place of many public/private keys.
814 See the
815 .Sx CERTIFICATES
816 section of
817 .Xr ssh-keygen 1
818 for more information.
819 .Pp
820 The most convenient way to use public key or certificate authentication
821 may be with an authentication agent.
822 See
823 .Xr ssh-agent 1
824 for more information.
825 .Pp
826 Challenge-response authentication works as follows:
827 The server sends an arbitrary
828 .Qq challenge
829 text, and prompts for a response.
830 Protocol 2 allows multiple challenges and responses;
831 protocol 1 is restricted to just one challenge/response.
832 Examples of challenge-response authentication include
833 BSD Authentication (see
834 .Xr login.conf 5 )
835 and PAM (some non-OpenBSD systems).
836 .Pp
837 Finally, if other authentication methods fail,
838 .Nm
839 prompts the user for a password.
840 The password is sent to the remote
841 host for checking; however, since all communications are encrypted,
842 the password cannot be seen by someone listening on the network.
843 .Pp
844 .Nm
845 automatically maintains and checks a database containing
846 identification for all hosts it has ever been used with.
847 Host keys are stored in
848 .Pa ~/.ssh/known_hosts
849 in the user's home directory.
850 Additionally, the file
851 .Pa /etc/ssh/ssh_known_hosts
852 is automatically checked for known hosts.
853 Any new hosts are automatically added to the user's file.
854 If a host's identification ever changes,
855 .Nm
856 warns about this and disables password authentication to prevent
857 server spoofing or man-in-the-middle attacks,
858 which could otherwise be used to circumvent the encryption.
859 The
860 .Cm StrictHostKeyChecking
861 option can be used to control logins to machines whose
862 host key is not known or has changed.
863 .Pp
864 When the user's identity has been accepted by the server, the server
865 either executes the given command, or logs into the machine and gives
866 the user a normal shell on the remote machine.
867 All communication with
868 the remote command or shell will be automatically encrypted.
869 .Pp
870 If a pseudo-terminal has been allocated (normal login session), the
871 user may use the escape characters noted below.
872 .Pp
873 If no pseudo-tty has been allocated,
874 the session is transparent and can be used to reliably transfer binary data.
875 On most systems, setting the escape character to
876 .Dq none
877 will also make the session transparent even if a tty is used.
878 .Pp
879 The session terminates when the command or shell on the remote
880 machine exits and all X11 and TCP connections have been closed.
881 .Sh ESCAPE CHARACTERS
882 When a pseudo-terminal has been requested,
883 .Nm
884 supports a number of functions through the use of an escape character.
885 .Pp
886 A single tilde character can be sent as
887 .Ic ~~
888 or by following the tilde by a character other than those described below.
889 The escape character must always follow a newline to be interpreted as
890 special.
891 The escape character can be changed in configuration files using the
892 .Cm EscapeChar
893 configuration directive or on the command line by the
894 .Fl e
895 option.
896 .Pp
897 The supported escapes (assuming the default
898 .Ql ~ )
899 are:
900 .Bl -tag -width Ds
901 .It Cm ~.
902 Disconnect.
903 .It Cm ~^Z
904 Background
905 .Nm .
906 .It Cm ~#
907 List forwarded connections.
908 .It Cm ~&
909 Background
910 .Nm
911 at logout when waiting for forwarded connection / X11 sessions to terminate.
912 .It Cm ~?
913 Display a list of escape characters.
914 .It Cm ~B
915 Send a BREAK to the remote system
916 (only useful for SSH protocol version 2 and if the peer supports it).
917 .It Cm ~C
918 Open command line.
919 Currently this allows the addition of port forwardings using the
920 .Fl L ,
921 .Fl R
922 and
923 .Fl D
924 options (see above).
925 It also allows the cancellation of existing remote port-forwardings
926 using
927 .Sm off
928 .Fl KR Oo Ar bind_address : Oc Ar port .
929 .Sm on
930 .Ic !\& Ns Ar command
931 allows the user to execute a local command if the
932 .Ic PermitLocalCommand
933 option is enabled in
934 .Xr ssh_config 5 .
935 Basic help is available, using the
936 .Fl h
937 option.
938 .It Cm ~R
939 Request rekeying of the connection
940 (only useful for SSH protocol version 2 and if the peer supports it).
941 .El
942 .Sh TCP FORWARDING
943 Forwarding of arbitrary TCP connections over the secure channel can
944 be specified either on the command line or in a configuration file.
945 One possible application of TCP forwarding is a secure connection to a
946 mail server; another is going through firewalls.
947 .Pp
948 In the example below, we look at encrypting communication between
949 an IRC client and server, even though the IRC server does not directly
950 support encrypted communications.
951 This works as follows:
952 the user connects to the remote host using
953 .Nm ,
954 specifying a port to be used to forward connections
955 to the remote server.
956 After that it is possible to start the service which is to be encrypted
957 on the client machine,
958 connecting to the same local port,
959 and
960 .Nm
961 will encrypt and forward the connection.
962 .Pp
963 The following example tunnels an IRC session from client machine
964 .Dq 127.0.0.1
965 (localhost)
966 to remote server
967 .Dq server.example.com :
968 .Bd -literal -offset 4n
969 $ ssh -f -L 1234:localhost:6667 server.example.com sleep 10
970 $ irc -c '#users' -p 1234 pinky 127.0.0.1
971 .Ed
972 .Pp
973 This tunnels a connection to IRC server
974 .Dq server.example.com ,
975 joining channel
976 .Dq #users ,
977 nickname
978 .Dq pinky ,
979 using port 1234.
980 It doesn't matter which port is used,
981 as long as it's greater than 1023
982 (remember, only root can open sockets on privileged ports)
983 and doesn't conflict with any ports already in use.
984 The connection is forwarded to port 6667 on the remote server,
985 since that's the standard port for IRC services.
986 .Pp
987 The
988 .Fl f
989 option backgrounds
990 .Nm
991 and the remote command
992 .Dq sleep 10
993 is specified to allow an amount of time
994 (10 seconds, in the example)
995 to start the service which is to be tunnelled.
996 If no connections are made within the time specified,
997 .Nm
998 will exit.
999 .Sh X11 FORWARDING
1000 If the
1001 .Cm ForwardX11
1002 variable is set to
1003 .Dq yes
1004 (or see the description of the
1005 .Fl X ,
1006 .Fl x ,
1007 and
1008 .Fl Y
1009 options above)
1010 and the user is using X11 (the
1011 .Ev DISPLAY
1012 environment variable is set), the connection to the X11 display is
1013 automatically forwarded to the remote side in such a way that any X11
1014 programs started from the shell (or command) will go through the
1015 encrypted channel, and the connection to the real X server will be made
1016 from the local machine.
1017 The user should not manually set
1018 .Ev DISPLAY .
1019 Forwarding of X11 connections can be
1020 configured on the command line or in configuration files.
1021 .Pp
1022 The
1023 .Ev DISPLAY
1024 value set by
1025 .Nm
1026 will point to the server machine, but with a display number greater than zero.
1027 This is normal, and happens because
1028 .Nm
1029 creates a
1030 .Dq proxy
1031 X server on the server machine for forwarding the
1032 connections over the encrypted channel.
1033 .Pp
1034 .Nm
1035 will also automatically set up Xauthority data on the server machine.
1036 For this purpose, it will generate a random authorization cookie,
1037 store it in Xauthority on the server, and verify that any forwarded
1038 connections carry this cookie and replace it by the real cookie when
1039 the connection is opened.
1040 The real authentication cookie is never
1041 sent to the server machine (and no cookies are sent in the plain).
1042 .Pp
1043 If the
1044 .Cm ForwardAgent
1045 variable is set to
1046 .Dq yes
1047 (or see the description of the
1048 .Fl A
1049 and
1050 .Fl a
1051 options above) and
1052 the user is using an authentication agent, the connection to the agent
1053 is automatically forwarded to the remote side.
1054 .Sh VERIFYING HOST KEYS
1055 When connecting to a server for the first time,
1056 a fingerprint of the server's public key is presented to the user
1057 (unless the option
1058 .Cm StrictHostKeyChecking
1059 has been disabled).
1060 Fingerprints can be determined using
1061 .Xr ssh-keygen 1 :
1062 .Pp
1063 .Dl $ ssh-keygen -l -f /etc/ssh/ssh_host_rsa_key
1064 .Pp
1065 If the fingerprint is already known, it can be matched
1066 and the key can be accepted or rejected.
1067 Because of the difficulty of comparing host keys
1068 just by looking at hex strings,
1069 there is also support to compare host keys visually,
1070 using
1071 .Em random art .
1072 By setting the
1073 .Cm VisualHostKey
1074 option to
1075 .Dq yes ,
1076 a small ASCII graphic gets displayed on every login to a server, no matter
1077 if the session itself is interactive or not.
1078 By learning the pattern a known server produces, a user can easily
1079 find out that the host key has changed when a completely different pattern
1080 is displayed.
1081 Because these patterns are not unambiguous however, a pattern that looks
1082 similar to the pattern remembered only gives a good probability that the
1083 host key is the same, not guaranteed proof.
1084 .Pp
1085 To get a listing of the fingerprints along with their random art for
1086 all known hosts, the following command line can be used:
1087 .Pp
1088 .Dl $ ssh-keygen -lv -f ~/.ssh/known_hosts
1089 .Pp
1090 If the fingerprint is unknown,
1091 an alternative method of verification is available:
1092 SSH fingerprints verified by DNS.
1093 An additional resource record (RR),
1094 SSHFP,
1095 is added to a zonefile
1096 and the connecting client is able to match the fingerprint
1097 with that of the key presented.
1098 .Pp
1099 In this example, we are connecting a client to a server,
1100 .Dq host.example.com .
1101 The SSHFP resource records should first be added to the zonefile for
1102 host.example.com:
1103 .Bd -literal -offset indent
1104 $ ssh-keygen -r host.example.com.
1105 .Ed
1106 .Pp
1107 The output lines will have to be added to the zonefile.
1108 To check that the zone is answering fingerprint queries:
1109 .Pp
1110 .Dl $ dig -t SSHFP host.example.com
1111 .Pp
1112 Finally the client connects:
1113 .Bd -literal -offset indent
1114 $ ssh -o "VerifyHostKeyDNS ask" host.example.com
1115 [...]
1116 Matching host key fingerprint found in DNS.
1117 Are you sure you want to continue connecting (yes/no)?
1118 .Ed
1119 .Pp
1120 See the
1121 .Cm VerifyHostKeyDNS
1122 option in
1123 .Xr ssh_config 5
1124 for more information.
1125 .Sh SSH-BASED VIRTUAL PRIVATE NETWORKS
1126 .Nm
1127 contains support for Virtual Private Network (VPN) tunnelling
1128 using the
1129 .Xr tun 4
1130 network pseudo-device,
1131 allowing two networks to be joined securely.
1132 The
1133 .Xr sshd_config 5
1134 configuration option
1135 .Cm PermitTunnel
1136 controls whether the server supports this,
1137 and at what level (layer 2 or 3 traffic).
1138 .Pp
1139 The following example would connect client network 10.0.50.0/24
1140 with remote network 10.0.99.0/24 using a point-to-point connection
1141 from 10.1.1.1 to 10.1.1.2,
1142 provided that the SSH server running on the gateway to the remote network,
1143 at 192.168.1.15, allows it.
1144 .Pp
1145 On the client:
1146 .Bd -literal -offset indent
1147 # ssh -f -w 0:1 192.168.1.15 true
1148 # ifconfig tun0 10.1.1.1 10.1.1.2 netmask 255.255.255.252
1149 # route add 10.0.99.0/24 10.1.1.2
1150 .Ed
1151 .Pp
1152 On the server:
1153 .Bd -literal -offset indent
1154 # ifconfig tun1 10.1.1.2 10.1.1.1 netmask 255.255.255.252
1155 # route add 10.0.50.0/24 10.1.1.1
1156 .Ed
1157 .Pp
1158 Client access may be more finely tuned via the
1159 .Pa /root/.ssh/authorized_keys
1160 file (see below) and the
1161 .Cm PermitRootLogin
1162 server option.
1163 The following entry would permit connections on
1164 .Xr tun 4
1165 device 1 from user
1166 .Dq jane
1167 and on tun device 2 from user
1168 .Dq john ,
1169 if
1170 .Cm PermitRootLogin
1171 is set to
1172 .Dq forced-commands-only :
1173 .Bd -literal -offset 2n
1174 tunnel="1",command="sh /etc/netstart tun1" ssh-rsa ... jane
1175 tunnel="2",command="sh /etc/netstart tun2" ssh-rsa ... john
1176 .Ed
1177 .Pp
1178 Since an SSH-based setup entails a fair amount of overhead,
1179 it may be more suited to temporary setups,
1180 such as for wireless VPNs.
1181 More permanent VPNs are better provided by tools such as
1182 .Xr ipsecctl 8
1183 and
1184 .Xr isakmpd 8 .
1185 .Sh ENVIRONMENT
1186 .Nm
1187 will normally set the following environment variables:
1188 .Bl -tag -width "SSH_ORIGINAL_COMMAND"
1189 .It Ev DISPLAY
1190 The
1191 .Ev DISPLAY
1192 variable indicates the location of the X11 server.
1193 It is automatically set by
1194 .Nm
1195 to point to a value of the form
1196 .Dq hostname:n ,
1197 where
1198 .Dq hostname
1199 indicates the host where the shell runs, and
1200 .Sq n
1201 is an integer \*(Ge 1.
1202 .Nm
1203 uses this special value to forward X11 connections over the secure
1204 channel.
1205 The user should normally not set
1206 .Ev DISPLAY
1207 explicitly, as that
1208 will render the X11 connection insecure (and will require the user to
1209 manually copy any required authorization cookies).
1210 .It Ev HOME
1211 Set to the path of the user's home directory.
1212 .It Ev LOGNAME
1213 Synonym for
1214 .Ev USER ;
1215 set for compatibility with systems that use this variable.
1216 .It Ev MAIL
1217 Set to the path of the user's mailbox.
1218 .It Ev PATH
1219 Set to the default
1220 .Ev PATH ,
1221 as specified when compiling
1222 .Nm .
1223 .It Ev SSH_ASKPASS
1224 If
1225 .Nm
1226 needs a passphrase, it will read the passphrase from the current
1227 terminal if it was run from a terminal.
1228 If
1229 .Nm
1230 does not have a terminal associated with it but
1231 .Ev DISPLAY
1232 and
1233 .Ev SSH_ASKPASS
1234 are set, it will execute the program specified by
1235 .Ev SSH_ASKPASS
1236 and open an X11 window to read the passphrase.
1237 This is particularly useful when calling
1238 .Nm
1239 from a
1240 .Pa .xsession
1241 or related script.
1242 (Note that on some machines it
1243 may be necessary to redirect the input from
1244 .Pa /dev/null
1245 to make this work.)
1246 .It Ev SSH_AUTH_SOCK
1247 Identifies the path of a
1248 .Ux Ns -domain
1249 socket used to communicate with the agent.
1250 .It Ev SSH_CONNECTION
1251 Identifies the client and server ends of the connection.
1252 The variable contains
1253 four space-separated values: client IP address, client port number,
1254 server IP address, and server port number.
1255 .It Ev SSH_ORIGINAL_COMMAND
1256 This variable contains the original command line if a forced command
1257 is executed.
1258 It can be used to extract the original arguments.
1259 .It Ev SSH_TTY
1260 This is set to the name of the tty (path to the device) associated
1261 with the current shell or command.
1262 If the current session has no tty,
1263 this variable is not set.
1264 .It Ev TZ
1265 This variable is set to indicate the present time zone if it
1266 was set when the daemon was started (i.e. the daemon passes the value
1267 on to new connections).
1268 .It Ev USER
1269 Set to the name of the user logging in.
1270 .El
1271 .Pp
1272 Additionally,
1273 .Nm
1274 reads
1275 .Pa ~/.ssh/environment ,
1276 and adds lines of the format
1277 .Dq VARNAME=value
1278 to the environment if the file exists and users are allowed to
1279 change their environment.
1280 For more information, see the
1281 .Cm PermitUserEnvironment
1282 option in
1283 .Xr sshd_config 5 .
1284 .Sh FILES
1285 .Bl -tag -width Ds -compact
1286 .It ~/.rhosts
1287 This file is used for host-based authentication (see above).
1288 On some machines this file may need to be
1289 world-readable if the user's home directory is on an NFS partition,
1290 because
1291 .Xr sshd 8
1292 reads it as root.
1293 Additionally, this file must be owned by the user,
1294 and must not have write permissions for anyone else.
1295 The recommended
1296 permission for most machines is read/write for the user, and not
1297 accessible by others.
1298 .Pp
1299 .It ~/.shosts
1300 This file is used in exactly the same way as
1301 .Pa .rhosts ,
1302 but allows host-based authentication without permitting login with
1303 rlogin/rsh.
1304 .Pp
1305 .It ~/.ssh/
1306 This directory is the default location for all user-specific configuration
1307 and authentication information.
1308 There is no general requirement to keep the entire contents of this directory
1309 secret, but the recommended permissions are read/write/execute for the user,
1310 and not accessible by others.
1311 .Pp
1312 .It ~/.ssh/authorized_keys
1313 Lists the public keys (RSA/DSA) that can be used for logging in as this user.
1314 The format of this file is described in the
1315 .Xr sshd 8
1316 manual page.
1317 This file is not highly sensitive, but the recommended
1318 permissions are read/write for the user, and not accessible by others.
1319 .Pp
1320 .It ~/.ssh/config
1321 This is the per-user configuration file.
1322 The file format and configuration options are described in
1323 .Xr ssh_config 5 .
1324 Because of the potential for abuse, this file must have strict permissions:
1325 read/write for the user, and not accessible by others.
1326 .Pp
1327 .It ~/.ssh/environment
1328 Contains additional definitions for environment variables; see
1329 .Sx ENVIRONMENT ,
1330 above.
1331 .Pp
1332 .It ~/.ssh/identity
1333 .It ~/.ssh/id_dsa
1334 .It ~/.ssh/id_rsa
1335 Contains the private key for authentication.
1336 These files
1337 contain sensitive data and should be readable by the user but not
1338 accessible by others (read/write/execute).
1339 .Nm
1340 will simply ignore a private key file if it is accessible by others.
1341 It is possible to specify a passphrase when
1342 generating the key which will be used to encrypt the
1343 sensitive part of this file using 3DES.
1344 .Pp
1345 .It ~/.ssh/identity.pub
1346 .It ~/.ssh/id_dsa.pub
1347 .It ~/.ssh/id_rsa.pub
1348 Contains the public key for authentication.
1349 These files are not
1350 sensitive and can (but need not) be readable by anyone.
1351 .Pp
1352 .It ~/.ssh/known_hosts
1353 Contains a list of host keys for all hosts the user has logged into
1354 that are not already in the systemwide list of known host keys.
1355 See
1356 .Xr sshd 8
1357 for further details of the format of this file.
1358 .Pp
1359 .It ~/.ssh/rc
1360 Commands in this file are executed by
1361 .Nm
1362 when the user logs in, just before the user's shell (or command) is
1363 started.
1364 See the
1365 .Xr sshd 8
1366 manual page for more information.
1367 .Pp
1368 .It /etc/hosts.equiv
1369 This file is for host-based authentication (see above).
1370 It should only be writable by root.
1371 .Pp
1372 .It /etc/shosts.equiv
1373 This file is used in exactly the same way as
1374 .Pa hosts.equiv ,
1375 but allows host-based authentication without permitting login with
1376 rlogin/rsh.
1377 .Pp
1378 .It Pa /etc/ssh/ssh_config
1379 Systemwide configuration file.
1380 The file format and configuration options are described in
1381 .Xr ssh_config 5 .
1382 .Pp
1383 .It /etc/ssh/ssh_host_key
1384 .It /etc/ssh/ssh_host_dsa_key
1385 .It /etc/ssh/ssh_host_rsa_key
1386 These three files contain the private parts of the host keys
1387 and are used for host-based authentication.
1388 If protocol version 1 is used,
1389 .Nm
1390 must be setuid root, since the host key is readable only by root.
1391 For protocol version 2,
1392 .Nm
1393 uses
1394 .Xr ssh-keysign 8
1395 to access the host keys,
1396 eliminating the requirement that
1397 .Nm
1398 be setuid root when host-based authentication is used.
1399 By default
1400 .Nm
1401 is not setuid root.
1402 .Pp
1403 .It /etc/ssh/ssh_known_hosts
1404 Systemwide list of known host keys.
1405 This file should be prepared by the
1406 system administrator to contain the public host keys of all machines in the
1407 organization.
1408 It should be world-readable.
1409 See
1410 .Xr sshd 8
1411 for further details of the format of this file.
1412 .Pp
1413 .It /etc/ssh/sshrc
1414 Commands in this file are executed by
1415 .Nm
1416 when the user logs in, just before the user's shell (or command) is started.
1417 See the
1418 .Xr sshd 8
1419 manual page for more information.
1420 .El
1421 .Sh SEE ALSO
1422 .Xr scp 1 ,
1423 .Xr sftp 1 ,
1424 .Xr ssh-add 1 ,
1425 .Xr ssh-agent 1 ,
1426 .Xr ssh-keygen 1 ,
1427 .Xr ssh-keyscan 1 ,
1428 .Xr tun 4 ,
1429 .Xr hosts.equiv 5 ,
1430 .Xr ssh_config 5 ,
1431 .Xr ssh-keysign 8 ,
1432 .Xr sshd 8
1433 .Rs
1434 .%R RFC 4250
1435 .%T "The Secure Shell (SSH) Protocol Assigned Numbers"
1436 .%D 2006
1437 .Re
1438 .Rs
1439 .%R RFC 4251
1440 .%T "The Secure Shell (SSH) Protocol Architecture"
1441 .%D 2006
1442 .Re
1443 .Rs
1444 .%R RFC 4252
1445 .%T "The Secure Shell (SSH) Authentication Protocol"
1446 .%D 2006
1447 .Re
1448 .Rs
1449 .%R RFC 4253
1450 .%T "The Secure Shell (SSH) Transport Layer Protocol"
1451 .%D 2006
1452 .Re
1453 .Rs
1454 .%R RFC 4254
1455 .%T "The Secure Shell (SSH) Connection Protocol"
1456 .%D 2006
1457 .Re
1458 .Rs
1459 .%R RFC 4255
1460 .%T "Using DNS to Securely Publish Secure Shell (SSH) Key Fingerprints"
1461 .%D 2006
1462 .Re
1463 .Rs
1464 .%R RFC 4256
1465 .%T "Generic Message Exchange Authentication for the Secure Shell Protocol (SSH)"
1466 .%D 2006
1467 .Re
1468 .Rs
1469 .%R RFC 4335
1470 .%T "The Secure Shell (SSH) Session Channel Break Extension"
1471 .%D 2006
1472 .Re
1473 .Rs
1474 .%R RFC 4344
1475 .%T "The Secure Shell (SSH) Transport Layer Encryption Modes"
1476 .%D 2006
1477 .Re
1478 .Rs
1479 .%R RFC 4345
1480 .%T "Improved Arcfour Modes for the Secure Shell (SSH) Transport Layer Protocol"
1481 .%D 2006
1482 .Re
1483 .Rs
1484 .%R RFC 4419
1485 .%T "Diffie-Hellman Group Exchange for the Secure Shell (SSH) Transport Layer Protocol"
1486 .%D 2006
1487 .Re
1488 .Rs
1489 .%R RFC 4716
1490 .%T "The Secure Shell (SSH) Public Key File Format"
1491 .%D 2006
1492 .Re
1493 .Rs
1494 .%T "Hash Visualization: a New Technique to improve Real-World Security"
1495 .%A A. Perrig
1496 .%A D. Song
1497 .%D 1999
1498 .%O "International Workshop on Cryptographic Techniques and E-Commerce (CrypTEC '99)"
1499 .Re
1500 .Sh AUTHORS
1501 OpenSSH is a derivative of the original and free
1502 ssh 1.2.12 release by Tatu Ylonen.
1503 Aaron Campbell, Bob Beck, Markus Friedl, Niels Provos,
1504 Theo de Raadt and Dug Song
1505 removed many bugs, re-added newer features and
1506 created OpenSSH.
1507 Markus Friedl contributed the support for SSH
1508 protocol versions 1.5 and 2.0.