当我浏览文档时,使用会话管理器我们可以连接私有子网中的实例,而无需堡垒主机本身[从本地到私有 ec2 的直接端口转发]。
但在 RDS 情况下,即使我们使用会话管理器建立连接,我们也需要在本地和私有 RDS 之间有一个 EC2 实例。
你能解释一下为什么会这样吗?请分享一些解释这一点的文件。
amazon-web-services amazon-rds aws-session-manager bastion-host
我有一个像这样的 ssh 配置文件。我有一个从 test2 到 host1 的代理跳转。
Host host1
Hostname xxxxxx.us-east-1.elb.amazonaws.com
Port 2222
User xxxx
IdentityFile ~/.ssh/cert
StrictHostKeyChecking no
UserKnownHostsFile /dev/null
KeepAlive yes
ServerAliveInterval 30
ServerAliveCountMax 30
Host test2
Hostname xx.xxx.xx.xxx
ProxyCommand ssh.exe host1 -q -W %h:%p host1
User ubuntu
IdentityFile ~/.ssh/cert
KeepAlive yes
StrictHostKeyChecking no
UserKnownHostsFile /dev/null
ServerAliveInterval 30
ServerAliveCountMax 30
Run Code Online (Sandbox Code Playgroud)
我的 mongo 数据库主机:xxx-nonprod.cluster-xx.us-east-1.docdb.amazonaws.com
我必须使用 Host test2使用 SSH 隧道连接到 Mongodb ,但它使用ProxyCommand进行代理跳转
我想使用 SSH 隧道与Mongo DB Compass以及Node js mongoose连接到 mongodb 。
如何使用 Mongo DB Compass …