Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1imFPl-0004Iy-Qh for pgsql-admin@arkaria.postgresql.org; Tue, 31 Dec 2019 11:10:18 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1imFPk-0004nx-JP for pgsql-admin@arkaria.postgresql.org; Tue, 31 Dec 2019 11:10:16 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ilyZw-0005Yg-VB for pgsql-admin@lists.postgresql.org; Mon, 30 Dec 2019 17:11:41 +0000 Received: from susanne.redcor.ch ([178.63.103.72]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ilyZt-0004Hd-Px for pgsql-admin@postgresql.org; Mon, 30 Dec 2019 17:11:39 +0000 Received: from [192.168.0.199] (84-72-41-4.dclient.hispeed.ch [84.72.41.4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: robert@redo2oo.ch) by susanne.redcor.ch (Postfix) with ESMTPSA id 4C970A0320; Mon, 30 Dec 2019 18:11:34 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=redo2oo.ch; s=201908; t=1577725894; bh=Sh+PzpueotbAkbZ9Q8tvV+cizGPMVLRtswazR/+wGg4=; h=Subject:To:References:From:Date:In-Reply-To:From; b=aUHnYsO+4Z2bhJ9PRqTI404BXHiymdjxBlgMWiKCm9IB30XX1X2uuypD0duDbx+SL WclbHNjAkaqAb+z5ts4SLtMUxSAqEqZ1bt/svJ6+sSh7Wgxz7WGSXl7ZEQzrmg09fb zkm8TdV7avaLM1+L7uSd3mceQ/7TWZGh/O8jms5EJ2WIsFH6v8H2tH+ksp7+SxSPpv ClUk0CEvNrKd5nS+7oDl5J+Xk+NkrnawC4NaK1b5t28rGjAnhHZFNq0ldgryxgnrUL jZv9+jgZSGXpAi1uvlNr/9KFE8AzK4YXFVqVj4QHqzCY+q+93Lv/xdc4cYK2twZoAX 9J7uPuOyBFLuA== Subject: Re: how to connect pgadmin 4.16 to postgres db in linux To: bvo , pgsql-admin@postgresql.org References: <1577723003751-0.post@n3.nabble.com> From: "robert@redo2oo.ch" Message-ID: Date: Mon, 30 Dec 2019 18:11:33 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <1577723003751-0.post@n3.nabble.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-GB List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk hi you have to tell postgres running on your linux server who is allowed to login from what url this is done in pd_hba.conf and you have also to tell postgres on what ips it should listen See: https://www.netiq.com/documentation/identity-manager-47/setup_windows/data/connecting-to-a-remote-postgresql-database.html On 30.12.19 17:23, bvo wrote: > Hello, > > I am new with postgres and would like to know how to connect to the postgres > db in Linux using pgadmin in Window. > > I created postgresdb in Linux and try to connect into the db using > pgadmin4.16 in my window workstation. > I create Server and put the hostname/address. I get an error: > "Unable to connect to server: > FATAL: no pg_hba.conf entry for host "192.168.#.#", user "postgres", > database "dbname", SSL off > " > not even with database name as postgres. > > Do I need to put my window's ip on pg_hba.conf in Linux? How? In > pg_hba.conf should I add entry: > host all postgres trust > ? have you tried that? I think it should work. As long this is no internet facing machine, there should be no security risk robert > What's happen if the other developers want to connect to the database using > pgadmin, do I need to add their windows' IP in? Is there a way we can use > like sqldeveloper without add all windows' IP? > > thank you. > > Bach-Nga > > > > > -- > Sent from: https://www.postgresql-archive.org/PostgreSQL-admin-f2076596.html > >