Docs Home → MongoDB Compass
Proxy / SSH Tunnel Connection Tab“代理/SSH隧道连接”选项卡
The Proxy / SSH Tunnel tab allows you to connect to your deployment with a Proxy method or SSH tunnel.“Proxy/SSH Tunnel”选项卡允许您使用Proxy方法或SSH隧道连接到部署。
Procedure过程
1
Click Advanced Connection Options.单击“高级连接选项”。
2
Click the Proxy / SSH Tunnel tab.单击“代理/SSH隧道”选项卡。
You have the following connection options:您有以下连接选项:
Option选项 | Description描述 |
SSH with Password带密码的SSH | Connects to a deployment using a SSH Tunnel and has the option to secure the connection with a password. 使用SSH隧道连接到部署,并可以选择使用密码保护连接。For information on SSH connections and the fields for this connection option, see SSH Connection.有关SSH连接和此连接选项的字段的信息,请参阅SSH连接。 |
SSH with Identity File带有标识文件的SSH | Connects to a deployment using a SSH Tunnel and uses an Identity File to secure the connection. 使用SSH隧道连接到部署,并使用身份文件保护连接。For information on SSH connections and the fields for this connection option, see SSH Connection.有关SSH连接和此连接选项的字段的信息,请参阅SSH连接。 |
Socks5 | Connects to a deployment using a seperate proxy server. 使用单独的代理服务器连接到部署。For more information on the fields for this connection option, see Socks5.有关此连接选项的字段的更多信息,请参阅Socks5。 |
SSH ConnectionSSH连接
To connect to a deployment using SSH with Password or SSH with Identity File, use the following fields:要使用“带密码的SSH”或“带标识文件的SSH”连接到部署,请使用以下字段:
Field字段 | Description描述 |
SSH HostnameSSH主机名 | Bastion (jumpbox) hostname. This is the unique identifier (Fully Qualified Domain Name, or FQDN) for the computer to access.堡垒(jumpbox)主机名。这是计算机要访问的唯一标识符(完全限定域名或FQDN)。 |
SSH PortSSH端口 | Port used for the SSH connection. This defaults to 22, the standard port for SSH.用于SSH连接的端口。这默认为22,SSH的标准端口。 |
SSH UsernameSSH用户名 | This is the user for which the profile to log into on the remote system. 这是要在远程系统上为其登录配置文件的用户。This is the user for which you want to establish the SSH connection.这是要为其建立SSH连接的用户。 |
SSH PasswordSSH密码 | (Optional) Password used to secure the SSH connection. (可选)用于保护SSH连接的密码。This is required if you are not using an identity file.如果您没有使用标识文件,则需要执行此操作。 |
SSH Identity FileSSH标识文件 | File from which the identity (private key) for SSH public key authentication is read.从中读取SSH公钥身份验证的标识(私钥)的文件。
Unix or OS X: If using OpenSSH, identity files are found in the ~/.ssh directory. Unix或OS X:如果使用OpenSSH,则在~/.ssh 目录中可以找到标识文件。By default, the private key files have one of the following file names:默认情况下,私钥文件具有以下文件名之一:
id_dsa
id_ecdsa
id_ed25519
id_rsa
On Windows, the location of the identity files depends on your choice of SSH client, such as PuTTY.在Windows上,标识文件的位置取决于您选择的SSH客户端,例如PuTTY。
|
SSH PassphraseSSH密码 | (Optional) If your private key is encrypted, provide the passphrase used to decrypt your private key. (可选)如果您的私钥已加密,请提供用于解密私钥的密码短语。A passphrase provides an extra layer of security for an SSH connection.密码短语为SSH连接提供了额外的安全层。 |
Behavior行为
In MongoDB Compass, SSH Tunnel Connections allow users to connect to replica sets.在MongoDB Compass中,“SSH隧道连接”允许用户连接到副本集。
Users can connect to replica sets using SSH Tunnels and TLS / SSL connections.用户可以使用SSH隧道和TLS/SSL连接连接到副本集。
Socks5
To connect to a deployment using Socks5, use the following fields:要使用“Socks5”连接到部署,请使用以下字段:
Field字段 | Description描述 |
Proxy Hostname代理主机名 | Domain name, IPv4, or IPv6 address on which a socks5 proxy is listening.socks5代理正在侦听的域名、IPv4或IPv6地址。 |
Proxy Tunnel Port代理隧道端口 | (Optional) TCP port number. Default is 1080.(可选)TCP端口号。默认值为1080。 |
Proxy Username代理用户名 | (Optional) Username used to authenticate the connection with the proxy server.(可选)用于验证与代理服务器的连接的用户名。 |
Proxy Password代理密码 | (Optional) Password used to authenticate the connection with the proxy server.(可选)用于验证与代理服务器的连接的密码。 |
Behavior行为
If you specify a non-local Socks5 proxy host and provide a username and password authentication, you receive a warning stating that the credentials will be sent in plaintext.如果指定非本地Socks5代理主机并提供用户名和密码身份验证,则会收到一条警告,说明凭据将以明文形式发送。
If you specify a remote Socks5 proxy host and do not enable TLS, you receive a warning stating that the proxy administrator will be able to intercept data sent and received by Compass.如果您指定了远程Socks5代理主机,但未启用TLS,则会收到一条警告,说明代理管理员将能够截获Compass发送和接收的数据。
3
(Optional) For advanced connection configuration options, click the Advanced tab.(可选)有关高级连接配置选项,请单击“高级”选项卡。