无法使用 Robo 3T 连接到 Ec2,无法创建 SSH 隧道

问题描述 投票:0回答:1

我无法从 robo 3T 连接 ec2 实例,但可以使用 Ubuntu cmd 连接 ec2 服务器。我已经尝试了所有答案,但仍然面临问题。作为参考,我附上了 1) AWS 安全组 2) Robo 3T 设置

请帮我解决这个问题

mongodb amazon-web-services amazon-ec2 ssh ssh-tunnel
1个回答
0
投票

您还必须允许从 Mongodb 配置进行远程访问。

文件:

sudo nano /etc/mongod.conf

# network interfaces
net:
  port: 27017
  bindIp: 127.0.0.1

更改为

# network interfaces
net:
  port: 27017
  bindIp: 0.0.0.0

更新此文件后重新启动 mongodb 服务器。

© www.soinside.com 2019 - 2024. All rights reserved.