How to connect to a Database using SSH tunnel on dbeaver?

I would like to understand why I can't connect to my database using the ssh tunnel on dbeaver.

My database is hosted on a VPS using nginx.

I installed postgresql and created a user "userA" with a password "passwordUserA". I created a new database "databaseA". and gave the rights to the previously created user "userA

CREATE USER userA WITH PASSWORD 'passwordUserA' CREATEDB; CREATE DATABASE databaseA; ALTER DATABASE databaseA OWNER TO userA; 

Now I would like to be able to connect to it remotely with dbeaver.

for the host ip: I enter the @ ip of my remote server

the username: userA

the password: passwordUserA

the port: 22

dBeaver ssh connection settings dbeaver ssh connection settings

I should be able to connect to my database but dbeaver says "auth fail" Does anyone know why the connection is not working properly?

1

1 Answer

For SSH connection you should to use linux system user with password (or ssh key) not database user.

After SSH connection established you put Database user and password on the 'Main' tab, using localhost as Host enter image description here

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

You Might Also Like