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