Received: from localhost (unknown [200.46.204.183]) by developer.postgresql.org (Postfix) with ESMTP id 6604C2E004D for ; Mon, 9 Jun 2008 19:43:00 -0300 (ADT) Received: from developer.postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 71717-06 for ; Mon, 9 Jun 2008 19:42:52 -0300 (ADT) X-Greylist: delayed 00:17:19.940864 by SQLgrey-1.7.6 Received: from mail17.bluewin.ch (mail17.bluewin.ch [195.186.18.64]) by developer.postgresql.org (Postfix) with ESMTP id 3BC9F2E0039 for ; Mon, 9 Jun 2008 19:42:56 -0300 (ADT) Received: from [192.168.1.74] (85.1.201.182) by mail17.bluewin.ch (Bluewin 7.3.121) id 4843B852001835F2 for pgsql-admin@postgresql.org; Mon, 9 Jun 2008 22:25:32 +0000 From: Ivo Rossacher Organization: P-Tools To: pgsql-admin@postgresql.org Subject: Re: Connecting from xp to linux server Date: Tue, 10 Jun 2008 00:25:32 +0200 User-Agent: KMail/1.9.6 (enterprise 20070904.708012) References: <484D11CC.3050806@geologyx.it> <484D4097.4070807@Sheeky.Biz> <484D9D62.8050705@geologyx.it> In-Reply-To: <484D9D62.8050705@geologyx.it> MIME-Version: 1.0 Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200806100025.32836.rossacher@bluewin.ch> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200806/59 X-Sequence-Number: 29397 The attached pg_hba.conf file does have several mistakes in. Every entry needs a mask or cidr and an auth-method. Pleas see the manual at chapter 21.1 for details about the different formats which are recognized. psql is a command line tool to access a database. Best regards Ivo Am Montag, 9. Juni 2008 23:15:14 schrieb Simone Gadenz: > Shane, > > I attached the pg_hba.conf I have on the server. I can use pgadmin3 when > I connect from the server itself, so I think the pg_hba on the server is > correct. > > From the client machine I cannot connect through pgadmin3. Is there > another way to test connection client server? Has pg a textual client to > send sql statements? > > Thanks a lot > > Simone > > Shane Ambler ha scritto: > > Simone Gadenz wrote: > >> Hi all, > >> > >> this is the problem I am facing. > >> > >> I have PG 8.3 running on a KUBUNTU installation running on a virtual > >> machine. From inside the virtual machine I can use PGADMIN to manage PG > >> but when I try to connect from the xp machine I have this error: "Error > >> connecting to the server:FATAL: missing or erroneous pg_hba.conf file" . > >> > >> I set the permission in the pg_hba.conf on the server. > >> > >> The machine talk each oher, I can ping and use telnet on the 5432 port. > >> > >> The log on the server does not report any problem. > >> > >> Ideas? > > > > If you can telnet then I would say your network and firewall is right > > and the error with pg_hba.conf is where you need to look. > > > > The pg_hba.conf is located in the data dir that you have specified for > > postgresql. Is it there? What entries do you have after all the > > comments? The errornous part would indicate a small syntax error or > > did you edit it on windows with cr/nl characters and copy it across to > > linux?