med*_*eam 5 amazon-web-services aws-documentdb-mongoapi
我想将Mac笔记本电脑中的Robo 3T(以前称为robomongo)与AWS的DocumentDB连接起来。我遵循了许多教程,但是找不到特定于DocumentDB的任何教程。
在测试阶段,它会通过步骤1“连接到我的EC2实例”,但是在步骤2失败,并显示消息“无法通过SSH隧道连接到... docdb.amazonaws.com:27017”。有人能使它正常工作吗?
从Robo 3T连接的步骤
1. Host : localhost and 28017: source port that we mentioned in ssh
tunnel
2. Authentication tab - Database : DBname; Username and password of
the documentDb
3. In SSL tab, click Use SSL protocol
4. Click use CA certificate
5. Import the CA certificate in .pem format. Download it from this link
: https://s3.amazonaws.com/rds-downloads/rds-combined-ca-bundle.pem
6. Click on Advanced options and keep Invalid hostnames : Allowed
7. Give a name for the connection and hit connect button.
8. Connection should be established by now.
Run Code Online (Sandbox Code Playgroud)
我假设您对SSH隧道使用以下命令。
ssh -i "ec2Access.pem" -L 28017:sample-cluster.cluster-cu52jq5kfddg.us-east-1.docdb.amazonaws.com:27017 ubuntu@ec2-34-229-221-164.compute-1.amazonaws.com -N
Run Code Online (Sandbox Code Playgroud)
希望这会起作用。
| 归档时间: |
|
| 查看次数: |
2290 次 |
| 最近记录: |