Connect remote MongoDB server without SSH - mongodb

Hi I want to connect to remote MongoDB server without using SSH tunneling(Both the client and server systems will run on windows OS). Is there any way to connect.

Related

Centralizing SSH access to many devices?

I have a few endpoints that I would like to connect to over SSH for things like Powershell Remoting so that I can run scripts for automation.
How could I centralize access?
Endpoints would connect over SSH to a central server
Endpoints would keep this SSH connection open
I would need to create universal access over SSH to the endpoints that are terminating at the server. By universal access, I mean devices on the same network would ideally be able to utilize these open SSH connections for whatever SSH purpose.
I am a bit confused about step 3.
Would I only be able to perform remote actions and connect over SSH by running Powershell, PuTTY, Remote Desktop etc. on the central server?
Would I be able to 'bring in' the SSH connections via this SSH server onto the general network, such that devices on the same network can connect to the systems over SSH through the central server?
Is there a better way to have multiple endpoints connect over SSH to a central server for running Powershell, running Remote Desktop or other SSH items from devices on the same network?
Devices could be Windows or Linux
I'm guessing:
Each of the endpoints from multiple remote networks connect over SSH to the SSH server on Lan X
Devices on Lan X would need to SSH into the SSH Server on Lan X
Once SSHed into the SSH Server, the devices on Lan X could now run Powershell scripts and other SSH items on the endpoints

Is there any possibility to establish a SSH tunneling from the server using the postgresql to the client

I have one server machine where PostgreSQL and SSH server is installed. I have another client machine from where i want to connect to the PostgreSQL on the server machine in a secure way. I used SSH tunnel which is working.
I tried to connect the client with server using:
$ ssh -L 3307:localhost:3306 user#Host -N -f
It is working. But now I am thinking whether it is possible to start the ssh tunneling from the server side. It means run a ssh command on server machine so that I get a more secure connection

How to configure and connect to a remote MongoDB server on a hosting provider server?

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.

pgAdmin can't connect to database server

Database server os = Ubuntu 16.04
client machine= Windows os 8.
we are not able to connect database server from pagAdmin which I have installed on my laptop (while its prompting for password).
Have you configured "pg_hba.conf" file in the server for remote access? IF not, you need to add following in the file
# vi /var/lib/pgsql/data/pg_hba.conf
host all all 192.168.101.20/24 trust
192.168.101.20/24 is just an example, you need to write clients IP and port.

how to setup a mongoDB server to accept remote connection

How to setup a mongoDB server (on centos ) to accept connection from other PC (for developing) , I set bind-ip ,but not work.