Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l2lMZ-0006xK-Ic for pgsql-general@arkaria.postgresql.org; Fri, 22 Jan 2021 01:35:47 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1l2lMY-00025Y-HM for pgsql-general@arkaria.postgresql.org; Fri, 22 Jan 2021 01:35:46 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l2lMX-00025Q-2N for pgsql-general@lists.postgresql.org; Fri, 22 Jan 2021 01:35:46 +0000 Received: from out4-smtp.messagingengine.com ([66.111.4.28]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l2lMT-00028I-Pz for pgsql-general@lists.postgresql.org; Fri, 22 Jan 2021 01:35:44 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id E49505C0233; Thu, 21 Jan 2021 20:35:39 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Thu, 21 Jan 2021 20:35:39 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm2; bh=r V07u42B0KuCvJ/dxLZJDs7W1TSYh1n4qvMjjqKDiss=; b=t+r0GvT6hm1xQgeRX 5NDbJrL5/23HetW5YZTKqL8iNBp+M9HFnuR8tz7qoF0w6TZkDE3IggwvvyqUNmF4 WigJPXYsmrq+9AHKr719pJQTTFbO4W8QX719jegEssLM5VTKskbvB06DozCHlTgs V9/exEiPRo4dkFF8ucORrrkygtCh3/u4Zf0wfV8df/JCnOeITJOs0dKWrSoN6LlH 5GoEgJHtFD7cD5XshWj33Owiz2J+NE0OL5/GBNQsdsNflJrvYB8I8PZWXRHiOlAw 6WLFLD8Syz6oeBFTZlQtuxewNAS2DNsqsHAGmLB2rAZW/GYiH7DK+1xTrJHJpdmS tkQXQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=rV07u42B0KuCvJ/dxLZJDs7W1TSYh1n4qvMjjqKDi ss=; b=IQxyl0000m0IC4670TrPlYZewcFFYr3tdBDitqXsC/kKOEd+5kkcN2Zg6 OyDhJahEjIQTKua5BtaKcGmIZhZMwbLdz9XxKr456lKKHExoSOgUSUe99OwFXZwP trkhLio9Cx2xdMCYlHvVNzLbVB0+FTt5a7UeCkFZKCNZABe8GzD1PdsL6VhcstKj XuOKdFx14OlBdOJgMZQ64l/u/GwkToCXw6mKvks0h4iA16H369MtjpLBiESKHr+m OvvWoJCJU87nJvUYqn7eTyGECm3sIX4mPdbcuXejeDdMwFQC8+xvnjyf1x6sSj1C B8HE3i3jJQ1gVcaoAk3nMr2nWpPzw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrudehgdefjecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefuvfhfhffkffgfgggjtgfgsehtjeertddtfeejnecuhfhrohhmpeetughrihgr nhcumfhlrghvvghruceorggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomh eqnecuggftrfgrthhtvghrnhepveetjedtieekteefhffhhfetledvkeffvedugeejueek hffgvdeileeitdekvefhnecuffhomhgrihhnpehpohhsthhgrhgvshhqlhdrohhrghenuc fkphepjeehrddujedvrddugedrudejnecuvehluhhsthgvrhfuihiivgeptdenucfrrghr rghmpehmrghilhhfrhhomheprggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtg homh X-ME-Proxy: Received: from [192.168.1.4] (75-172-14-17.tukw.qwest.net [75.172.14.17]) by mail.messagingengine.com (Postfix) with ESMTPA id 5DE321080057; Thu, 21 Jan 2021 20:35:39 -0500 (EST) Subject: Re: Customer unable to connect on port 5432, Postgres 10.7 To: Keith Christian , pgsql-general@lists.postgresql.org References: From: Adrian Klaver Message-ID: Date: Thu, 21 Jan 2021 17:35:38 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.6.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 1/21/21 5:30 PM, Keith Christian wrote: > Hello again Postgres friends, > > Customer is unable to log in to a PG database on 5432 using a Windows client. > Output of my test sessions below, I think the problem may be lines 3 - > 7 but no idea. > Ideas greatly appreciated! > > > Lines 1,2 PG Log entries > Lines 3-7 pg_hba.conf entries > Lines 8-10 postgresql.conf entries > Lines 11-12 Logging into the postgresql machine from a Linux machine > Lines 13-15 Successfully logged in, testing that SSH to the > linuxserver is successful > Lines 16-20 pguser successfully executes a query > > 1. LOG: connection received: host=aaa.bbb.ccc.ddd port=52310 > 2. 2021-01-21 15:34:00.657 MST [12011] FATAL: no pg_hba.conf > entry for host "aaa.bbb.ccc.ddd", user "pguser", database "testpgdb", > SSL off > > > 3. # IPv4 local connections: > 4. # host all all 127.0.0.1/32 ident > 5. host pguser all eee.fff.ggg.1/24 password > 6. host pguser all hhh.jjj.kkk.1/24 password > 7. host pguser all 0.0.0.0/0 password Looks like you have the database and user columns switched. Should be something like: host all pguser ... Follow format as shown here: https://www.postgresql.org/docs/12/auth-pg-hba-conf.html > > > 8. #listen_addresses = 'localhost' > 9. listen_addresses = '*' > 10. #port = 5432 > > > 11. pguser@linuxserver:~$ ssh -q pguser@www.xxx.yyy.zzz > 12. pguser@www.xxx.yyy.zzz's password: > > > 13. [pguser@pgserver ~]$ psql -U pguser -W testpgdb > 14. pguser=> \conninfo > 15. You are connected to database "testpgdb" as user "pguser" via > socket in "/var/run/postgresql" at port "5432". > > > 16. pguser=> select 5.0/99; > 17. ?column? > 18. ------------------------ > 19. 0.05050505050505050505 > 20. (1 row) > > -- Adrian Klaver adrian.klaver@aklaver.com