⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ssh_config.5

📁 OpenSSL Source code for SFTP, SSH, and many others
💻 5
📖 第 1 页 / 共 2 页
字号:
.\"  -*- nroff -*-.\".\" Author: Tatu Ylonen <ylo@cs.hut.fi>.\" Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland.\"                    All rights reserved.\".\" As far as I am concerned, the code I have written for this software.\" can be used freely for any purpose.  Any derived versions of this.\" software must be clearly marked as such, and if the derived work is.\" incompatible with the protocol description in the RFC file, it must be.\" called by a name other than "ssh" or "Secure Shell"..\".\" Copyright (c) 1999,2000 Markus Friedl.  All rights reserved..\" Copyright (c) 1999 Aaron Campbell.  All rights reserved..\" Copyright (c) 1999 Theo de Raadt.  All rights reserved..\".\" Redistribution and use in source and binary forms, with or without.\" modification, are permitted provided that the following conditions.\" are met:.\" 1. Redistributions of source code must retain the above copyright.\"    notice, this list of conditions and the following disclaimer..\" 2. Redistributions in binary form must reproduce the above copyright.\"    notice, this list of conditions and the following disclaimer in the.\"    documentation and/or other materials provided with the distribution..\".\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED..\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE..\".\" $OpenBSD: ssh_config.5,v 1.1 2002/06/20 19:56:07 stevesk Exp $.Dd September 25, 1999.Dt SSH_CONFIG 5.Os.Sh NAME.Nm ssh_config.Nd OpenSSH SSH client configuration files.Sh SYNOPSIS.Bl -tag -width Ds -compact.It Pa $HOME/.ssh/config.It Pa /etc/ssh/ssh_config.El.Sh DESCRIPTION.Nm sshobtains configuration data from the following sources inthe following order:command line options, user's configuration file.Pq Pa $HOME/.ssh/config ,and system-wide configuration file.Pq Pa /etc/ssh/ssh_config ..PpFor each parameter, the first obtained valuewill be used.The configuration files contain sections bracketed by.Dq Hostspecifications, and that section is only applied for hosts thatmatch one of the patterns given in the specification.The matched host name is the one given on the command line..PpSince the first obtained value for each parameter is used, morehost-specific declarations should be given near the beginning of thefile, and general defaults at the end..PpThe configuration file has the following format:.PpEmpty lines and lines starting with.Ql #are comments..PpOtherwise a line is of the format.Dq keyword arguments .Configuration options may be separated by whitespace oroptional whitespace and exactly one.Ql = ;the latter format is useful to avoid the need to quote whitespacewhen specifying configuration options using the.Nm ssh ,.Nm scpand.Nm sftp.Fl ooption..PpThe possiblekeywords and their meanings are as follows (note thatkeywords are case-insensitive and arguments are case-sensitive):.Bl -tag -width Ds.It Cm HostRestricts the following declarations (up to the next.Cm Hostkeyword) to be only for those hosts that match one of the patternsgiven after the keyword..Ql \&*and.Ql ?can be used as wildcards in thepatterns.A single.Ql \&*as a pattern can be used to provide globaldefaults for all hosts.The host is the.Ar hostnameargument given on the command line (i.e., the name is not converted toa canonicalized host name before matching)..It Cm AFSTokenPassingSpecifies whether to pass AFS tokens to remote host.The argument to this keyword must be.Dq yesor.Dq no .This option applies to protocol version 1 only..It Cm BatchModeIf set to.Dq yes ,passphrase/password querying will be disabled.This option is useful in scripts and other batch jobs where no useris present to supply the password.The argument must be.Dq yesor.Dq no .The default is.Dq no ..It Cm BindAddressSpecify the interface to transmit from on machines with multipleinterfaces or aliased addresses.Note that this option does not work if.Cm UsePrivilegedPortis set to.Dq yes ..It Cm ChallengeResponseAuthenticationSpecifies whether to use challenge response authentication.The argument to this keyword must be.Dq yesor.Dq no .The default is.Dq yes ..It Cm CheckHostIPIf this flag is set to.Dq yes ,ssh will additionally check the host IP address in the.Pa known_hostsfile.This allows ssh to detect if a host key changed due to DNS spoofing.If the option is set to.Dq no ,the check will not be executed.The default is.Dq yes ..It Cm CipherSpecifies the cipher to use for encrypting the sessionin protocol version 1.Currently,.Dq blowfish ,.Dq 3des ,and.Dq desare supported..Ar desis only supported in the.Nm sshclient for interoperability with legacy protocol 1 implementationsthat do not support the.Ar 3descipher.  Its use is strongly discouraged due to cryptographicweaknesses.The default is.Dq 3des ..It Cm CiphersSpecifies the ciphers allowed for protocol version 2in order of preference.Multiple ciphers must be comma-separated.The default is.Pp.Bd -literal  ``aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour,    aes192-cbc,aes256-cbc''.Ed.It Cm ClearAllForwardingsSpecifies that all local, remote and dynamic port forwardingsspecified in the configuration files or on the command line becleared.  This option is primarily useful when used from the.Nm sshcommand line to clear port forwardings set inconfiguration files, and is automatically set by.Xr scp 1and.Xr sftp 1 .The argument must be.Dq yesor.Dq no .The default is.Dq no ..It Cm CompressionSpecifies whether to use compression.The argument must be.Dq yesor.Dq no .The default is.Dq no ..It Cm CompressionLevelSpecifies the compression level to use if compression is enabled.The argument must be an integer from 1 (fast) to 9 (slow, best).The default level is 6, which is good for most applications.The meaning of the values is the same as in.Xr gzip 1 .Note that this option applies to protocol version 1 only..It Cm ConnectionAttemptsSpecifies the number of tries (one per second) to make before exiting.The argument must be an integer.This may be useful in scripts if the connection sometimes fails.The default is 1..It Cm DynamicForwardSpecifies that a TCP/IP port on the local machine be forwardedover the secure channel, and the applicationprotocol is then used to determine where to connect to from theremote machine.  The argument must be a port number.Currently the SOCKS4 protocol is supported, and.Nm sshwill act as a SOCKS4 server.Multiple forwardings may be specified, andadditional forwardings can be given on the command line.  Onlythe superuser can forward privileged ports..It Cm EscapeCharSets the escape character (default:.Ql ~ ) .The escape character can alsobe set on the command line.The argument should be a single character,.Ql ^followed by a letter, or.Dq noneto disable the escapecharacter entirely (making the connection transparent for binarydata)..It Cm ForwardAgentSpecifies whether the connection to the authentication agent (if any)will be forwarded to the remote machine.The argument must be.Dq yesor.Dq no .The default is.Dq no ..It Cm ForwardX11Specifies whether X11 connections will be automatically redirectedover the secure channel and.Ev DISPLAYset.The argument must be.Dq yesor.Dq no .The default is.Dq no ..It Cm GatewayPortsSpecifies whether remote hosts are allowed to connect to localforwarded ports.By default,.Nm sshbinds local port forwardings to the loopback address.  Thisprevents other remote hosts from connecting to forwarded ports..Cm GatewayPortscan be used to specify that.Nm sshshould bind local port forwardings to the wildcard address,thus allowing remote hosts to connect to forwarded ports.The argument must be.Dq yesor.Dq no .The default is.Dq no ..It Cm GlobalKnownHostsFileSpecifies a file to use for the globalhost key database instead of.Pa /etc/ssh/ssh_known_hosts ..It Cm HostbasedAuthenticationSpecifies whether to try rhosts based authentication with public keyauthentication.The argument must be.Dq yesor.Dq no .The default is.Dq no .This option applies to protocol version 2 only andis similar to.Cm RhostsRSAAuthentication ..It Cm HostKeyAlgorithmsSpecifies the protocol version 2 host key algorithmsthat the client wants to use in order of preference.The default for this option is:.Dq ssh-rsa,ssh-dss ..It Cm HostKeyAliasSpecifies an alias that should be used instead of thereal host name when looking up or saving the host keyin the host key database files.This option is useful for tunneling ssh connectionsor for multiple servers running on a single host..It Cm HostName

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -