[BACK]Return to ssh_config.5 CVS log [TXT][DIR] Up to [local] / src / usr.bin / ssh

Annotation of src/usr.bin/ssh/ssh_config.5, Revision 1.164

1.1       stevesk     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: .\"
1.164   ! jmc        36: .\" $OpenBSD: ssh_config.5,v 1.163 2013/05/16 04:27:50 djm Exp $
1.163     djm        37: .Dd $Mdocdate: May 16 2013 $
1.1       stevesk    38: .Dt SSH_CONFIG 5
                     39: .Os
                     40: .Sh NAME
                     41: .Nm ssh_config
                     42: .Nd OpenSSH SSH client configuration files
                     43: .Sh SYNOPSIS
1.98      jmc        44: .Nm ~/.ssh/config
                     45: .Nm /etc/ssh/ssh_config
1.1       stevesk    46: .Sh DESCRIPTION
1.84      jmc        47: .Xr ssh 1
1.1       stevesk    48: obtains configuration data from the following sources in
                     49: the following order:
1.79      jmc        50: .Pp
1.2       stevesk    51: .Bl -enum -offset indent -compact
                     52: .It
                     53: command-line options
                     54: .It
                     55: user's configuration file
1.50      djm        56: .Pq Pa ~/.ssh/config
1.2       stevesk    57: .It
                     58: system-wide configuration file
                     59: .Pq Pa /etc/ssh/ssh_config
                     60: .El
1.1       stevesk    61: .Pp
                     62: For each parameter, the first obtained value
                     63: will be used.
1.41      jmc        64: The configuration files contain sections separated by
1.1       stevesk    65: .Dq Host
                     66: specifications, and that section is only applied for hosts that
                     67: match one of the patterns given in the specification.
                     68: The matched host name is the one given on the command line.
                     69: .Pp
                     70: Since the first obtained value for each parameter is used, more
                     71: host-specific declarations should be given near the beginning of the
                     72: file, and general defaults at the end.
1.80      jmc        73: .Pp
1.1       stevesk    74: The configuration file has the following format:
                     75: .Pp
                     76: Empty lines and lines starting with
                     77: .Ql #
                     78: are comments.
                     79: Otherwise a line is of the format
                     80: .Dq keyword arguments .
                     81: Configuration options may be separated by whitespace or
                     82: optional whitespace and exactly one
                     83: .Ql = ;
                     84: the latter format is useful to avoid the need to quote whitespace
                     85: when specifying configuration options using the
                     86: .Nm ssh ,
1.87      jmc        87: .Nm scp ,
1.1       stevesk    88: and
                     89: .Nm sftp
                     90: .Fl o
                     91: option.
1.88      dtucker    92: Arguments may optionally be enclosed in double quotes
                     93: .Pq \&"
                     94: in order to represent arguments containing spaces.
1.1       stevesk    95: .Pp
                     96: The possible
                     97: keywords and their meanings are as follows (note that
                     98: keywords are case-insensitive and arguments are case-sensitive):
                     99: .Bl -tag -width Ds
                    100: .It Cm Host
                    101: Restricts the following declarations (up to the next
                    102: .Cm Host
                    103: keyword) to be only for those hosts that match one of the patterns
                    104: given after the keyword.
1.112     krw       105: If more than one pattern is provided, they should be separated by whitespace.
1.1       stevesk   106: A single
1.83      jmc       107: .Ql *
1.1       stevesk   108: as a pattern can be used to provide global
                    109: defaults for all hosts.
                    110: The host is the
                    111: .Ar hostname
1.83      jmc       112: argument given on the command line (i.e. the name is not converted to
1.1       stevesk   113: a canonicalized host name before matching).
1.148     djm       114: .Pp
                    115: A pattern entry may be negated by prefixing it with an exclamation mark
                    116: .Pq Sq !\& .
                    117: If a negated entry is matched, then the
                    118: .Cm Host
                    119: entry is ignored, regardless of whether any other patterns on the line
                    120: match.
                    121: Negated matches are therefore useful to provide exceptions for wildcard
                    122: matches.
1.81      jmc       123: .Pp
                    124: See
                    125: .Sx PATTERNS
                    126: for more information on patterns.
1.10      djm       127: .It Cm AddressFamily
1.11      jmc       128: Specifies which address family to use when connecting.
                    129: Valid arguments are
1.10      djm       130: .Dq any ,
                    131: .Dq inet
1.84      jmc       132: (use IPv4 only), or
1.10      djm       133: .Dq inet6
1.40      jmc       134: (use IPv6 only).
1.1       stevesk   135: .It Cm BatchMode
                    136: If set to
                    137: .Dq yes ,
                    138: passphrase/password querying will be disabled.
                    139: This option is useful in scripts and other batch jobs where no user
                    140: is present to supply the password.
                    141: The argument must be
                    142: .Dq yes
                    143: or
                    144: .Dq no .
                    145: The default is
                    146: .Dq no .
                    147: .It Cm BindAddress
1.60      dtucker   148: Use the specified address on the local machine as the source address of
1.61      jmc       149: the connection.
                    150: Only useful on systems with more than one address.
1.1       stevesk   151: Note that this option does not work if
                    152: .Cm UsePrivilegedPort
                    153: is set to
                    154: .Dq yes .
                    155: .It Cm ChallengeResponseAuthentication
1.82      jmc       156: Specifies whether to use challenge-response authentication.
1.1       stevesk   157: The argument to this keyword must be
                    158: .Dq yes
                    159: or
                    160: .Dq no .
                    161: The default is
                    162: .Dq yes .
                    163: .It Cm CheckHostIP
                    164: If this flag is set to
                    165: .Dq yes ,
1.84      jmc       166: .Xr ssh 1
                    167: will additionally check the host IP address in the
1.1       stevesk   168: .Pa known_hosts
                    169: file.
                    170: This allows ssh to detect if a host key changed due to DNS spoofing.
1.107     grunk     171: If the option is set to
1.1       stevesk   172: .Dq no ,
                    173: the check will not be executed.
                    174: The default is
                    175: .Dq yes .
                    176: .It Cm Cipher
                    177: Specifies the cipher to use for encrypting the session
                    178: in protocol version 1.
                    179: Currently,
                    180: .Dq blowfish ,
                    181: .Dq 3des ,
                    182: and
                    183: .Dq des
                    184: are supported.
                    185: .Ar des
                    186: is only supported in the
1.84      jmc       187: .Xr ssh 1
1.1       stevesk   188: client for interoperability with legacy protocol 1 implementations
                    189: that do not support the
                    190: .Ar 3des
1.7       jmc       191: cipher.
                    192: Its use is strongly discouraged due to cryptographic weaknesses.
1.1       stevesk   193: The default is
                    194: .Dq 3des .
                    195: .It Cm Ciphers
                    196: Specifies the ciphers allowed for protocol version 2
                    197: in order of preference.
                    198: Multiple ciphers must be comma-separated.
1.35      dtucker   199: The supported ciphers are
                    200: .Dq 3des-cbc ,
                    201: .Dq aes128-cbc ,
                    202: .Dq aes192-cbc ,
                    203: .Dq aes256-cbc ,
                    204: .Dq aes128-ctr ,
                    205: .Dq aes192-ctr ,
                    206: .Dq aes256-ctr ,
1.161     markus    207: .Dq aes128-gcm@openssh.com ,
                    208: .Dq aes256-gcm@openssh.com ,
1.54      djm       209: .Dq arcfour128 ,
                    210: .Dq arcfour256 ,
1.35      dtucker   211: .Dq arcfour ,
                    212: .Dq blowfish-cbc ,
                    213: and
                    214: .Dq cast128-cbc .
1.84      jmc       215: The default is:
                    216: .Bd -literal -offset 3n
1.116     naddy     217: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,
1.161     markus    218: aes128-gcm@openssh.com,aes256-gcm@openssh.com,
1.116     naddy     219: aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,
                    220: aes256-cbc,arcfour
1.1       stevesk   221: .Ed
                    222: .It Cm ClearAllForwardings
1.84      jmc       223: Specifies that all local, remote, and dynamic port forwardings
1.1       stevesk   224: specified in the configuration files or on the command line be
1.7       jmc       225: cleared.
                    226: This option is primarily useful when used from the
1.84      jmc       227: .Xr ssh 1
1.1       stevesk   228: command line to clear port forwardings set in
                    229: configuration files, and is automatically set by
                    230: .Xr scp 1
                    231: and
                    232: .Xr sftp 1 .
                    233: The argument must be
                    234: .Dq yes
                    235: or
                    236: .Dq no .
                    237: The default is
                    238: .Dq no .
                    239: .It Cm Compression
                    240: Specifies whether to use compression.
                    241: The argument must be
                    242: .Dq yes
                    243: or
                    244: .Dq no .
                    245: The default is
                    246: .Dq no .
                    247: .It Cm CompressionLevel
                    248: Specifies the compression level to use if compression is enabled.
                    249: The argument must be an integer from 1 (fast) to 9 (slow, best).
                    250: The default level is 6, which is good for most applications.
                    251: The meaning of the values is the same as in
                    252: .Xr gzip 1 .
                    253: Note that this option applies to protocol version 1 only.
                    254: .It Cm ConnectionAttempts
                    255: Specifies the number of tries (one per second) to make before exiting.
                    256: The argument must be an integer.
                    257: This may be useful in scripts if the connection sometimes fails.
                    258: The default is 1.
1.9       djm       259: .It Cm ConnectTimeout
1.84      jmc       260: Specifies the timeout (in seconds) used when connecting to the
                    261: SSH server, instead of using the default system TCP timeout.
1.11      jmc       262: This value is used only when the target is down or really unreachable,
                    263: not when it refuses the connection.
1.36      djm       264: .It Cm ControlMaster
                    265: Enables the sharing of multiple sessions over a single network connection.
                    266: When set to
1.84      jmc       267: .Dq yes ,
                    268: .Xr ssh 1
1.36      djm       269: will listen for connections on a control socket specified using the
                    270: .Cm ControlPath
                    271: argument.
                    272: Additional sessions can connect to this socket using the same
                    273: .Cm ControlPath
                    274: with
                    275: .Cm ControlMaster
                    276: set to
                    277: .Dq no
1.38      jmc       278: (the default).
1.64      jmc       279: These sessions will try to reuse the master instance's network connection
1.63      djm       280: rather than initiating new ones, but will fall back to connecting normally
                    281: if the control socket does not exist, or is not listening.
                    282: .Pp
1.37      djm       283: Setting this to
                    284: .Dq ask
1.84      jmc       285: will cause ssh
1.37      djm       286: to listen for control connections, but require confirmation using the
                    287: .Ev SSH_ASKPASS
                    288: program before they are accepted (see
                    289: .Xr ssh-add 1
1.38      jmc       290: for details).
1.51      jakob     291: If the
                    292: .Cm ControlPath
1.84      jmc       293: cannot be opened,
                    294: ssh will continue without connecting to a master instance.
1.58      djm       295: .Pp
                    296: X11 and
1.59      jmc       297: .Xr ssh-agent 1
1.58      djm       298: forwarding is supported over these multiplexed connections, however the
1.70      stevesk   299: display and agent forwarded will be the one belonging to the master
1.59      jmc       300: connection i.e. it is not possible to forward multiple displays or agents.
1.56      djm       301: .Pp
                    302: Two additional options allow for opportunistic multiplexing: try to use a
                    303: master connection but fall back to creating a new one if one does not already
                    304: exist.
                    305: These options are:
                    306: .Dq auto
                    307: and
                    308: .Dq autoask .
                    309: The latter requires confirmation like the
                    310: .Dq ask
                    311: option.
1.36      djm       312: .It Cm ControlPath
1.55      djm       313: Specify the path to the control socket used for connection sharing as described
                    314: in the
1.36      djm       315: .Cm ControlMaster
1.57      djm       316: section above or the string
                    317: .Dq none
                    318: to disable connection sharing.
1.55      djm       319: In the path,
1.147     djm       320: .Ql %L
                    321: will be substituted by the first component of the local host name,
1.77      djm       322: .Ql %l
1.147     djm       323: will be substituted by the local host name (including any domain name),
1.55      djm       324: .Ql %h
                    325: will be substituted by the target host name,
1.150     jmc       326: .Ql %n
                    327: will be substituted by the original target host name
                    328: specified on the command line,
1.55      djm       329: .Ql %p
1.147     djm       330: the port,
1.55      djm       331: .Ql %r
1.147     djm       332: by the remote login username, and
                    333: .Ql %u
                    334: by the username of the user running
                    335: .Xr ssh 1 .
1.56      djm       336: It is recommended that any
                    337: .Cm ControlPath
                    338: used for opportunistic connection sharing include
1.78      jmc       339: at least %h, %p, and %r.
1.56      djm       340: This ensures that shared connections are uniquely identified.
1.137     djm       341: .It Cm ControlPersist
                    342: When used in conjunction with
                    343: .Cm ControlMaster ,
                    344: specifies that the master connection should remain open
                    345: in the background (waiting for future client connections)
                    346: after the initial client connection has been closed.
                    347: If set to
                    348: .Dq no ,
                    349: then the master connection will not be placed into the background,
                    350: and will close as soon as the initial client connection is closed.
                    351: If set to
                    352: .Dq yes ,
                    353: then the master connection will remain in the background indefinitely
                    354: (until killed or closed via a mechanism such as the
                    355: .Xr ssh 1
                    356: .Dq Fl O No exit
                    357: option).
                    358: If set to a time in seconds, or a time in any of the formats documented in
                    359: .Xr sshd_config 5 ,
                    360: then the backgrounded master connection will automatically terminate
                    361: after it has remained idle (with no client connections) for the
                    362: specified time.
1.38      jmc       363: .It Cm DynamicForward
1.74      jmc       364: Specifies that a TCP port on the local machine be forwarded
1.38      jmc       365: over the secure channel, and the application
                    366: protocol is then used to determine where to connect to from the
                    367: remote machine.
1.62      djm       368: .Pp
                    369: The argument must be
                    370: .Sm off
                    371: .Oo Ar bind_address : Oc Ar port .
                    372: .Sm on
1.138     djm       373: IPv6 addresses can be specified by enclosing addresses in square brackets.
1.62      djm       374: By default, the local port is bound in accordance with the
                    375: .Cm GatewayPorts
                    376: setting.
                    377: However, an explicit
                    378: .Ar bind_address
                    379: may be used to bind the connection to a specific address.
                    380: The
                    381: .Ar bind_address
                    382: of
                    383: .Dq localhost
                    384: indicates that the listening port be bound for local use only, while an
                    385: empty address or
                    386: .Sq *
                    387: indicates that the port should be available from all interfaces.
                    388: .Pp
1.38      jmc       389: Currently the SOCKS4 and SOCKS5 protocols are supported, and
1.84      jmc       390: .Xr ssh 1
1.38      jmc       391: will act as a SOCKS server.
                    392: Multiple forwardings may be specified, and
                    393: additional forwardings can be given on the command line.
                    394: Only the superuser can forward privileged ports.
1.14      markus    395: .It Cm EnableSSHKeysign
                    396: Setting this option to
                    397: .Dq yes
                    398: in the global client configuration file
                    399: .Pa /etc/ssh/ssh_config
                    400: enables the use of the helper program
                    401: .Xr ssh-keysign 8
                    402: during
                    403: .Cm HostbasedAuthentication .
                    404: The argument must be
                    405: .Dq yes
                    406: or
                    407: .Dq no .
                    408: The default is
                    409: .Dq no .
1.23      jmc       410: This option should be placed in the non-hostspecific section.
1.14      markus    411: See
                    412: .Xr ssh-keysign 8
                    413: for more information.
1.1       stevesk   414: .It Cm EscapeChar
                    415: Sets the escape character (default:
                    416: .Ql ~ ) .
                    417: The escape character can also
                    418: be set on the command line.
                    419: The argument should be a single character,
                    420: .Ql ^
                    421: followed by a letter, or
                    422: .Dq none
                    423: to disable the escape
                    424: character entirely (making the connection transparent for binary
                    425: data).
1.96      markus    426: .It Cm ExitOnForwardFailure
                    427: Specifies whether
                    428: .Xr ssh 1
                    429: should terminate the connection if it cannot set up all requested
1.102     stevesk   430: dynamic, tunnel, local, and remote port forwardings.
1.96      markus    431: The argument must be
                    432: .Dq yes
                    433: or
                    434: .Dq no .
                    435: The default is
                    436: .Dq no .
1.1       stevesk   437: .It Cm ForwardAgent
                    438: Specifies whether the connection to the authentication agent (if any)
                    439: will be forwarded to the remote machine.
                    440: The argument must be
                    441: .Dq yes
                    442: or
                    443: .Dq no .
                    444: The default is
                    445: .Dq no .
1.3       stevesk   446: .Pp
1.7       jmc       447: Agent forwarding should be enabled with caution.
                    448: Users with the ability to bypass file permissions on the remote host
                    449: (for the agent's Unix-domain socket)
                    450: can access the local agent through the forwarded connection.
                    451: An attacker cannot obtain key material from the agent,
1.3       stevesk   452: however they can perform operations on the keys that enable them to
                    453: authenticate using the identities loaded into the agent.
1.1       stevesk   454: .It Cm ForwardX11
                    455: Specifies whether X11 connections will be automatically redirected
                    456: over the secure channel and
                    457: .Ev DISPLAY
                    458: set.
                    459: The argument must be
                    460: .Dq yes
                    461: or
                    462: .Dq no .
                    463: The default is
                    464: .Dq no .
1.3       stevesk   465: .Pp
1.7       jmc       466: X11 forwarding should be enabled with caution.
                    467: Users with the ability to bypass file permissions on the remote host
1.22      markus    468: (for the user's X11 authorization database)
1.7       jmc       469: can access the local X11 display through the forwarded connection.
1.22      markus    470: An attacker may then be able to perform activities such as keystroke monitoring
                    471: if the
                    472: .Cm ForwardX11Trusted
                    473: option is also enabled.
1.134     djm       474: .It Cm ForwardX11Timeout
1.135     jmc       475: Specify a timeout for untrusted X11 forwarding
                    476: using the format described in the
1.134     djm       477: .Sx TIME FORMATS
                    478: section of
                    479: .Xr sshd_config 5 .
                    480: X11 connections received by
                    481: .Xr ssh 1
                    482: after this time will be refused.
                    483: The default is to disable untrusted X11 forwarding after twenty minutes has
                    484: elapsed.
1.22      markus    485: .It Cm ForwardX11Trusted
1.34      jmc       486: If this option is set to
1.84      jmc       487: .Dq yes ,
                    488: remote X11 clients will have full access to the original X11 display.
1.42      djm       489: .Pp
1.22      markus    490: If this option is set to
1.84      jmc       491: .Dq no ,
                    492: remote X11 clients will be considered untrusted and prevented
1.22      markus    493: from stealing or tampering with data belonging to trusted X11
                    494: clients.
1.42      djm       495: Furthermore, the
                    496: .Xr xauth 1
                    497: token used for the session will be set to expire after 20 minutes.
                    498: Remote clients will be refused access after this time.
1.22      markus    499: .Pp
                    500: The default is
                    501: .Dq no .
                    502: .Pp
                    503: See the X11 SECURITY extension specification for full details on
                    504: the restrictions imposed on untrusted clients.
1.1       stevesk   505: .It Cm GatewayPorts
                    506: Specifies whether remote hosts are allowed to connect to local
                    507: forwarded ports.
                    508: By default,
1.84      jmc       509: .Xr ssh 1
1.7       jmc       510: binds local port forwardings to the loopback address.
                    511: This prevents other remote hosts from connecting to forwarded ports.
1.1       stevesk   512: .Cm GatewayPorts
1.84      jmc       513: can be used to specify that ssh
1.1       stevesk   514: should bind local port forwardings to the wildcard address,
                    515: thus allowing remote hosts to connect to forwarded ports.
                    516: The argument must be
                    517: .Dq yes
                    518: or
                    519: .Dq no .
                    520: The default is
                    521: .Dq no .
                    522: .It Cm GlobalKnownHostsFile
1.151     djm       523: Specifies one or more files to use for the global
                    524: host key database, separated by whitespace.
                    525: The default is
                    526: .Pa /etc/ssh/ssh_known_hosts ,
                    527: .Pa /etc/ssh/ssh_known_hosts2 .
1.18      markus    528: .It Cm GSSAPIAuthentication
1.27      markus    529: Specifies whether user authentication based on GSSAPI is allowed.
1.20      jmc       530: The default is
1.21      markus    531: .Dq no .
1.18      markus    532: Note that this option applies to protocol version 2 only.
                    533: .It Cm GSSAPIDelegateCredentials
                    534: Forward (delegate) credentials to the server.
                    535: The default is
                    536: .Dq no .
                    537: Note that this option applies to protocol version 2 only.
1.44      djm       538: .It Cm HashKnownHosts
                    539: Indicates that
1.84      jmc       540: .Xr ssh 1
1.44      djm       541: should hash host names and addresses when they are added to
1.50      djm       542: .Pa ~/.ssh/known_hosts .
1.44      djm       543: These hashed names may be used normally by
1.84      jmc       544: .Xr ssh 1
1.44      djm       545: and
1.84      jmc       546: .Xr sshd 8 ,
1.44      djm       547: but they do not reveal identifying information should the file's contents
                    548: be disclosed.
                    549: The default is
                    550: .Dq no .
1.97      jmc       551: Note that existing names and addresses in known hosts files
                    552: will not be converted automatically,
                    553: but may be manually hashed using
1.45      djm       554: .Xr ssh-keygen 1 .
1.1       stevesk   555: .It Cm HostbasedAuthentication
                    556: Specifies whether to try rhosts based authentication with public key
                    557: authentication.
                    558: The argument must be
                    559: .Dq yes
                    560: or
                    561: .Dq no .
                    562: The default is
                    563: .Dq no .
                    564: This option applies to protocol version 2 only and
                    565: is similar to
                    566: .Cm RhostsRSAAuthentication .
                    567: .It Cm HostKeyAlgorithms
                    568: Specifies the protocol version 2 host key algorithms
                    569: that the client wants to use in order of preference.
                    570: The default for this option is:
1.139     djm       571: .Bd -literal -offset 3n
                    572: ecdsa-sha2-nistp256-cert-v01@openssh.com,
                    573: ecdsa-sha2-nistp384-cert-v01@openssh.com,
                    574: ecdsa-sha2-nistp521-cert-v01@openssh.com,
                    575: ssh-rsa-cert-v01@openssh.com,ssh-dss-cert-v01@openssh.com,
                    576: ssh-rsa-cert-v00@openssh.com,ssh-dss-cert-v00@openssh.com,
                    577: ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,
                    578: ssh-rsa,ssh-dss
                    579: .Ed
1.145     djm       580: .Pp
                    581: If hostkeys are known for the destination host then this default is modified
                    582: to prefer their algorithms.
1.1       stevesk   583: .It Cm HostKeyAlias
                    584: Specifies an alias that should be used instead of the
                    585: real host name when looking up or saving the host key
                    586: in the host key database files.
1.84      jmc       587: This option is useful for tunneling SSH connections
1.1       stevesk   588: or for multiple servers running on a single host.
                    589: .It Cm HostName
                    590: Specifies the real host name to log into.
                    591: This can be used to specify nicknames or abbreviations for hosts.
1.136     djm       592: If the hostname contains the character sequence
                    593: .Ql %h ,
1.150     jmc       594: then this will be replaced with the host name specified on the command line
1.136     djm       595: (this is useful for manipulating unqualified names).
1.84      jmc       596: The default is the name given on the command line.
1.1       stevesk   597: Numeric IP addresses are also permitted (both on the command line and in
                    598: .Cm HostName
                    599: specifications).
1.29      markus    600: .It Cm IdentitiesOnly
                    601: Specifies that
1.84      jmc       602: .Xr ssh 1
1.29      markus    603: should only use the authentication identity files configured in the
1.31      jmc       604: .Nm
1.29      markus    605: files,
1.84      jmc       606: even if
                    607: .Xr ssh-agent 1
1.159     djm       608: or a
                    609: .Cm PKCS11Provider
1.29      markus    610: offers more identities.
                    611: The argument to this keyword must be
                    612: .Dq yes
                    613: or
                    614: .Dq no .
1.84      jmc       615: This option is intended for situations where ssh-agent
1.29      markus    616: offers many different identities.
                    617: The default is
                    618: .Dq no .
1.67      jmc       619: .It Cm IdentityFile
1.155     dtucker   620: Specifies a file from which the user's DSA, ECDSA or RSA authentication
1.139     djm       621: identity is read.
1.67      jmc       622: The default is
                    623: .Pa ~/.ssh/identity
                    624: for protocol version 1, and
1.139     djm       625: .Pa ~/.ssh/id_dsa ,
                    626: .Pa ~/.ssh/id_ecdsa
                    627: and
1.67      jmc       628: .Pa ~/.ssh/id_rsa
                    629: for protocol version 2.
                    630: Additionally, any identities represented by the authentication agent
                    631: will be used for authentication.
1.129     djm       632: .Xr ssh 1
                    633: will try to load certificate information from the filename obtained by
                    634: appending
                    635: .Pa -cert.pub
                    636: to the path of a specified
                    637: .Cm IdentityFile .
1.90      djm       638: .Pp
1.67      jmc       639: The file name may use the tilde
1.91      jmc       640: syntax to refer to a user's home directory or one of the following
1.90      djm       641: escape characters:
                    642: .Ql %d
                    643: (local user's home directory),
                    644: .Ql %u
                    645: (local user name),
                    646: .Ql %l
                    647: (local host name),
                    648: .Ql %h
                    649: (remote host name) or
1.92      djm       650: .Ql %r
1.90      djm       651: (remote user name).
                    652: .Pp
1.67      jmc       653: It is possible to have
                    654: multiple identity files specified in configuration files; all these
                    655: identities will be tried in sequence.
1.152     djm       656: Multiple
                    657: .Cm IdentityFile
                    658: directives will add to the list of identities tried (this behaviour
                    659: differs from that of other configuration directives).
1.164   ! jmc       660: .It Cm IgnoreUnknown
        !           661: Specifies a pattern-list of unknown options to be ignored if they are
        !           662: encountered in configuration parsing.
        !           663: This may be used to suppress errors if
        !           664: .Nm
        !           665: contains options that are unrecognised by
        !           666: .Xr ssh 1 .
        !           667: It is recommended that
        !           668: .Cm IgnoreUnknown
        !           669: be listed early in the configuration file as it will not be applied
        !           670: to unknown options that appear before it.
1.143     djm       671: .It Cm IPQoS
                    672: Specifies the IPv4 type-of-service or DSCP class for connections.
                    673: Accepted values are
                    674: .Dq af11 ,
                    675: .Dq af12 ,
                    676: .Dq af13 ,
1.154     djm       677: .Dq af21 ,
1.143     djm       678: .Dq af22 ,
                    679: .Dq af23 ,
                    680: .Dq af31 ,
                    681: .Dq af32 ,
                    682: .Dq af33 ,
                    683: .Dq af41 ,
                    684: .Dq af42 ,
                    685: .Dq af43 ,
                    686: .Dq cs0 ,
                    687: .Dq cs1 ,
                    688: .Dq cs2 ,
                    689: .Dq cs3 ,
                    690: .Dq cs4 ,
                    691: .Dq cs5 ,
                    692: .Dq cs6 ,
                    693: .Dq cs7 ,
                    694: .Dq ef ,
                    695: .Dq lowdelay ,
                    696: .Dq throughput ,
                    697: .Dq reliability ,
                    698: or a numeric value.
1.146     djm       699: This option may take one or two arguments, separated by whitespace.
1.143     djm       700: If one argument is specified, it is used as the packet class unconditionally.
                    701: If two values are specified, the first is automatically selected for
                    702: interactive sessions and the second for non-interactive sessions.
                    703: The default is
                    704: .Dq lowdelay
                    705: for interactive sessions and
                    706: .Dq throughput
                    707: for non-interactive sessions.
1.103     djm       708: .It Cm KbdInteractiveAuthentication
                    709: Specifies whether to use keyboard-interactive authentication.
                    710: The argument to this keyword must be
                    711: .Dq yes
                    712: or
                    713: .Dq no .
                    714: The default is
                    715: .Dq yes .
1.39      djm       716: .It Cm KbdInteractiveDevices
                    717: Specifies the list of methods to use in keyboard-interactive authentication.
                    718: Multiple method names must be comma-separated.
                    719: The default is to use the server specified list.
1.85      jmc       720: The methods available vary depending on what the server supports.
                    721: For an OpenSSH server,
                    722: it may be zero or more of:
                    723: .Dq bsdauth ,
                    724: .Dq pam ,
                    725: and
                    726: .Dq skey .
1.140     djm       727: .It Cm KexAlgorithms
                    728: Specifies the available KEX (Key Exchange) algorithms.
                    729: Multiple algorithms must be comma-separated.
1.141     jmc       730: The default is:
                    731: .Bd -literal -offset indent
                    732: ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,
                    733: diffie-hellman-group-exchange-sha256,
                    734: diffie-hellman-group-exchange-sha1,
                    735: diffie-hellman-group14-sha1,
                    736: diffie-hellman-group1-sha1
                    737: .Ed
1.65      reyk      738: .It Cm LocalCommand
                    739: Specifies a command to execute on the local machine after successfully
                    740: connecting to the server.
                    741: The command string extends to the end of the line, and is executed with
1.105     jmc       742: the user's shell.
1.109     dtucker   743: The following escape character substitutions will be performed:
                    744: .Ql %d
                    745: (local user's home directory),
                    746: .Ql %h
                    747: (remote host name),
                    748: .Ql %l
                    749: (local host name),
                    750: .Ql %n
                    751: (host name as provided on the command line),
                    752: .Ql %p
                    753: (remote port),
                    754: .Ql %r
                    755: (remote user name) or
                    756: .Ql %u
                    757: (local user name).
1.123     djm       758: .Pp
                    759: The command is run synchronously and does not have access to the
                    760: session of the
                    761: .Xr ssh 1
                    762: that spawned it.
                    763: It should not be used for interactive commands.
                    764: .Pp
1.65      reyk      765: This directive is ignored unless
                    766: .Cm PermitLocalCommand
                    767: has been enabled.
1.1       stevesk   768: .It Cm LocalForward
1.74      jmc       769: Specifies that a TCP port on the local machine be forwarded over
1.1       stevesk   770: the secure channel to the specified host and port from the remote machine.
1.49      jmc       771: The first argument must be
1.43      djm       772: .Sm off
1.49      jmc       773: .Oo Ar bind_address : Oc Ar port
1.43      djm       774: .Sm on
1.49      jmc       775: and the second argument must be
                    776: .Ar host : Ns Ar hostport .
1.138     djm       777: IPv6 addresses can be specified by enclosing addresses in square brackets.
1.46      jmc       778: Multiple forwardings may be specified, and additional forwardings can be
1.43      djm       779: given on the command line.
1.1       stevesk   780: Only the superuser can forward privileged ports.
1.43      djm       781: By default, the local port is bound in accordance with the
                    782: .Cm GatewayPorts
                    783: setting.
                    784: However, an explicit
                    785: .Ar bind_address
                    786: may be used to bind the connection to a specific address.
                    787: The
                    788: .Ar bind_address
                    789: of
                    790: .Dq localhost
1.46      jmc       791: indicates that the listening port be bound for local use only, while an
                    792: empty address or
                    793: .Sq *
1.43      djm       794: indicates that the port should be available from all interfaces.
1.1       stevesk   795: .It Cm LogLevel
                    796: Gives the verbosity level that is used when logging messages from
1.84      jmc       797: .Xr ssh 1 .
1.1       stevesk   798: The possible values are:
1.84      jmc       799: QUIET, FATAL, ERROR, INFO, VERBOSE, DEBUG, DEBUG1, DEBUG2, and DEBUG3.
1.7       jmc       800: The default is INFO.
                    801: DEBUG and DEBUG1 are equivalent.
                    802: DEBUG2 and DEBUG3 each specify higher levels of verbose output.
1.1       stevesk   803: .It Cm MACs
                    804: Specifies the MAC (message authentication code) algorithms
                    805: in order of preference.
                    806: The MAC algorithm is used in protocol version 2
                    807: for data integrity protection.
                    808: Multiple algorithms must be comma-separated.
1.160     markus    809: The algorithms that contain
                    810: .Dq -etm
                    811: calculate the MAC after encryption (encrypt-then-mac).
                    812: These are considered safer and their use recommended.
1.84      jmc       813: The default is:
1.101     jmc       814: .Bd -literal -offset indent
1.160     markus    815: hmac-md5-etm@openssh.com,hmac-sha1-etm@openssh.com,
                    816: umac-64-etm@openssh.com,umac-128-etm@openssh.com,
                    817: hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,
                    818: hmac-ripemd160-etm@openssh.com,hmac-sha1-96-etm@openssh.com,
                    819: hmac-md5-96-etm@openssh.com,
1.158     markus    820: hmac-md5,hmac-sha1,umac-64@openssh.com,umac-128@openssh.com,
1.157     naddy     821: hmac-sha2-256,hmac-sha2-512,hmac-ripemd160,
                    822: hmac-sha1-96,hmac-md5-96
1.101     jmc       823: .Ed
1.1       stevesk   824: .It Cm NoHostAuthenticationForLocalhost
                    825: This option can be used if the home directory is shared across machines.
                    826: In this case localhost will refer to a different machine on each of
                    827: the machines and the user will get many warnings about changed host keys.
                    828: However, this option disables host authentication for localhost.
                    829: The argument to this keyword must be
                    830: .Dq yes
                    831: or
                    832: .Dq no .
                    833: The default is to check the host key for localhost.
                    834: .It Cm NumberOfPasswordPrompts
                    835: Specifies the number of password prompts before giving up.
                    836: The argument to this keyword must be an integer.
1.84      jmc       837: The default is 3.
1.1       stevesk   838: .It Cm PasswordAuthentication
                    839: Specifies whether to use password authentication.
                    840: The argument to this keyword must be
                    841: .Dq yes
                    842: or
                    843: .Dq no .
                    844: The default is
                    845: .Dq yes .
1.65      reyk      846: .It Cm PermitLocalCommand
                    847: Allow local command execution via the
                    848: .Ic LocalCommand
                    849: option or using the
1.66      jmc       850: .Ic !\& Ns Ar command
1.65      reyk      851: escape sequence in
                    852: .Xr ssh 1 .
                    853: The argument must be
                    854: .Dq yes
                    855: or
                    856: .Dq no .
                    857: The default is
                    858: .Dq no .
1.127     markus    859: .It Cm PKCS11Provider
                    860: Specifies which PKCS#11 provider to use.
1.144     jmc       861: The argument to this keyword is the PKCS#11 shared library
1.127     markus    862: .Xr ssh 1
1.128     markus    863: should use to communicate with a PKCS#11 token providing the user's
1.127     markus    864: private RSA key.
1.67      jmc       865: .It Cm Port
                    866: Specifies the port number to connect on the remote host.
1.84      jmc       867: The default is 22.
1.1       stevesk   868: .It Cm PreferredAuthentications
                    869: Specifies the order in which the client should try protocol 2
1.11      jmc       870: authentication methods.
1.48      jmc       871: This allows a client to prefer one method (e.g.\&
1.1       stevesk   872: .Cm keyboard-interactive )
1.48      jmc       873: over another method (e.g.\&
1.131     jmc       874: .Cm password ) .
                    875: The default is:
                    876: .Bd -literal -offset indent
                    877: gssapi-with-mic,hostbased,publickey,
                    878: keyboard-interactive,password
                    879: .Ed
1.1       stevesk   880: .It Cm Protocol
                    881: Specifies the protocol versions
1.84      jmc       882: .Xr ssh 1
1.1       stevesk   883: should support in order of preference.
                    884: The possible values are
1.84      jmc       885: .Sq 1
1.1       stevesk   886: and
1.84      jmc       887: .Sq 2 .
1.1       stevesk   888: Multiple versions must be comma-separated.
1.120     markus    889: When this option is set to
1.121     jmc       890: .Dq 2,1
1.120     markus    891: .Nm ssh
                    892: will try version 2 and fall back to version 1
                    893: if version 2 is not available.
1.1       stevesk   894: The default is
1.121     jmc       895: .Sq 2 .
1.1       stevesk   896: .It Cm ProxyCommand
                    897: Specifies the command to use to connect to the server.
                    898: The command
                    899: string extends to the end of the line, and is executed with
1.105     jmc       900: the user's shell.
1.133     jmc       901: In the command string, any occurrence of
1.1       stevesk   902: .Ql %h
                    903: will be substituted by the host name to
1.132     djm       904: connect,
1.1       stevesk   905: .Ql %p
1.133     jmc       906: by the port, and
                    907: .Ql %r
1.132     djm       908: by the remote user name.
1.1       stevesk   909: The command can be basically anything,
                    910: and should read from its standard input and write to its standard output.
                    911: It should eventually connect an
                    912: .Xr sshd 8
                    913: server running on some machine, or execute
                    914: .Ic sshd -i
                    915: somewhere.
                    916: Host key management will be done using the
                    917: HostName of the host being connected (defaulting to the name typed by
                    918: the user).
1.7       jmc       919: Setting the command to
                    920: .Dq none
1.6       markus    921: disables this option entirely.
1.1       stevesk   922: Note that
                    923: .Cm CheckHostIP
                    924: is not available for connects with a proxy command.
1.52      djm       925: .Pp
                    926: This directive is useful in conjunction with
                    927: .Xr nc 1
                    928: and its proxy support.
1.53      jmc       929: For example, the following directive would connect via an HTTP proxy at
1.52      djm       930: 192.0.2.0:
                    931: .Bd -literal -offset 3n
                    932: ProxyCommand /usr/bin/nc -X connect -x 192.0.2.0:8080 %h %p
                    933: .Ed
1.1       stevesk   934: .It Cm PubkeyAuthentication
                    935: Specifies whether to try public key authentication.
                    936: The argument to this keyword must be
                    937: .Dq yes
                    938: or
                    939: .Dq no .
                    940: The default is
                    941: .Dq yes .
                    942: This option applies to protocol version 2 only.
1.75      dtucker   943: .It Cm RekeyLimit
                    944: Specifies the maximum amount of data that may be transmitted before the
1.162     dtucker   945: session key is renegotiated, optionally followed a maximum amount of
                    946: time that may pass before the session key is renegotiated.
                    947: The first argument is specified in bytes and may have a suffix of
1.76      jmc       948: .Sq K ,
                    949: .Sq M ,
1.75      dtucker   950: or
1.76      jmc       951: .Sq G
1.75      dtucker   952: to indicate Kilobytes, Megabytes, or Gigabytes, respectively.
                    953: The default is between
1.84      jmc       954: .Sq 1G
1.75      dtucker   955: and
1.84      jmc       956: .Sq 4G ,
1.75      dtucker   957: depending on the cipher.
1.162     dtucker   958: The optional second value is specified in seconds and may use any of the
                    959: units documented in the
                    960: .Sx TIME FORMATS
                    961: section of
                    962: .Xr sshd_config 5 .
                    963: The default value for
                    964: .Cm RekeyLimit
                    965: is
                    966: .Dq default none ,
                    967: which means that rekeying is performed after the cipher's default amount
                    968: of data has been sent or received and no time based rekeying is done.
1.76      jmc       969: This option applies to protocol version 2 only.
1.1       stevesk   970: .It Cm RemoteForward
1.74      jmc       971: Specifies that a TCP port on the remote machine be forwarded over
1.1       stevesk   972: the secure channel to the specified host and port from the local machine.
1.49      jmc       973: The first argument must be
1.43      djm       974: .Sm off
1.49      jmc       975: .Oo Ar bind_address : Oc Ar port
1.43      djm       976: .Sm on
1.49      jmc       977: and the second argument must be
                    978: .Ar host : Ns Ar hostport .
1.138     djm       979: IPv6 addresses can be specified by enclosing addresses in square brackets.
1.1       stevesk   980: Multiple forwardings may be specified, and additional
                    981: forwardings can be given on the command line.
1.113     stevesk   982: Privileged ports can be forwarded only when
                    983: logging in as root on the remote machine.
1.118     jmc       984: .Pp
1.117     djm       985: If the
                    986: .Ar port
                    987: argument is
                    988: .Ql 0 ,
                    989: the listen port will be dynamically allocated on the server and reported
                    990: to the client at run time.
1.43      djm       991: .Pp
                    992: If the
                    993: .Ar bind_address
                    994: is not specified, the default is to only bind to loopback addresses.
                    995: If the
                    996: .Ar bind_address
                    997: is
                    998: .Ql *
                    999: or an empty string, then the forwarding is requested to listen on all
                   1000: interfaces.
                   1001: Specifying a remote
                   1002: .Ar bind_address
1.46      jmc      1003: will only succeed if the server's
                   1004: .Cm GatewayPorts
1.43      djm      1005: option is enabled (see
1.46      jmc      1006: .Xr sshd_config 5 ) .
1.149     djm      1007: .It Cm RequestTTY
                   1008: Specifies whether to request a pseudo-tty for the session.
                   1009: The argument may be one of:
                   1010: .Dq no
                   1011: (never request a TTY),
                   1012: .Dq yes
                   1013: (always request a TTY when standard input is a TTY),
                   1014: .Dq force
                   1015: (always request a TTY) or
                   1016: .Dq auto
                   1017: (request a TTY when opening a login session).
                   1018: This option mirrors the
                   1019: .Fl t
                   1020: and
                   1021: .Fl T
                   1022: flags for
                   1023: .Xr ssh 1 .
1.1       stevesk  1024: .It Cm RhostsRSAAuthentication
                   1025: Specifies whether to try rhosts based authentication with RSA host
                   1026: authentication.
                   1027: The argument must be
                   1028: .Dq yes
                   1029: or
                   1030: .Dq no .
                   1031: The default is
                   1032: .Dq no .
                   1033: This option applies to protocol version 1 only and requires
1.84      jmc      1034: .Xr ssh 1
1.1       stevesk  1035: to be setuid root.
                   1036: .It Cm RSAAuthentication
                   1037: Specifies whether to try RSA authentication.
                   1038: The argument to this keyword must be
                   1039: .Dq yes
                   1040: or
                   1041: .Dq no .
                   1042: RSA authentication will only be
                   1043: attempted if the identity file exists, or an authentication agent is
                   1044: running.
                   1045: The default is
                   1046: .Dq yes .
                   1047: Note that this option applies to protocol version 1 only.
1.32      djm      1048: .It Cm SendEnv
                   1049: Specifies what variables from the local
                   1050: .Xr environ 7
                   1051: should be sent to the server.
1.84      jmc      1052: Note that environment passing is only supported for protocol 2.
                   1053: The server must also support it, and the server must be configured to
1.33      djm      1054: accept these environment variables.
1.32      djm      1055: Refer to
                   1056: .Cm AcceptEnv
                   1057: in
                   1058: .Xr sshd_config 5
                   1059: for how to configure the server.
1.80      jmc      1060: Variables are specified by name, which may contain wildcard characters.
1.33      djm      1061: Multiple environment variables may be separated by whitespace or spread
1.32      djm      1062: across multiple
                   1063: .Cm SendEnv
                   1064: directives.
                   1065: The default is not to send any environment variables.
1.81      jmc      1066: .Pp
                   1067: See
                   1068: .Sx PATTERNS
                   1069: for more information on patterns.
1.28      markus   1070: .It Cm ServerAliveCountMax
1.73      jmc      1071: Sets the number of server alive messages (see below) which may be
1.28      markus   1072: sent without
1.84      jmc      1073: .Xr ssh 1
1.28      markus   1074: receiving any messages back from the server.
                   1075: If this threshold is reached while server alive messages are being sent,
1.84      jmc      1076: ssh will disconnect from the server, terminating the session.
1.28      markus   1077: It is important to note that the use of server alive messages is very
                   1078: different from
                   1079: .Cm TCPKeepAlive
                   1080: (below).
                   1081: The server alive messages are sent through the encrypted channel
                   1082: and therefore will not be spoofable.
                   1083: The TCP keepalive option enabled by
                   1084: .Cm TCPKeepAlive
                   1085: is spoofable.
                   1086: The server alive mechanism is valuable when the client or
                   1087: server depend on knowing when a connection has become inactive.
                   1088: .Pp
                   1089: The default value is 3.
                   1090: If, for example,
                   1091: .Cm ServerAliveInterval
1.84      jmc      1092: (see below) is set to 15 and
1.28      markus   1093: .Cm ServerAliveCountMax
1.84      jmc      1094: is left at the default, if the server becomes unresponsive,
                   1095: ssh will disconnect after approximately 45 seconds.
1.89      markus   1096: This option applies to protocol version 2 only.
1.67      jmc      1097: .It Cm ServerAliveInterval
                   1098: Sets a timeout interval in seconds after which if no data has been received
                   1099: from the server,
1.84      jmc      1100: .Xr ssh 1
1.67      jmc      1101: will send a message through the encrypted
                   1102: channel to request a response from the server.
                   1103: The default
                   1104: is 0, indicating that these messages will not be sent to the server.
                   1105: This option applies to protocol version 2 only.
1.1       stevesk  1106: .It Cm StrictHostKeyChecking
                   1107: If this flag is set to
                   1108: .Dq yes ,
1.84      jmc      1109: .Xr ssh 1
1.1       stevesk  1110: will never automatically add host keys to the
1.50      djm      1111: .Pa ~/.ssh/known_hosts
1.1       stevesk  1112: file, and refuses to connect to hosts whose host key has changed.
                   1113: This provides maximum protection against trojan horse attacks,
1.84      jmc      1114: though it can be annoying when the
1.1       stevesk  1115: .Pa /etc/ssh/ssh_known_hosts
1.84      jmc      1116: file is poorly maintained or when connections to new hosts are
1.1       stevesk  1117: frequently made.
                   1118: This option forces the user to manually
                   1119: add all new hosts.
                   1120: If this flag is set to
                   1121: .Dq no ,
1.84      jmc      1122: ssh will automatically add new host keys to the
1.1       stevesk  1123: user known hosts files.
                   1124: If this flag is set to
                   1125: .Dq ask ,
                   1126: new host keys
                   1127: will be added to the user known host files only after the user
                   1128: has confirmed that is what they really want to do, and
1.84      jmc      1129: ssh will refuse to connect to hosts whose host key has changed.
1.1       stevesk  1130: The host keys of
                   1131: known hosts will be verified automatically in all cases.
                   1132: The argument must be
                   1133: .Dq yes ,
1.84      jmc      1134: .Dq no ,
1.1       stevesk  1135: or
                   1136: .Dq ask .
                   1137: The default is
                   1138: .Dq ask .
1.26      markus   1139: .It Cm TCPKeepAlive
                   1140: Specifies whether the system should send TCP keepalive messages to the
                   1141: other side.
                   1142: If they are sent, death of the connection or crash of one
                   1143: of the machines will be properly noticed.
                   1144: However, this means that
                   1145: connections will die if the route is down temporarily, and some people
                   1146: find it annoying.
                   1147: .Pp
                   1148: The default is
                   1149: .Dq yes
                   1150: (to send TCP keepalive messages), and the client will notice
                   1151: if the network goes down or the remote host dies.
                   1152: This is important in scripts, and many users want it too.
                   1153: .Pp
                   1154: To disable TCP keepalive messages, the value should be set to
                   1155: .Dq no .
1.65      reyk     1156: .It Cm Tunnel
1.95      stevesk  1157: Request
1.65      reyk     1158: .Xr tun 4
1.69      jmc      1159: device forwarding between the client and the server.
1.65      reyk     1160: The argument must be
1.68      reyk     1161: .Dq yes ,
1.95      stevesk  1162: .Dq point-to-point
                   1163: (layer 3),
                   1164: .Dq ethernet
                   1165: (layer 2),
1.65      reyk     1166: or
                   1167: .Dq no .
1.95      stevesk  1168: Specifying
                   1169: .Dq yes
                   1170: requests the default tunnel mode, which is
                   1171: .Dq point-to-point .
1.65      reyk     1172: The default is
                   1173: .Dq no .
                   1174: .It Cm TunnelDevice
1.95      stevesk  1175: Specifies the
1.65      reyk     1176: .Xr tun 4
1.95      stevesk  1177: devices to open on the client
                   1178: .Pq Ar local_tun
                   1179: and the server
                   1180: .Pq Ar remote_tun .
                   1181: .Pp
                   1182: The argument must be
                   1183: .Sm off
                   1184: .Ar local_tun Op : Ar remote_tun .
                   1185: .Sm on
                   1186: The devices may be specified by numerical ID or the keyword
                   1187: .Dq any ,
                   1188: which uses the next available tunnel device.
                   1189: If
                   1190: .Ar remote_tun
                   1191: is not specified, it defaults to
                   1192: .Dq any .
                   1193: The default is
                   1194: .Dq any:any .
1.72      jmc      1195: .It Cm UsePrivilegedPort
                   1196: Specifies whether to use a privileged port for outgoing connections.
                   1197: The argument must be
                   1198: .Dq yes
                   1199: or
                   1200: .Dq no .
                   1201: The default is
                   1202: .Dq no .
                   1203: If set to
1.84      jmc      1204: .Dq yes ,
                   1205: .Xr ssh 1
1.72      jmc      1206: must be setuid root.
                   1207: Note that this option must be set to
                   1208: .Dq yes
                   1209: for
                   1210: .Cm RhostsRSAAuthentication
                   1211: with older servers.
1.1       stevesk  1212: .It Cm User
                   1213: Specifies the user to log in as.
                   1214: This can be useful when a different user name is used on different machines.
                   1215: This saves the trouble of
                   1216: having to remember to give the user name on the command line.
                   1217: .It Cm UserKnownHostsFile
1.151     djm      1218: Specifies one or more files to use for the user
                   1219: host key database, separated by whitespace.
                   1220: The default is
                   1221: .Pa ~/.ssh/known_hosts ,
                   1222: .Pa ~/.ssh/known_hosts2 .
1.8       jakob    1223: .It Cm VerifyHostKeyDNS
                   1224: Specifies whether to verify the remote key using DNS and SSHFP resource
                   1225: records.
1.24      jakob    1226: If this option is set to
                   1227: .Dq yes ,
1.25      jmc      1228: the client will implicitly trust keys that match a secure fingerprint
1.24      jakob    1229: from DNS.
                   1230: Insecure fingerprints will be handled as if this option was set to
                   1231: .Dq ask .
                   1232: If this option is set to
                   1233: .Dq ask ,
                   1234: information on fingerprint match will be displayed, but the user will still
                   1235: need to confirm new host keys according to the
                   1236: .Cm StrictHostKeyChecking
                   1237: option.
                   1238: The argument must be
                   1239: .Dq yes ,
1.84      jmc      1240: .Dq no ,
1.25      jmc      1241: or
                   1242: .Dq ask .
1.8       jakob    1243: The default is
                   1244: .Dq no .
1.12      jakob    1245: Note that this option applies to protocol version 2 only.
1.84      jmc      1246: .Pp
                   1247: See also
                   1248: .Sx VERIFYING HOST KEYS
                   1249: in
                   1250: .Xr ssh 1 .
1.111     grunk    1251: .It Cm VisualHostKey
                   1252: If this flag is set to
                   1253: .Dq yes ,
                   1254: an ASCII art representation of the remote host key fingerprint is
1.114     stevesk  1255: printed in addition to the hex fingerprint string at login and
                   1256: for unknown host keys.
1.111     grunk    1257: If this flag is set to
                   1258: .Dq no ,
1.114     stevesk  1259: no fingerprint strings are printed at login and
                   1260: only the hex fingerprint string will be printed for unknown host keys.
1.111     grunk    1261: The default is
                   1262: .Dq no .
1.1       stevesk  1263: .It Cm XAuthLocation
1.5       stevesk  1264: Specifies the full pathname of the
1.1       stevesk  1265: .Xr xauth 1
                   1266: program.
                   1267: The default is
                   1268: .Pa /usr/X11R6/bin/xauth .
                   1269: .El
1.86      jmc      1270: .Sh PATTERNS
                   1271: A
                   1272: .Em pattern
                   1273: consists of zero or more non-whitespace characters,
                   1274: .Sq *
                   1275: (a wildcard that matches zero or more characters),
                   1276: or
                   1277: .Sq ?\&
                   1278: (a wildcard that matches exactly one character).
                   1279: For example, to specify a set of declarations for any host in the
                   1280: .Dq .co.uk
                   1281: set of domains,
                   1282: the following pattern could be used:
                   1283: .Pp
                   1284: .Dl Host *.co.uk
                   1285: .Pp
                   1286: The following pattern
                   1287: would match any host in the 192.168.0.[0-9] network range:
                   1288: .Pp
                   1289: .Dl Host 192.168.0.?
                   1290: .Pp
                   1291: A
                   1292: .Em pattern-list
                   1293: is a comma-separated list of patterns.
                   1294: Patterns within pattern-lists may be negated
                   1295: by preceding them with an exclamation mark
                   1296: .Pq Sq !\& .
                   1297: For example,
                   1298: to allow a key to be used from anywhere within an organisation
                   1299: except from the
                   1300: .Dq dialup
                   1301: pool,
                   1302: the following entry (in authorized_keys) could be used:
                   1303: .Pp
                   1304: .Dl from=\&"!*.dialup.example.com,*.example.com\&"
1.1       stevesk  1305: .Sh FILES
                   1306: .Bl -tag -width Ds
1.50      djm      1307: .It Pa ~/.ssh/config
1.1       stevesk  1308: This is the per-user configuration file.
                   1309: The format of this file is described above.
1.84      jmc      1310: This file is used by the SSH client.
1.30      djm      1311: Because of the potential for abuse, this file must have strict permissions:
                   1312: read/write for the user, and not accessible by others.
1.1       stevesk  1313: .It Pa /etc/ssh/ssh_config
                   1314: Systemwide configuration file.
                   1315: This file provides defaults for those
                   1316: values that are not specified in the user's configuration file, and
                   1317: for those users who do not have a configuration file.
                   1318: This file must be world-readable.
                   1319: .El
1.13      jmc      1320: .Sh SEE ALSO
                   1321: .Xr ssh 1
1.1       stevesk  1322: .Sh AUTHORS
                   1323: OpenSSH is a derivative of the original and free
                   1324: ssh 1.2.12 release by Tatu Ylonen.
                   1325: Aaron Campbell, Bob Beck, Markus Friedl, Niels Provos,
                   1326: Theo de Raadt and Dug Song
                   1327: removed many bugs, re-added newer features and
                   1328: created OpenSSH.
                   1329: Markus Friedl contributed the support for SSH
                   1330: protocol versions 1.5 and 2.0.