Re: Weird GSSAPI error - trying to connect via SSH tunnel - Mailing list pgsql-admin

From linux.il
Subject Re: Weird GSSAPI error - trying to connect via SSH tunnel
Date
Msg-id CANpTS03keBuQAn9yZLTrqPTd7sEoK0Hyx4uReHDd2Nk4vUjoJg@mail.gmail.com
Whole thread Raw
In response to Re: Weird GSSAPI error - trying to connect via SSH tunnel  (Jeff Janes <jeff.janes@gmail.com>)
List pgsql-admin
Jeff,
Many thanks! It indeed was my case - I tried to use the wrong password and was confused by this error message.
Vitaly

On Thu, Apr 28, 2022 at 6:18 PM Jeff Janes <jeff.janes@gmail.com> wrote:
On Thu, Apr 28, 2022 at 5:57 AM linux.il <linux.il@gmail.com> wrote:
Hi,
I'm trying to connect to AWS RDS instance with private IP using SSH tunnel. 
I have no problems with network/credentials - I tested SSH tunnel to my Postgres server using command-line, and I was able to connect.
But no luck with PgAdmin  - I'm getting a GSSAPI error message (sorry for screenshot, but Pgadmin for Mac doesn't allow me copy-paste text).

That is just log spam.  Since it found GSS credentials in the local environment, that is the first thing it tried.  But it failed, probably because the server didn't want to use it.  So then it moved on to the next method, which was password auth, and that also failed.That is the real error.  Look in the server log file to possibly get more details on that failure.  The error sent to unauthenticated users is intentionally vague to avoid leaking information.

Cheers,

Jeff
 

pgsql-admin by date:

Previous
From: Jeff Janes
Date:
Subject: Re: Weird GSSAPI error - trying to connect via SSH tunnel
Next
From: "Capobianco, Tony"
Date:
Subject: RE: issues connecting to RDS from psql 9.2 v 14.2