Re: [EXTERNAL] Re: Case 120011521001709 - Issues connecting topostgreSQL server - Mailing list pgsql-odbc

From Keith Yanase
Subject Re: [EXTERNAL] Re: Case 120011521001709 - Issues connecting topostgreSQL server
Date
Msg-id CADxFd5kvki-xUajEsXr9mDxaBpQ=bG2U_hqfr2vXwFnCB6SE_g@mail.gmail.com
Whole thread Raw
In response to Re: [EXTERNAL] Re: Case 120011521001709 - Issues connecting topostgreSQL server  (Clemens Ladisch <clemens@ladisch.de>)
List pgsql-odbc
I ran the command and when I tel psqlODBC to connect to localhost:5432 I get this message in the terminal:
Channel 3: open failed: connect failed: connection refused

Are my connection settings in psqlODBC correct?
Data Source: PostgreSQL30
Database: database
Server: localhost
Port: 5432

I didn’t enter credentials (un/pw) since I’m connecting to localhost - is that a correct assumption? 

On Sun, Jan 19, 2020 at 10:58 AM Clemens Ladisch <clemens@ladisch.de> wrote:
Keith Yanase wrote:
> The server only allows SSH tunneling. I’m able to establish the SSH tunnel with the command: ssh jupyter
> but how do I tell psqlODBC to connect to that port?

Run "ssh -L bindaddress:localport:remoteserver:remoteport sshserver", where
"remoteserver" is the host name you want to connect to, from the point of
view of the SSH server.

So run "ssh -L localhost:5432:localhost:5432 jupyter", and tell psqlODBC to
connect to localhost:5432.


Regards,
Clemens

pgsql-odbc by date:

Previous
From: Clemens Ladisch
Date:
Subject: Re: [EXTERNAL] Re: Case 120011521001709 - Issues connecting topostgreSQL server
Next
From: Clemens Ladisch
Date:
Subject: Re: [EXTERNAL] Re: Case 120011521001709 - Issues connecting topostgreSQL server