The Proxy / SSH Tunnel tab allows you to connect to your deployment with a Proxy method or SSH tunnel.“代理/SSH隧道”选项卡允许您使用代理方法或SSH隧道连接到部署。
Procedure过程
Open the New Connection modal.打开“新建连接”模式。
In the bottom panel of the Connections Sidebar, click Add New Connection to open the New Connection modal.在“连接”侧边栏的底部面板中,单击“添加新连接”以打开“新建连接”模式。
If you already have connections listed in the Connections Sidebar, click the icon on the top right of the sidebar to open the New Connection modal.如果您已经在“连接”侧边栏中列出了连接,请单击侧栏右上角的图标以打开“新连接”模式。
Click the Proxy / SSH Tunnel tab.单击“代理/SSH隧道”选项卡。
You have the following connection options:您有以下连接选项:
| Socks5 | |
SSH ConnectionSSH连接
To connect to a deployment using SSH with Password or SSH with Identity File, use the following fields:要使用“带密码的SSH”或“带身份文件的SSH”连接到部署,请使用以下字段:
| SSH Hostname | |
| SSH Port | |
| SSH Username | |
| SSH Password | |
| SSH Identity File |
|
| SSH Passphrase |
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”连接到部署,请使用以下字段:
| Proxy Hostname | |
| Proxy Tunnel Port | |
| Proxy Username | |
| Proxy Password |
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发送和接收的数据。If you specify a proxy configuration with authentication options such as a username and password, Compass can't route some network resources, including map data for geographic visualizations, through the proxy.如果您指定了具有用户名和密码等身份验证选项的代理配置,Compass将无法通过代理路由某些网络资源,包括用于地理可视化的地图数据。
Tip
To disconnect from your deployment, see Disconnect from MongoDB.要断开与部署的连接,请参阅断开与MongoDB的连接。
