| From: | Mike Martin <redtux1(at)gmail(dot)com> |
|---|---|
| To: | pgsql-general(at)lists(dot)postgresql(dot)org |
| Subject: | Problem with connecting with named host parameter |
| Date: | 2021-08-27 13:29:47 |
| Message-ID: | CAOwYNKZ=-DnT9w9Vk4cc6a1FTrvszhN1gGT_RqmKArerOfT4Mg@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
Hi
I am getting the following error when I connect with hostname on localhost
psql -h capture -U <dbuser> -p 5432 <dbname>
psql: error: FATAL: no pg_hba.conf entry for host
"fe80::7285:c2ff:feb0:cd4%eth0", user "usevideo", database "usevideos", SSL
off
The hba.conf is
local all all password
# IPv4 local connections:
host all all 127.0.0.1/24 password
host all all 192.0.0.0/0 password
# IPv6 local connections:
host all all ::1/128 trust
If I change -h to ip address then it works, just not with hostname.
Connecting from another host also works.
The other thing I cant understand if the
"fe80::7285:c2ff:feb0:cd4%eth0"
This looks like an ipv6 host or block id which I caant understand.
This is with pg 11 and 12 on fedora 34
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tom Lane | 2021-08-27 14:00:52 | Re: Problem with connecting with named host parameter |
| Previous Message | Ravi Krishna | 2021-08-27 12:59:25 | Re: |