I’m facing an issue when I try to connect to PostgreSQL Database after connected SSH successfully. I’m using Java + JSCH library to help connect to DB PostgreSQL via SSH tunnel. Please help to take a look on my code: An exception is thrown at following step: Here is result: I used value above to connect PostgreSQL manually, using pgAdmin4,
Tag: ssh-tunnel
How to SSH tunnel and connect to a database using IntelliJ and JDBC?
I’m having issues connecting to a database hosted on a server using IntelliJ and JDBC. With the command line, the command: creates a tunnel successfully and the command: connects to the database fine and allows me to use it. How would this be translated correctly into the IntelliJ Data Sources and the SSH tunnel tools? At the moment, for the