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

📄 ssh.1

📁 OpenSSH 是 SSH (Secure SHell) 协议的免费开源实现。它用安全、加密的网络连接工具代替了 telnet、ftp、 rlogin、rsh 和 rcp 工具。OpenSSH 支持
💻 1
📖 第 1 页 / 共 3 页
字号:
Forces.Nmto try protocol version 1 only..It Fl 2Forces.Nmto try protocol version 2 only..It Fl 4Forces.Nmto use IPv4 addresses only..It Fl 6Forces.Nmto use IPv6 addresses only..It Fl AEnables forwarding of the authentication agent connection.This can also be specified on a per-host basis in a configuration file..PpAgent forwarding should be enabled with caution.Users with the ability to bypass file permissions on the remote host(for the agent's Unix-domain socket)can access the local agent through the forwarded connection.An attacker cannot obtain key material from the agent,however they can perform operations on the keys that enable them toauthenticate using the identities loaded into the agent..It Fl aDisables forwarding of the authentication agent connection..It Fl b Ar bind_addressSpecify the interface to transmit from on machines with multipleinterfaces or aliased addresses..It Fl CRequests compression of all data (including stdin, stdout, stderr, anddata for forwarded X11 and TCP/IP connections).The compression algorithm is the same used by.Xr gzip 1 ,and the.Dq levelcan be controlled by the.Cm CompressionLeveloption for protocol version 1.Compression is desirable on modem lines and otherslow connections, but will only slow down things on fast networks.The default value can be set on a host-by-host basis in theconfiguration files; see the.Cm Compressionoption..It Fl c Ar cipher_specSelects the cipher specification for encrypting the session..PpProtocol version 1 allows specification of a single cipher.The suported values are.Dq 3des ,.Dq blowfishand.Dq des ..Ar 3des(triple-des) is an encrypt-decrypt-encrypt triple with three different keys.It is believed to be secure..Ar blowfishis a fast block cipher; it appears very secure and is much faster than.Ar 3des ..Ar desis only supported in the.Nmclient for interoperability with legacy protocol 1 implementationsthat do not support the.Ar 3descipher.Its use is strongly discouraged due to cryptographic weaknesses.The default is.Dq 3des ..PpFor protocol version 2.Ar cipher_specis a comma-separated list of cipherslisted in order of preference.The supported ciphers are.Dq 3des-cbc ,.Dq aes128-cbc ,.Dq aes192-cbc ,.Dq aes256-cbc ,.Dq aes128-ctr ,.Dq aes192-ctr ,.Dq aes256-ctr ,.Dq arcfour ,.Dq blowfish-cbc ,and.Dq cast128-cbc .The default is.Bd -literal  ``aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour,    aes192-cbc,aes256-cbc''.Ed.It Fl D Ar portSpecifies a local.Dq dynamicapplication-level port forwarding.This works by allocating a socket to listen to.Ar porton the local side, and whenever a connection is made to this port, theconnection is forwarded over the secure channel, and the applicationprotocol is then used to determine where to connect to from theremote machine.Currently the SOCKS4 and SOCKS5 protocols are supported, and.Nmwill act as a SOCKS server.Only root can forward privileged ports.Dynamic port forwardings can also be specified in the configuration file..It Fl e Ar ch | ^ch | noneSets the escape character for sessions with a pty (default:.Ql ~ ) .The escape character is only recognized at the beginning of a line.The escape character followed by a dot.Pq Ql \&.closes the connection;followed by control-Z suspends the connection;and followed by itself sends the escape character once.Setting the character to.Dq nonedisables any escapes and makes the session fully transparent..It Fl F Ar configfileSpecifies an alternative per-user configuration file.If a configuration file is given on the command line,the system-wide configuration file.Pq Pa /etc/ssh/ssh_configwill be ignored.The default for the per-user configuration file is.Pa $HOME/.ssh/config ..It Fl fRequests.Nmto go to background just before command execution.This is useful if.Nmis going to ask for passwords or passphrases, but the userwants it in the background.This implies.Fl n .The recommended way to start X11 programs at a remote site is withsomething like.Ic ssh -f host xterm ..It Fl gAllows remote hosts to connect to local forwarded ports..It Fl I Ar smartcard_deviceSpecifies which smartcard device to use.The argument is the device.Nmshould use to communicate with a smartcard used for storing the user'sprivate RSA key..It Fl i Ar identity_fileSelects a file from which the identity (private key) forRSA or DSA authentication is read.The default is.Pa $HOME/.ssh/identityfor protocol version 1, and.Pa $HOME/.ssh/id_rsaand.Pa $HOME/.ssh/id_dsafor protocol version 2.Identity files may also be specified ona per-host basis in the configuration file.It is possible to have multiple.Fl ioptions (and multiple identities specified inconfiguration files)..It Fl kDisables forwarding (delegation) of GSSAPI credentials to the server..It Fl L Xo.Sm off.Oo Ar bind_address : Oc.Ar port : host : hostport.Sm on.XcSpecifies that the given port on the local (client) host is to beforwarded to the given host and port on the remote side.This works by allocating a socket to listen to.Ar porton the local side, optionally bound to the specified.Ar bind_address .Whenever a connection is made to this port, theconnection is forwarded over the secure channel, and a connection ismade to.Ar hostport.Ar hostportfrom the remote machine.Port forwardings can also be specified in the configuration file.IPv6 addresses can be specified with an alternative syntax:.Sm off.Xo.Op Ar bind_address No /.Ar port No / Ar host No /.Ar hostport.Xc.Sm onor by enclosing the address in square brackets.Only the superuser can forward privileged ports.By default, the local port is bound in accordance with the.Cm GatewayPortssetting.However, an explicit.Ar bind_addressmay be used to bind the connection to a specific address.The.Ar bind_addressof.Dq localhostindicates that the listening port be bound for local use only, while anempty address or.Sq *indicates that the port should be available from all interfaces..It Fl l Ar login_nameSpecifies the user to log in as on the remote machine.This also may be specified on a per-host basis in the configuration file..It Fl MPlaces the.Nmclient into.Dq mastermode for connection sharing.Refer to the description of.Cm ControlMasterin.Xr ssh_config 5for details..It Fl m Ar mac_specAdditionally, for protocol version 2 a comma-separated list of MAC(message authentication code) algorithms canbe specified in order of preference.See the.Cm MACskeyword for more information..It Fl NDo not execute a remote command.This is useful for just forwarding ports(protocol version 2 only)..It Fl nRedirects stdin from.Pa /dev/null(actually, prevents reading from stdin).This must be used when.Nmis run in the background.A common trick is to use this to run X11 programs on a remote machine.For example,.Ic ssh -n shadows.cs.hut.fi emacs &will start an emacs on shadows.cs.hut.fi, and the X11connection will be automatically forwarded over an encrypted channel.The.Nmprogram will be put in the background.(This does not work if.Nmneeds to ask for a password or passphrase; see also the.Fl foption.).It Fl O Ar ctl_cmdControl an active connection multiplexing master process.When the.Fl Ooption is specified, the.Ar ctl_cmdargument is interpreted and passed to the master process.Valid commands are:.Dq check(check that the master process is running) and.Dq exit(request the master to exit)..It Fl o Ar optionCan be used to give options in the format used in the configuration file.This is useful for specifying options for which there is no separatecommand-line flag.For full details of the options listed below, and their possible values, see.Xr ssh_config 5 ..Pp.Bl -tag -width Ds -offset indent -compact.It AddressFamily.It BatchMode.It BindAddress.It ChallengeResponseAuthentication.It CheckHostIP.It Cipher.It Ciphers.It ClearAllForwardings.It Compression.It CompressionLevel.It ConnectionAttempts.It ConnectTimeout.It ControlMaster.It ControlPath.It DynamicForward.It EscapeChar.It ForwardAgent.It ForwardX11.It ForwardX11Trusted.It GatewayPorts.It GlobalKnownHostsFile.It GSSAPIAuthentication.It GSSAPIDelegateCredentials.It HashKnownHosts.It Host.It HostbasedAuthentication.It HostKeyAlgorithms.It HostKeyAlias.It HostName.It IdentityFile.It IdentitiesOnly.It KbdInteractiveDevices.It LocalForward.It LogLevel.It MACs.It NoHostAuthenticationForLocalhost.It NumberOfPasswordPrompts.It PasswordAuthentication.It Port.It PreferredAuthentications.It Protocol.It ProxyCommand.It PubkeyAuthentication.It RemoteForward.It RhostsRSAAuthentication.It RSAAuthentication.It SendEnv.It ServerAliveInterval.It ServerAliveCountMax.It SmartcardDevice.It StrictHostKeyChecking.It TCPKeepAlive.It UsePrivilegedPort.It User.It UserKnownHostsFile.It VerifyHostKeyDNS.It XAuthLocation.El.It Fl p Ar portPort to connect to on the remote host.This can be specified on aper-host basis in the configuration file..It Fl qQuiet mode.Causes all warning and diagnostic messages to be suppressed..It Fl R Xo.Sm off.Oo Ar bind_address : Oc.Ar port : host : hostport.Sm on.XcSpecifies that the given port on the remote (server) host is to beforwarded to the given host and port on the local side.This works by allocating a socket to listen to.Ar porton the remote side, and whenever a connection is made to this port, theconnection is forwarded over the secure channel, and a connection ismade to.Ar hostport.Ar hostportfrom the local machine..PpPort forwardings can also be specified in the configuration file.Privileged ports can be forwarded only whenlogging in as root on the remote machine.IPv6 addresses can be specified by enclosing the address in square braces orusing an alternative syntax:.Sm off.Xo.Op Ar bind_address No /.Ar host No / Ar port No /.Ar hostport.Xc ..Sm on.PpBy default, the listening socket on the server will be bound to the loopbackinterface only.This may be overriden by specifying a.Ar bind_address .An empty.Ar bind_address ,or the address.Ql * ,indicates that the remote socket should listen on all interfaces.Specifying a remote.Ar bind_addresswill only succeed if the server's.Cm GatewayPortsoption is enabled (see.Xr sshd_config 5 ) ..It Fl S Ar ctl_pathSpecifies the location of a control socket for connection sharing.Refer to the description of.Cm ControlPathand.Cm ControlMasterin.Xr ssh_config 5

⌨️ 快捷键说明

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