]> andersk Git - gssapi-openssh.git/blame - openssh/ssh_config.5
Initial revision
[gssapi-openssh.git] / openssh / ssh_config.5
CommitLineData
884dc78b 1.\" -*- nroff -*-
2.\"
3.\" Author: Tatu Ylonen <ylo@cs.hut.fi>
4.\" Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
5.\" All rights reserved
6.\"
7.\" As far as I am concerned, the code I have written for this software
8.\" can be used freely for any purpose. Any derived versions of this
9.\" software must be clearly marked as such, and if the derived work is
10.\" incompatible with the protocol description in the RFC file, it must be
11.\" called by a name other than "ssh" or "Secure Shell".
12.\"
13.\" Copyright (c) 1999,2000 Markus Friedl. All rights reserved.
14.\" Copyright (c) 1999 Aaron Campbell. All rights reserved.
15.\" Copyright (c) 1999 Theo de Raadt. All rights reserved.
16.\"
17.\" Redistribution and use in source and binary forms, with or without
18.\" modification, are permitted provided that the following conditions
19.\" are met:
20.\" 1. Redistributions of source code must retain the above copyright
21.\" notice, this list of conditions and the following disclaimer.
22.\" 2. Redistributions in binary form must reproduce the above copyright
23.\" notice, this list of conditions and the following disclaimer in the
24.\" documentation and/or other materials provided with the distribution.
25.\"
26.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
27.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
28.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
29.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
30.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
31.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
32.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
33.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
34.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
35.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
36.\"
7e82606e 37.\" $OpenBSD: ssh_config.5,v 1.38 2004/06/26 09:11:14 jmc Exp $
884dc78b 38.Dd September 25, 1999
39.Dt SSH_CONFIG 5
40.Os
41.Sh NAME
42.Nm ssh_config
43.Nd OpenSSH SSH client configuration files
44.Sh SYNOPSIS
45.Bl -tag -width Ds -compact
46.It Pa $HOME/.ssh/config
47.It Pa /etc/ssh/ssh_config
48.El
49.Sh DESCRIPTION
50.Nm ssh
51obtains configuration data from the following sources in
52the following order:
d03f4262 53.Bl -enum -offset indent -compact
54.It
55command-line options
56.It
44a053a3 57user's configuration file
d03f4262 58.Pq Pa $HOME/.ssh/config
59.It
d6862c36 60GSSAPI configuration file
d03f4262 61.Pq Pa $HOME/.ssh/config.gssapi
62.It
d6862c36 63Kerberos configuration file
d03f4262 64.Pq Pa $HOME/.ssh/config.krb
65.It
d03f4262 66system-wide configuration file
67.Pq Pa /etc/ssh/ssh_config
44a053a3 68.El
884dc78b 69.Pp
70For each parameter, the first obtained value
71will be used.
72The configuration files contain sections bracketed by
73.Dq Host
74specifications, and that section is only applied for hosts that
75match one of the patterns given in the specification.
76The matched host name is the one given on the command line.
77.Pp
78Since the first obtained value for each parameter is used, more
79host-specific declarations should be given near the beginning of the
80file, and general defaults at the end.
81.Pp
82The configuration file has the following format:
83.Pp
84Empty lines and lines starting with
85.Ql #
86are comments.
87.Pp
88Otherwise a line is of the format
89.Dq keyword arguments .
90Configuration options may be separated by whitespace or
91optional whitespace and exactly one
92.Ql = ;
93the latter format is useful to avoid the need to quote whitespace
94when specifying configuration options using the
95.Nm ssh ,
96.Nm scp
97and
98.Nm sftp
99.Fl o
100option.
101.Pp
102The possible
103keywords and their meanings are as follows (note that
104keywords are case-insensitive and arguments are case-sensitive):
105.Bl -tag -width Ds
106.It Cm Host
107Restricts the following declarations (up to the next
108.Cm Host
109keyword) to be only for those hosts that match one of the patterns
110given after the keyword.
111.Ql \&*
112and
7cac2b65 113.Ql \&?
884dc78b 114can be used as wildcards in the
115patterns.
116A single
117.Ql \&*
118as a pattern can be used to provide global
119defaults for all hosts.
120The host is the
121.Ar hostname
122argument given on the command line (i.e., the name is not converted to
123a canonicalized host name before matching).
7cac2b65 124.It Cm AddressFamily
125Specifies which address family to use when connecting.
126Valid arguments are
127.Dq any ,
128.Dq inet
129(Use IPv4 only) or
130.Dq inet6
131(Use IPv6 only.)
884dc78b 132.It Cm BatchMode
133If set to
134.Dq yes ,
135passphrase/password querying will be disabled.
136This option is useful in scripts and other batch jobs where no user
137is present to supply the password.
138The argument must be
139.Dq yes
140or
141.Dq no .
142The default is
143.Dq no .
144.It Cm BindAddress
145Specify the interface to transmit from on machines with multiple
146interfaces or aliased addresses.
147Note that this option does not work if
148.Cm UsePrivilegedPort
149is set to
150.Dq yes .
151.It Cm ChallengeResponseAuthentication
152Specifies whether to use challenge response authentication.
153The argument to this keyword must be
154.Dq yes
155or
156.Dq no .
157The default is
158.Dq yes .
159.It Cm CheckHostIP
160If this flag is set to
161.Dq yes ,
162ssh will additionally check the host IP address in the
163.Pa known_hosts
164file.
165This allows ssh to detect if a host key changed due to DNS spoofing.
166If the option is set to
167.Dq no ,
168the check will not be executed.
169The default is
170.Dq yes .
171.It Cm Cipher
172Specifies the cipher to use for encrypting the session
173in protocol version 1.
174Currently,
175.Dq blowfish ,
176.Dq 3des ,
177and
178.Dq des
179are supported.
180.Ar des
181is only supported in the
182.Nm ssh
183client for interoperability with legacy protocol 1 implementations
184that do not support the
185.Ar 3des
bfe49944 186cipher.
187Its use is strongly discouraged due to cryptographic weaknesses.
884dc78b 188The default is
189.Dq 3des .
190.It Cm Ciphers
191Specifies the ciphers allowed for protocol version 2
192in order of preference.
193Multiple ciphers must be comma-separated.
7e82606e 194The supported ciphers are
195.Dq 3des-cbc ,
196.Dq aes128-cbc ,
197.Dq aes192-cbc ,
198.Dq aes256-cbc ,
199.Dq aes128-ctr ,
200.Dq aes192-ctr ,
201.Dq aes256-ctr ,
202.Dq arcfour ,
203.Dq blowfish-cbc ,
204and
205.Dq cast128-cbc .
884dc78b 206The default is
884dc78b 207.Bd -literal
208 ``aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour,
209 aes192-cbc,aes256-cbc''
210.Ed
211.It Cm ClearAllForwardings
212Specifies that all local, remote and dynamic port forwardings
213specified in the configuration files or on the command line be
bfe49944 214cleared.
215This option is primarily useful when used from the
884dc78b 216.Nm ssh
217command line to clear port forwardings set in
218configuration files, and is automatically set by
219.Xr scp 1
220and
221.Xr sftp 1 .
222The argument must be
223.Dq yes
224or
225.Dq no .
226The default is
227.Dq no .
228.It Cm Compression
229Specifies whether to use compression.
230The argument must be
231.Dq yes
232or
233.Dq no .
234The default is
235.Dq no .
236.It Cm CompressionLevel
237Specifies the compression level to use if compression is enabled.
238The argument must be an integer from 1 (fast) to 9 (slow, best).
239The default level is 6, which is good for most applications.
240The meaning of the values is the same as in
241.Xr gzip 1 .
242Note that this option applies to protocol version 1 only.
243.It Cm ConnectionAttempts
244Specifies the number of tries (one per second) to make before exiting.
245The argument must be an integer.
246This may be useful in scripts if the connection sometimes fails.
247The default is 1.
7cac2b65 248.It Cm ConnectTimeout
249Specifies the timeout (in seconds) used when connecting to the ssh
250server, instead of using the default system TCP timeout.
251This value is used only when the target is down or really unreachable,
252not when it refuses the connection.
7e82606e 253.It Cm ControlMaster
254Enables the sharing of multiple sessions over a single network connection.
255When set to
256.Dq yes
257.Nm ssh
258will listen for connections on a control socket specified using the
259.Cm ControlPath
260argument.
261Additional sessions can connect to this socket using the same
262.Cm ControlPath
263with
264.Cm ControlMaster
265set to
266.Dq no
267(the default).
268These sessions will reuse the master instance's network connection rather
269than initiating new ones.
270Setting this to
271.Dq ask
272will cause
273.Nm ssh
274to listen for control connections, but require confirmation using the
275.Ev SSH_ASKPASS
276program before they are accepted (see
277.Xr ssh-add 1
278for details).
279.It Cm ControlPath
280Specify the path to the control socket used for connection sharing.
281See
282.Cm ControlMaster
283above.
884dc78b 284.It Cm DynamicForward
285Specifies that a TCP/IP port on the local machine be forwarded
286over the secure channel, and the application
287protocol is then used to determine where to connect to from the
bfe49944 288remote machine.
289The argument must be a port number.
7cac2b65 290Currently the SOCKS4 and SOCKS5 protocols are supported, and
884dc78b 291.Nm ssh
7cac2b65 292will act as a SOCKS server.
884dc78b 293Multiple forwardings may be specified, and
bfe49944 294additional forwardings can be given on the command line.
295Only the superuser can forward privileged ports.
7cac2b65 296.It Cm EnableSSHKeysign
297Setting this option to
298.Dq yes
299in the global client configuration file
300.Pa /etc/ssh/ssh_config
301enables the use of the helper program
302.Xr ssh-keysign 8
303during
304.Cm HostbasedAuthentication .
305The argument must be
306.Dq yes
307or
308.Dq no .
309The default is
310.Dq no .
540d72c3 311This option should be placed in the non-hostspecific section.
7cac2b65 312See
313.Xr ssh-keysign 8
314for more information.
884dc78b 315.It Cm EscapeChar
316Sets the escape character (default:
317.Ql ~ ) .
318The escape character can also
319be set on the command line.
320The argument should be a single character,
321.Ql ^
322followed by a letter, or
323.Dq none
324to disable the escape
325character entirely (making the connection transparent for binary
326data).
327.It Cm ForwardAgent
328Specifies whether the connection to the authentication agent (if any)
329will be forwarded to the remote machine.
330The argument must be
331.Dq yes
332or
333.Dq no .
334The default is
335.Dq no .
d03f4262 336.Pp
bfe49944 337Agent forwarding should be enabled with caution.
338Users with the ability to bypass file permissions on the remote host
339(for the agent's Unix-domain socket)
340can access the local agent through the forwarded connection.
341An attacker cannot obtain key material from the agent,
d03f4262 342however they can perform operations on the keys that enable them to
343authenticate using the identities loaded into the agent.
884dc78b 344.It Cm ForwardX11
345Specifies whether X11 connections will be automatically redirected
346over the secure channel and
347.Ev DISPLAY
348set.
349The argument must be
350.Dq yes
351or
352.Dq no .
353The default is
354.Dq no .
d03f4262 355.Pp
bfe49944 356X11 forwarding should be enabled with caution.
357Users with the ability to bypass file permissions on the remote host
540d72c3 358(for the user's X11 authorization database)
bfe49944 359can access the local X11 display through the forwarded connection.
540d72c3 360An attacker may then be able to perform activities such as keystroke monitoring
361if the
362.Cm ForwardX11Trusted
363option is also enabled.
364.It Cm ForwardX11Trusted
7e82606e 365If this option is set to
540d72c3 366.Dq yes
367then remote X11 clients will have full access to the original X11 display.
368If this option is set to
369.Dq no
370then remote X11 clients will be considered untrusted and prevented
371from stealing or tampering with data belonging to trusted X11
372clients.
373.Pp
374The default is
375.Dq no .
376.Pp
377See the X11 SECURITY extension specification for full details on
378the restrictions imposed on untrusted clients.
884dc78b 379.It Cm GatewayPorts
380Specifies whether remote hosts are allowed to connect to local
381forwarded ports.
382By default,
383.Nm ssh
bfe49944 384binds local port forwardings to the loopback address.
385This prevents other remote hosts from connecting to forwarded ports.
884dc78b 386.Cm GatewayPorts
387can be used to specify that
388.Nm ssh
389should bind local port forwardings to the wildcard address,
390thus allowing remote hosts to connect to forwarded ports.
391The argument must be
392.Dq yes
393or
394.Dq no .
395The default is
396.Dq no .
397.It Cm GlobalKnownHostsFile
398Specifies a file to use for the global
399host key database instead of
400.Pa /etc/ssh/ssh_known_hosts .
7cac2b65 401.It Cm GSSAPIAuthentication
540d72c3 402Specifies whether user authentication based on GSSAPI is allowed.
44a053a3 403The default is
404.Dq yes .
85740ad2 405Note that this option applies to protocol version 2 only.
7cac2b65 406.It Cm GSSAPIKeyExchange
7a056ed1 407Specifies whether key exchange based on GSSAPI may be used. When using
408GSSAPI key exchange the server need not have a host key.
409The default is
410.Dq yes .
85740ad2 411Note that this option applies to protocol version 2 only.
7cac2b65 412.It Cm GSSAPIDelegateCredentials
85740ad2 413Forward (delegate) credentials to the server.
44a053a3 414The default is
415.Dq yes .
85740ad2 416Note that this option applies to protocol version 2 only.
884dc78b 417.It Cm HostbasedAuthentication
418Specifies whether to try rhosts based authentication with public key
419authentication.
420The argument must be
421.Dq yes
422or
423.Dq no .
424The default is
425.Dq no .
426This option applies to protocol version 2 only and
427is similar to
428.Cm RhostsRSAAuthentication .
429.It Cm HostKeyAlgorithms
430Specifies the protocol version 2 host key algorithms
431that the client wants to use in order of preference.
432The default for this option is:
433.Dq ssh-rsa,ssh-dss .
434.It Cm HostKeyAlias
435Specifies an alias that should be used instead of the
436real host name when looking up or saving the host key
437in the host key database files.
438This option is useful for tunneling ssh connections
439or for multiple servers running on a single host.
440.It Cm HostName
441Specifies the real host name to log into.
442This can be used to specify nicknames or abbreviations for hosts.
443Default is the name given on the command line.
444Numeric IP addresses are also permitted (both on the command line and in
445.Cm HostName
446specifications).
447.It Cm IdentityFile
448Specifies a file from which the user's RSA or DSA authentication identity
7cac2b65 449is read.
450The default is
884dc78b 451.Pa $HOME/.ssh/identity
452for protocol version 1, and
453.Pa $HOME/.ssh/id_rsa
454and
455.Pa $HOME/.ssh/id_dsa
456for protocol version 2.
457Additionally, any identities represented by the authentication agent
458will be used for authentication.
459The file name may use the tilde
460syntax to refer to a user's home directory.
461It is possible to have
462multiple identity files specified in configuration files; all these
463identities will be tried in sequence.
12a403af 464.It Cm IdentitiesOnly
465Specifies that
466.Nm ssh
467should only use the authentication identity files configured in the
7e82606e 468.Nm
12a403af 469files,
470even if the
471.Nm ssh-agent
472offers more identities.
473The argument to this keyword must be
474.Dq yes
475or
476.Dq no .
477This option is intented for situations where
478.Nm ssh-agent
479offers many different identities.
480The default is
481.Dq no .
884dc78b 482.It Cm LocalForward
483Specifies that a TCP/IP port on the local machine be forwarded over
484the secure channel to the specified host and port from the remote machine.
485The first argument must be a port number, and the second must be
486.Ar host:port .
487IPv6 addresses can be specified with an alternative syntax:
488.Ar host/port .
489Multiple forwardings may be specified, and additional
490forwardings can be given on the command line.
491Only the superuser can forward privileged ports.
492.It Cm LogLevel
493Gives the verbosity level that is used when logging messages from
494.Nm ssh .
495The possible values are:
496QUIET, FATAL, ERROR, INFO, VERBOSE, DEBUG, DEBUG1, DEBUG2 and DEBUG3.
bfe49944 497The default is INFO.
498DEBUG and DEBUG1 are equivalent.
499DEBUG2 and DEBUG3 each specify higher levels of verbose output.
884dc78b 500.It Cm MACs
501Specifies the MAC (message authentication code) algorithms
502in order of preference.
503The MAC algorithm is used in protocol version 2
504for data integrity protection.
505Multiple algorithms must be comma-separated.
506The default is
507.Dq hmac-md5,hmac-sha1,hmac-ripemd160,hmac-sha1-96,hmac-md5-96 .
508.It Cm NoHostAuthenticationForLocalhost
509This option can be used if the home directory is shared across machines.
510In this case localhost will refer to a different machine on each of
511the machines and the user will get many warnings about changed host keys.
512However, this option disables host authentication for localhost.
513The argument to this keyword must be
514.Dq yes
515or
516.Dq no .
517The default is to check the host key for localhost.
518.It Cm NumberOfPasswordPrompts
519Specifies the number of password prompts before giving up.
520The argument to this keyword must be an integer.
521Default is 3.
522.It Cm PasswordAuthentication
523Specifies whether to use password authentication.
524The argument to this keyword must be
525.Dq yes
526or
527.Dq no .
528The default is
529.Dq yes .
530.It Cm Port
531Specifies the port number to connect on the remote host.
532Default is 22.
533.It Cm PreferredAuthentications
534Specifies the order in which the client should try protocol 2
7cac2b65 535authentication methods.
536This allows a client to prefer one method (e.g.
884dc78b 537.Cm keyboard-interactive )
538over another method (e.g.
539.Cm password )
540The default for this option is:
540d72c3 541.Dq hostbased,external-keyx,gssapi-with-mic,gssapi,publickey,keyboard-interactive,password .
884dc78b 542.It Cm Protocol
543Specifies the protocol versions
544.Nm ssh
545should support in order of preference.
546The possible values are
547.Dq 1
548and
549.Dq 2 .
550Multiple versions must be comma-separated.
551The default is
552.Dq 2,1 .
553This means that
554.Nm ssh
555tries version 2 and falls back to version 1
556if version 2 is not available.
557.It Cm ProxyCommand
558Specifies the command to use to connect to the server.
559The command
560string extends to the end of the line, and is executed with
561.Pa /bin/sh .
562In the command string,
563.Ql %h
564will be substituted by the host name to
565connect and
566.Ql %p
567by the port.
568The command can be basically anything,
569and should read from its standard input and write to its standard output.
570It should eventually connect an
571.Xr sshd 8
572server running on some machine, or execute
573.Ic sshd -i
574somewhere.
575Host key management will be done using the
576HostName of the host being connected (defaulting to the name typed by
577the user).
bfe49944 578Setting the command to
579.Dq none
580disables this option entirely.
884dc78b 581Note that
582.Cm CheckHostIP
583is not available for connects with a proxy command.
584.Pp
585.It Cm PubkeyAuthentication
586Specifies whether to try public key authentication.
587The argument to this keyword must be
588.Dq yes
589or
590.Dq no .
591The default is
592.Dq yes .
593This option applies to protocol version 2 only.
594.It Cm RemoteForward
595Specifies that a TCP/IP port on the remote machine be forwarded over
596the secure channel to the specified host and port from the local machine.
597The first argument must be a port number, and the second must be
598.Ar host:port .
599IPv6 addresses can be specified with an alternative syntax:
600.Ar host/port .
601Multiple forwardings may be specified, and additional
602forwardings can be given on the command line.
603Only the superuser can forward privileged ports.
884dc78b 604.It Cm RhostsRSAAuthentication
605Specifies whether to try rhosts based authentication with RSA host
606authentication.
607The argument must be
608.Dq yes
609or
610.Dq no .
611The default is
612.Dq no .
613This option applies to protocol version 1 only and requires
614.Nm ssh
615to be setuid root.
616.It Cm RSAAuthentication
617Specifies whether to try RSA authentication.
618The argument to this keyword must be
619.Dq yes
620or
621.Dq no .
622RSA authentication will only be
623attempted if the identity file exists, or an authentication agent is
624running.
625The default is
626.Dq yes .
627Note that this option applies to protocol version 1 only.
7e82606e 628.It Cm SendEnv
629Specifies what variables from the local
630.Xr environ 7
631should be sent to the server.
632Note that environment passing is only supported for protocol 2, the
633server must also support it, and the server must be configured to
634accept these environment variables.
635Refer to
636.Cm AcceptEnv
637in
638.Xr sshd_config 5
639for how to configure the server.
640Variables are specified by name, which may contain the wildcard characters
641.Ql \&*
642and
643.Ql \&? .
644Multiple environment variables may be separated by whitespace or spread
645across multiple
646.Cm SendEnv
647directives.
648The default is not to send any environment variables.
540d72c3 649.It Cm ServerAliveInterval
650Sets a timeout interval in seconds after which if no data has been received
651from the server,
652.Nm ssh
653will send a message through the encrypted
654channel to request a response from the server.
655The default
656is 0, indicating that these messages will not be sent to the server.
657This option applies to protocol version 2 only.
658.It Cm ServerAliveCountMax
659Sets the number of server alive messages (see above) which may be
660sent without
661.Nm ssh
662receiving any messages back from the server.
663If this threshold is reached while server alive messages are being sent,
664.Nm ssh
665will disconnect from the server, terminating the session.
666It is important to note that the use of server alive messages is very
667different from
668.Cm TCPKeepAlive
669(below).
670The server alive messages are sent through the encrypted channel
671and therefore will not be spoofable.
672The TCP keepalive option enabled by
673.Cm TCPKeepAlive
674is spoofable.
675The server alive mechanism is valuable when the client or
676server depend on knowing when a connection has become inactive.
677.Pp
678The default value is 3.
679If, for example,
680.Cm ServerAliveInterval
681(above) is set to 15, and
682.Cm ServerAliveCountMax
683is left at the default, if the server becomes unresponsive ssh
684will disconnect after approximately 45 seconds.
884dc78b 685.It Cm SmartcardDevice
7cac2b65 686Specifies which smartcard device to use.
687The argument to this keyword is the device
884dc78b 688.Nm ssh
689should use to communicate with a smartcard used for storing the user's
7cac2b65 690private RSA key.
691By default, no device is specified and smartcard support is not activated.
884dc78b 692.It Cm StrictHostKeyChecking
693If this flag is set to
694.Dq yes ,
695.Nm ssh
696will never automatically add host keys to the
697.Pa $HOME/.ssh/known_hosts
698file, and refuses to connect to hosts whose host key has changed.
699This provides maximum protection against trojan horse attacks,
700however, can be annoying when the
701.Pa /etc/ssh/ssh_known_hosts
702file is poorly maintained, or connections to new hosts are
703frequently made.
704This option forces the user to manually
705add all new hosts.
706If this flag is set to
707.Dq no ,
708.Nm ssh
709will automatically add new host keys to the
710user known hosts files.
711If this flag is set to
712.Dq ask ,
713new host keys
714will be added to the user known host files only after the user
715has confirmed that is what they really want to do, and
716.Nm ssh
717will refuse to connect to hosts whose host key has changed.
718The host keys of
719known hosts will be verified automatically in all cases.
720The argument must be
721.Dq yes ,
722.Dq no
723or
724.Dq ask .
725The default is
726.Dq ask .
540d72c3 727.It Cm TCPKeepAlive
728Specifies whether the system should send TCP keepalive messages to the
729other side.
730If they are sent, death of the connection or crash of one
731of the machines will be properly noticed.
732However, this means that
733connections will die if the route is down temporarily, and some people
734find it annoying.
735.Pp
736The default is
737.Dq yes
738(to send TCP keepalive messages), and the client will notice
739if the network goes down or the remote host dies.
740This is important in scripts, and many users want it too.
741.Pp
742To disable TCP keepalive messages, the value should be set to
743.Dq no .
884dc78b 744.It Cm UsePrivilegedPort
745Specifies whether to use a privileged port for outgoing connections.
746The argument must be
747.Dq yes
748or
749.Dq no .
750The default is
751.Dq no .
d03f4262 752If set to
753.Dq yes
754.Nm ssh
755must be setuid root.
884dc78b 756Note that this option must be set to
757.Dq yes
7cac2b65 758for
884dc78b 759.Cm RhostsRSAAuthentication
7cac2b65 760with older servers.
884dc78b 761.It Cm User
762Specifies the user to log in as.
763This can be useful when a different user name is used on different machines.
764This saves the trouble of
765having to remember to give the user name on the command line.
766.It Cm UserKnownHostsFile
767Specifies a file to use for the user
768host key database instead of
769.Pa $HOME/.ssh/known_hosts .
7cac2b65 770.It Cm VerifyHostKeyDNS
771Specifies whether to verify the remote key using DNS and SSHFP resource
772records.
540d72c3 773If this option is set to
774.Dq yes ,
775the client will implicitly trust keys that match a secure fingerprint
776from DNS.
777Insecure fingerprints will be handled as if this option was set to
778.Dq ask .
779If this option is set to
780.Dq ask ,
781information on fingerprint match will be displayed, but the user will still
782need to confirm new host keys according to the
783.Cm StrictHostKeyChecking
784option.
785The argument must be
786.Dq yes ,
787.Dq no
788or
789.Dq ask .
7cac2b65 790The default is
791.Dq no .
792Note that this option applies to protocol version 2 only.
884dc78b 793.It Cm XAuthLocation
d03f4262 794Specifies the full pathname of the
884dc78b 795.Xr xauth 1
796program.
797The default is
798.Pa /usr/X11R6/bin/xauth .
799.El
800.Sh FILES
801.Bl -tag -width Ds
802.It Pa $HOME/.ssh/config
803This is the per-user configuration file.
804The format of this file is described above.
805This file is used by the
806.Nm ssh
807client.
7e82606e 808Because of the potential for abuse, this file must have strict permissions:
809read/write for the user, and not accessible by others.
884dc78b 810.It Pa /etc/ssh/ssh_config
811Systemwide configuration file.
812This file provides defaults for those
813values that are not specified in the user's configuration file, and
814for those users who do not have a configuration file.
815This file must be world-readable.
816.El
7cac2b65 817.Sh SEE ALSO
818.Xr ssh 1
884dc78b 819.Sh AUTHORS
820OpenSSH is a derivative of the original and free
821ssh 1.2.12 release by Tatu Ylonen.
822Aaron Campbell, Bob Beck, Markus Friedl, Niels Provos,
823Theo de Raadt and Dug Song
824removed many bugs, re-added newer features and
825created OpenSSH.
826Markus Friedl contributed the support for SSH
827protocol versions 1.5 and 2.0.
This page took 0.165408 seconds and 5 git commands to generate.