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 1ilz5x-00081u-7s for pgsql-admin@arkaria.postgresql.org; Mon, 30 Dec 2019 17:44:46 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ilz5t-0000en-RO for pgsql-admin@arkaria.postgresql.org; Mon, 30 Dec 2019 17:44:41 +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 1ilz5t-0000dg-C7 for pgsql-admin@lists.postgresql.org; Mon, 30 Dec 2019 17:44: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 1ilz5m-0004UO-0s for pgsql-admin@postgresql.org; Mon, 30 Dec 2019 17:44:40 +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@redcor.ch) by susanne.redcor.ch (Postfix) with ESMTPSA id C21BBA0320; Mon, 30 Dec 2019 18:44:31 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=redcor.ch; s=201908; t=1577727871; bh=4vn5nvjw9kILaAGW3IFTIyuQWpvMoyQ9FjpfQABJh3w=; h=From:Subject:To:References:Date:In-Reply-To:From; b=liJMx9mUdPfScjxpLLHMJWB2fR8517dc5J/06/htIy11iUpF1JSyfQ5e3uivaIO6k H0/T5v4mjB1i0/QkdzFVZhWXP/JeV0Q6nkcfjFkd4zhm/+redA0HQ+hcwyP6TETe9j oPlubJbHCQ4pAu4CgXzGP0zinUSMlzwlTptv99+JDBtJSLHc6VKLYYLzCFasVLHpun pfCz3AX+tf8QV2cqNapWQvMaAAvIn4F3jjFXU69qk0uejNgJKPrT2Mh/O2a3Ee9N6v KEEGRKGqbo7FqmiRB9MfW/warDZjjtfJ/u01ZGvUfjM61hD60yZyGi5Rn9l0275OUF 4pEs5ijpddjAg== From: robert 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> Message-ID: Date: Mon, 30 Dec 2019 18:44:30 +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: de-CH 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 > >