Problem with connecting with named host parameter

Поиск
Список
Период
Сортировка
От Mike Martin
Тема Problem with connecting with named host parameter
Дата
Msg-id CAOwYNKZ=-DnT9w9Vk4cc6a1FTrvszhN1gGT_RqmKArerOfT4Mg@mail.gmail.com
обсуждение исходный текст
Ответы Re: Problem with connecting with named host parameter  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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

В списке pgsql-general по дате отправления:

Предыдущее
От: Ravi Krishna
Дата:
Сообщение: Re:
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Problem with connecting with named host parameter