pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedpg_hba.conf & putty
6+ messages / 3 participants
[nested] [flat]
* pg_hba.conf & putty
@ 2007-03-05 23:30 Moritz Bayer <moritz.bayer@googlemail.com>
2007-03-05 23:42 ` Re: pg_hba.conf & putty Phillip Smith <phillip.smith@weatherbeeta.com.au>
2007-03-06 00:02 ` Re: pg_hba.conf & putty Andy Shellam <andy.shellam-lists@mailnetwork.co.uk>
0 siblings, 2 replies; 6+ messages in thread
From: Moritz Bayer @ 2007-03-05 23:30 UTC (permalink / raw)
To: pgsql-admin
dear list,
I know there are already hunderts of posts about pg_hba.conf, but still
after reading a few of them I still got troubles with this topic.
I've got a vpn server with a ststic ip address, java apps are supposed to
run there receiving data from a postgresql database.
The database is running, but for changes on it I want to open a putty
connection while using pgAdmin.
In putty, I define a tunnel to port 5432, its displayed like this:
Lserver.ip.address:5432
Thought this entries in my pg_hba.conf would do it:
# "local" is for Unix domain socket connections only
local all all md5
# IPv4 local connections:
host all all 127.0.0.1/32 md5
# IPv6 local connections:
host all all ::1/128 md5
well, it doesn't. When i run pgAdmin with an open putty connection, it
still says: error connecting to server.
Any hints how I can find out whats still wrong?
Thanks in advance,
Mo
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: pg_hba.conf & putty
2007-03-05 23:30 pg_hba.conf & putty Moritz Bayer <moritz.bayer@googlemail.com>
@ 2007-03-05 23:42 ` Phillip Smith <phillip.smith@weatherbeeta.com.au>
2007-03-05 23:57 ` Re: pg_hba.conf & putty Moritz Bayer <moritz.bayer@googlemail.com>
1 sibling, 1 reply; 6+ messages in thread
From: Phillip Smith @ 2007-03-05 23:42 UTC (permalink / raw)
To: 'Moritz Bayer' <moritz.bayer@googlemail.com>; pgsql-admin
What address are you connecting to on your desktop computer? You should be
using localhost:5432 which putty will redirect to the server via the SSH
tunnel and the server will connect to PostgreSQL on your behalf.
~p
-----Original Message-----
From: pgsql-admin-owner@postgresql.org
[mailto:pgsql-admin-owner@postgresql.org] On Behalf Of Moritz Bayer
Sent: Tuesday, 6 March 2007 10:31
To: pgsql-admin@postgresql.org
Subject: [ADMIN] pg_hba.conf & putty
dear list,
I know there are already hunderts of posts about pg_hba.conf, but still
after reading a few of them I still got troubles with this topic.
I've got a vpn server with a ststic ip address, java apps are supposed to
run there receiving data from a postgresql database.
The database is running, but for changes on it I want to open a putty
connection while using pgAdmin.
In putty, I define a tunnel to port 5432, its displayed like this:
Lserver.ip.address:5432
Thought this entries in my pg_hba.conf would do it:
# "local" is for Unix domain socket connections only
local all all md5
# IPv4 local connections:
host all all 127.0.0.1/32 md5
# IPv6 local connections:
host all all ::1/128 md5
well, it doesn't. When i run pgAdmin with an open putty connection, it
still says: error connecting to server.
Any hints how I can find out whats still wrong?
Thanks in advance,
Mo
*******************Confidentiality and Privilege Notice*******************
The material contained in this message is privileged and confidential to
the addressee. If you are not the addressee indicated in this message or
responsible for delivery of the message to such person, you may not copy
or deliver this message to anyone, and you should destroy it and kindly
notify the sender by reply email.
Information in this message that does not relate to the official business
of Weatherbeeta must be treated as neither given nor endorsed by Weatherbeeta.
Weatherbeeta, its employees, contractors or associates shall not be liable
for direct, indirect or consequential loss arising from transmission of this
message or any attachments
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: pg_hba.conf & putty
2007-03-05 23:30 pg_hba.conf & putty Moritz Bayer <moritz.bayer@googlemail.com>
2007-03-05 23:42 ` Re: pg_hba.conf & putty Phillip Smith <phillip.smith@weatherbeeta.com.au>
@ 2007-03-05 23:57 ` Moritz Bayer <moritz.bayer@googlemail.com>
2007-03-06 00:17 ` Re: pg_hba.conf & putty Phillip Smith <phillip.smith@weatherbeeta.com.au>
0 siblings, 1 reply; 6+ messages in thread
From: Moritz Bayer @ 2007-03-05 23:57 UTC (permalink / raw)
To: Phillip Smith <phillip.smith@weatherbeeta.com.au>; +Cc: pgsql-admin
hello phillip,
yes, the connection i defined in pgadmin uses localhost:5432.
Still, no success :(
2007/3/6, Phillip Smith <phillip.smith@weatherbeeta.com.au>:
>
> What address are you connecting to on your desktop computer? You should
> be using localhost:5432 which putty will redirect to the server via the SSH
> tunnel and the server will connect to PostgreSQL on your behalf.
>
>
>
> ~p
>
>
>
> -----Original Message-----
> *From:* pgsql-admin-owner@postgresql.org [mailto:
> pgsql-admin-owner@postgresql.org] *On Behalf Of *Moritz Bayer
> *Sent:* Tuesday, 6 March 2007 10:31
> *To:* pgsql-admin@postgresql.org
> *Subject:* [ADMIN] pg_hba.conf & putty
>
>
>
> dear list,
>
> I know there are already hunderts of posts about pg_hba.conf, but still
> after reading a few of them I still got troubles with this topic.
>
> I've got a vpn server with a ststic ip address, java apps are supposed to
> run there receiving data from a postgresql database.
> The database is running, but for changes on it I want to open a putty
> connection while using pgAdmin.
> In putty, I define a tunnel to port 5432, its displayed like this:
> Lserver.ip.address:5432
>
> Thought this entries in my pg_hba.conf would do it:
>
> # "local" is for Unix domain socket connections only
> local all all md5
>
> # IPv4 local connections:
> host all all 127.0.0.1/32 md5
>
> # IPv6 local connections:
> host all all ::1/128 md5
>
> well, it doesn't. When i run pgAdmin with an open putty connection, it
> still says: error connecting to server.
>
> Any hints how I can find out whats still wrong?
>
> Thanks in advance,
> Mo
>
> ********************Confidentiality and Privilege
> Notice********************
>
> The material contained in this message is privileged and confidential to
> the addressee. If you are not the addressee indicated in this message or
> responsible for delivery of the message to such person, you may not copy or
> deliver this message to anyone, and you should destroy it and kindly notify
> the sender by reply email.
>
> Information in this message that does not relate to the official business
> of Weatherbeeta must be treated as neither given nor endorsed by
> Weatherbeeta. Weatherbeeta, its employees, contractors or associates shall
> not be liable for direct, indirect or consequential loss arising from
> transmission of this message or any attachments
>
>
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: pg_hba.conf & putty
2007-03-05 23:30 pg_hba.conf & putty Moritz Bayer <moritz.bayer@googlemail.com>
2007-03-05 23:42 ` Re: pg_hba.conf & putty Phillip Smith <phillip.smith@weatherbeeta.com.au>
2007-03-05 23:57 ` Re: pg_hba.conf & putty Moritz Bayer <moritz.bayer@googlemail.com>
@ 2007-03-06 00:17 ` Phillip Smith <phillip.smith@weatherbeeta.com.au>
2007-03-06 08:49 ` Re: pg_hba.conf & putty Moritz Bayer <moritz.bayer@googlemail.com>
0 siblings, 1 reply; 6+ messages in thread
From: Phillip Smith @ 2007-03-06 00:17 UTC (permalink / raw)
To: 'Moritz Bayer' <moritz.bayer@googlemail.com>; +Cc: pgsql-admin
I know your problem (I think)
Your SSH forward you said is defined as:
Lserver.ip.address:5432
So the requests will be coming from your server's IP address via the eth0
interface. You need to change this to 127.0.0.1 to make it use the lo
interface, and then the requests will come from 127.0.0.1 to match your
pg_hba.conf
Cheers,
~p
-----Original Message-----
From: pgsql-admin-owner@postgresql.org
[mailto:pgsql-admin-owner@postgresql.org] On Behalf Of Moritz Bayer
Sent: Tuesday, 6 March 2007 10:58
To: Phillip Smith
Cc: pgsql-admin@postgresql.org
Subject: Re: [ADMIN] pg_hba.conf & putty
hello phillip,
yes, the connection i defined in pgadmin uses localhost:5432.
Still, no success :(
2007/3/6, Phillip Smith < <mailto:phillip.smith@weatherbeeta.com.au>
phillip.smith@weatherbeeta.com.au>:
What address are you connecting to on your desktop computer? You should be
using localhost:5432 which putty will redirect to the server via the SSH
tunnel and the server will connect to PostgreSQL on your behalf.
~p
-----Original Message-----
From: pgsql-admin-owner@postgresql.org [mailto:
<mailto:pgsql-admin-owner@postgresql.org> pgsql-admin-owner@postgresql.org]
On Behalf Of Moritz Bayer
Sent: Tuesday, 6 March 2007 10:31
To: pgsql-admin@postgresql.org
Subject: [ADMIN] pg_hba.conf & putty
dear list,
I know there are already hunderts of posts about pg_hba.conf, but still
after reading a few of them I still got troubles with this topic.
I've got a vpn server with a ststic ip address, java apps are supposed to
run there receiving data from a postgresql database.
The database is running, but for changes on it I want to open a putty
connection while using pgAdmin.
In putty, I define a tunnel to port 5432, its displayed like this:
Lserver.ip.address:5432
Thought this entries in my pg_hba.conf would do it:
# "local" is for Unix domain socket connections only
local all all md5
# IPv4 local connections:
host all all 127.0.0.1/32 md5
# IPv6 local connections:
host all all ::1/128 md5
well, it doesn't. When i run pgAdmin with an open putty connection, it
still says: error connecting to server.
Any hints how I can find out whats still wrong?
Thanks in advance,
Mo
*******************Confidentiality and Privilege Notice*******************
The material contained in this message is privileged and confidential to the
addressee. If you are not the addressee indicated in this message or
responsible for delivery of the message to such person, you may not copy or
deliver this message to anyone, and you should destroy it and kindly notify
the sender by reply email.
Information in this message that does not relate to the official business of
Weatherbeeta must be treated as neither given nor endorsed by Weatherbeeta.
Weatherbeeta, its employees, contractors or associates shall not be liable
for direct, indirect or consequential loss arising from transmission of this
message or any attachments
*******************Confidentiality and Privilege Notice*******************
The material contained in this message is privileged and confidential to
the addressee. If you are not the addressee indicated in this message or
responsible for delivery of the message to such person, you may not copy
or deliver this message to anyone, and you should destroy it and kindly
notify the sender by reply email.
Information in this message that does not relate to the official business
of Weatherbeeta must be treated as neither given nor endorsed by Weatherbeeta.
Weatherbeeta, its employees, contractors or associates shall not be liable
for direct, indirect or consequential loss arising from transmission of this
message or any attachments
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: pg_hba.conf & putty
2007-03-05 23:30 pg_hba.conf & putty Moritz Bayer <moritz.bayer@googlemail.com>
2007-03-05 23:42 ` Re: pg_hba.conf & putty Phillip Smith <phillip.smith@weatherbeeta.com.au>
2007-03-05 23:57 ` Re: pg_hba.conf & putty Moritz Bayer <moritz.bayer@googlemail.com>
2007-03-06 00:17 ` Re: pg_hba.conf & putty Phillip Smith <phillip.smith@weatherbeeta.com.au>
@ 2007-03-06 08:49 ` Moritz Bayer <moritz.bayer@googlemail.com>
0 siblings, 0 replies; 6+ messages in thread
From: Moritz Bayer @ 2007-03-06 08:49 UTC (permalink / raw)
To: Phillip Smith <phillip.smith@weatherbeeta.com.au>; +Cc: pgsql-admin
Thanks a lot,
the change of the tunnels IP address to 127.0.0.1 made it!
:-)
Great!
2007/3/6, Phillip Smith <phillip.smith@weatherbeeta.com.au>:
>
> I know your problem (I think)
>
>
>
> Your SSH forward you said is defined as:
>
> Lserver.ip.address:5432
>
>
>
> So the requests will be coming from your server's IP address via the eth0
> interface… You need to change this to 127.0.0.1 to make it use the lo
> interface, and then the requests will come from 127.0.0.1 to match your
> pg_hba.conf
>
>
>
> Cheers,
>
> ~p
>
>
>
>
>
> -----Original Message-----
> *From:* pgsql-admin-owner@postgresql.org [mailto:
> pgsql-admin-owner@postgresql.org] *On Behalf Of *Moritz Bayer
> *Sent:* Tuesday, 6 March 2007 10:58
> *To:* Phillip Smith
> *Cc:* pgsql-admin@postgresql.org
> *Subject:* Re: [ADMIN] pg_hba.conf & putty
>
>
>
> hello phillip,
>
> yes, the connection i defined in pgadmin uses localhost:5432.
>
> Still, no success :(
>
>
>
>
> 2007/3/6, Phillip Smith < phillip.smith@weatherbeeta.com.au>:
>
> What address are you connecting to on your desktop computer? You should be
> using localhost:5432 which putty will redirect to the server via the SSH
> tunnel and the server will connect to PostgreSQL on your behalf.
>
>
>
> ~p
>
>
>
> -----Original Message-----
> *From:* pgsql-admin-owner@postgresql.org [mailto:pgsql-admin-owner@postgresql.org]
> *On Behalf Of *Moritz Bayer
> *Sent:* Tuesday, 6 March 2007 10:31
> *To:* pgsql-admin@postgresql.org
> *Subject:* [ADMIN] pg_hba.conf & putty
>
>
>
> dear list,
>
> I know there are already hunderts of posts about pg_hba.conf, but still
> after reading a few of them I still got troubles with this topic.
>
> I've got a vpn server with a ststic ip address, java apps are supposed to
> run there receiving data from a postgresql database.
> The database is running, but for changes on it I want to open a putty
> connection while using pgAdmin.
> In putty, I define a tunnel to port 5432, its displayed like this:
> Lserver.ip.address:5432
>
> Thought this entries in my pg_hba.conf would do it:
>
> # "local" is for Unix domain socket connections only
> local all all md5
>
> # IPv4 local connections:
> host all all 127.0.0.1/32 md5
>
> # IPv6 local connections:
> host all all ::1/128 md5
>
> well, it doesn't. When i run pgAdmin with an open putty connection, it
> still says: error connecting to server.
>
> Any hints how I can find out whats still wrong?
>
> Thanks in advance,
> Mo
>
>
>
> ********************Confidentiality and Privilege
> Notice********************
>
> The material contained in this message is privileged and confidential to
> the addressee. If you are not the addressee indicated in this message or
> responsible for delivery of the message to such person, you may not copy or
> deliver this message to anyone, and you should destroy it and kindly notify
> the sender by reply email.
>
> Information in this message that does not relate to the official business
> of Weatherbeeta must be treated as neither given nor endorsed by
> Weatherbeeta. Weatherbeeta, its employees, contractors or associates shall
> not be liable for direct, indirect or consequential loss arising from
> transmission of this message or any attachments
>
>
>
> ********************Confidentiality and Privilege
> Notice********************
>
> The material contained in this message is privileged and confidential to
> the addressee. If you are not the addressee indicated in this message or
> responsible for delivery of the message to such person, you may not copy or
> deliver this message to anyone, and you should destroy it and kindly notify
> the sender by reply email.
>
> Information in this message that does not relate to the official business
> of Weatherbeeta must be treated as neither given nor endorsed by
> Weatherbeeta. Weatherbeeta, its employees, contractors or associates shall
> not be liable for direct, indirect or consequential loss arising from
> transmission of this message or any attachments
>
>
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: pg_hba.conf & putty
2007-03-05 23:30 pg_hba.conf & putty Moritz Bayer <moritz.bayer@googlemail.com>
@ 2007-03-06 00:02 ` Andy Shellam <andy.shellam-lists@mailnetwork.co.uk>
1 sibling, 0 replies; 6+ messages in thread
From: Andy Shellam @ 2007-03-06 00:02 UTC (permalink / raw)
To: Moritz Bayer <moritz.bayer@googlemail.com>; +Cc: pgsql-admin
What address are you using for "server.ip.address"?
I believe this is the address you should put in your pg_hba.conf, not
127.0.0.1.
Then in PgAdmin, connect to localhost:5432.
You can always check your PostgreSQL logs and see what source address
the request is coming from.
Andy.
Moritz Bayer wrote:
> dear list,
>
> I know there are already hunderts of posts about pg_hba.conf, but
> still after reading a few of them I still got troubles with this topic.
>
> I've got a vpn server with a ststic ip address, java apps are
> supposed to run there receiving data from a postgresql database.
> The database is running, but for changes on it I want to open a putty
> connection while using pgAdmin.
> In putty, I define a tunnel to port 5432, its displayed like this:
> Lserver.ip.address:5432
>
> Thought this entries in my pg_hba.conf would do it:
>
> # "local" is for Unix domain socket connections only
> local all all md5
>
> # IPv4 local connections:
> host all all 127.0.0.1/32
> <http://127.0.0.1/32; md5
>
> # IPv6 local connections:
> host all all ::1/128 md5
>
> well, it doesn't. When i run pgAdmin with an open putty connection,
> it still says: error connecting to server.
>
> Any hints how I can find out whats still wrong?
>
> Thanks in advance,
> Mo
> !DSPAM:37,45ecaa2b103007769414910!
^ permalink raw reply [nested|flat] 6+ messages in thread
end of thread, other threads:[~2007-03-06 08:49 UTC | newest]
Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2007-03-05 23:30 pg_hba.conf & putty Moritz Bayer <moritz.bayer@googlemail.com>
2007-03-05 23:42 ` Phillip Smith <phillip.smith@weatherbeeta.com.au>
2007-03-05 23:57 ` Moritz Bayer <moritz.bayer@googlemail.com>
2007-03-06 00:17 ` Phillip Smith <phillip.smith@weatherbeeta.com.au>
2007-03-06 08:49 ` Moritz Bayer <moritz.bayer@googlemail.com>
2007-03-06 00:02 ` Andy Shellam <andy.shellam-lists@mailnetwork.co.uk>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox