I'm using Cloudflare access to authenticate my MongoDB server(using an SSH tunnel) but Robo3T not invoking browser authentication while using Cloudflare DNS with Robo3T SSH configuration(creating a tunnel through a bastion host to access the mongodb server).
But if I'm using bastion server IP instead of DNS i.e. bypassing Cloudflare access authentication, it works perfectly fine.
I'm facing the same issue with the MongoDB-compass as well.
Any help is really appreciated.
Related
I am trying to connect to google cloud's postgres with ssl certificates. I have pgadmin application locally. I tried connecting by setting my ip addess in allow netwroks and it worked. But, If I emove that settinging and tried with SSL certificates its not working.
I tried all ssl modes (sllow,require, verifiy-CA,verfy-full) . But, none of these works. please help me.
As #jjanes said it seems like its not possible. so, I allowed to every ip address 0.0.0.0/0 and allowed connection only with ssl certificates. This worked for me.
I have the following architecture in AWS where the RDS DB is publicly unavailable and is inside a private subnet and I am currently connecting to the database through a ec2 jump box located in the public subnet using ssh port forwarding.
To connect to RDS we have two options.
SSH port forwarding setup on EC2
Web Proxy on EC2
I am able to connect using the SSH port forwarding option but I am not able to use Tableau as there is no option in Tableau to connect using .pem file which is required for SSH port connection to go through.
I am trying to see if there is documentation that will explain step by step on the process for setting up web proxy on the EC2 so that I can connect Tableau Desktop with the Database using the Elastic IP of the EC2 instance. Any help appreciated.
I've got a Flexible PostgreSQL Cluster hosted on MS Azure Database for PostgreSQL. This server requires TLS/SSL access like shown in the docs, e.g.:
psql "sslmode=verify-full sslrootcert=c:\ssl\DigiCertGlobalRootCA.crt.pem host=mydemoserver.postgres.database.azure.com dbname=postgres user=myadmin"
or without "verify-full" it works as well:
psql "sslmode=require host=mydemoserver.postgres.database.azure.com dbname=postgres user=myadmin"
Everything works fine when I connect directly, not using a proxy server. But at office we have a corporate HTTP proxy / Firewall configured like http://192.168.X.X:3128. When the proxy is activated, connection to Azure fails.
I was trying to use ssh to set up a proxy tunnel, like so:
ssh -p 5432 <Azure DB username>#<Azure DB host: ....database.azure.com> -L 3128:192.168.X.X:5432
But that didn't work (connection time out error). Also tried to configure connection via PuTTY using some examples from the web, but also to no avail.
Question is: is it at all possible to connect to a remote cluster (both Azure and Google Cloud enforce SSH access) from behind an HTTP proxy?
I'm trying to connect from MongoDB compass to my database which is on VPS. MongoDB itself is working on the VPS. As well I allow firewall to connect from my IP. But it's still doesn't allow me to go. Error - connect ECONNREFUSED "ipaddress:port"
I also tried to use SSH tunnel with the same IP and port and I'm getting confused which SSH username and SSH password I need to use?
I'm using Ubuntu 18.04 on my VPS.
I checked so many resources on how to connect but doesn't find any helpful. First the problem was with Firewall and allowance of ports and IP. But now i'm 100% sure that I allow it in firewall.
For SSH Hostname - I use my IP
SSH Tunnel port - I use port which I allow
GOAL: Any solution how I can connect my MongoDB which is on VPS to MongoDB Compass? I'm really clueless on how to get it.
EDIT1
This error I receive after I'm trying to connect with MongoDB Compass -
Error creating SSH Tunnel: (SSH) Channel open failure: Connection refused
When I change the port I receive this error - Error creating SSH Tunnel: connect EADDRINUSE
I've been trying to establish a connection to my MongoDB on my Cloud VPS hosting server.
I'm hosting my website on a Cloud VPS running Ubuntu 16.04 (my hosting provider is InMotion hosting if anyone knows them).
I've installed MongoDB on the server.
I've edited the /etc/mongo.conf file to bindIp: 0.0.0.0
Created an admin user db.createUser({user: "XXXXX",pwd: "XXXXX",roles: ["userAdminAnyDatabase", "dbAdminAnyDatabase", "readWriteAnyDatabase"],mechanisms:[ "SCRAM-SHA-1" ]})
Restarted the service and checked the status that it is Active
Now, I'm trying to connect using RoboMongo, putting the server IP, user, and password and it doesn't connect.
To be able to connect via SSH I had to generate a public SSH key and then load the private key to PuTTY, so I even tried to connect RoboMongo with SSH. I've attached screenshots of the settings I've tried in RoboMongo.
When trying to connect with SSH I get this error:
Failed to create SSH tunnel to XXX.XXX.XX.XXX:22.
Error:
Authentication by key (PATH/id_rsa.ppk) failed (Error -16)
When trying without SSH I get this:
Cannot connect to the MongoDB at XXX.XXX.XX.XXX:27017.
Error:
Network is unreachable.