[Linux-bruxelles] problème postgres

Eric Hanuise ehanuise at fantasybel.net
Mer 24 Mar 22:24:20 CET 2004


fais d'abord un essai avec un pg_hba.conf modifié permettant un accès 
a/de tout a tout. (et /etc/init.d/postgres reload)
verifie aussi que tu n'as pas de filtering IPtables ou autres activé 
genre 'je permets ceci et cela et je drop le reste' qui bloquerait le 
port utilisé.

verifie ensuite sous quel user tu te logues a postgres et s'il a les 
permissions necessaires


Stan Pinte wrote:
> hello,
> 
> j'essaye de me connecter à postgres, via un tunnel ssh...
> 
> ssh -p 333 -l userX -L 5000:localhost:5432 monhostpostgres
> 
> le tunnel s'ouvre bien...
> 
> mais
> 
> psql -h localhost -p 5000 -d dbx -U userX
> 
> reste bloqué...et n'avance pas!!!!!
> 
> quelqu'un aurait-il une idée?
> 
> Merci mille fois!
> 
> pour info::
> 
> tail pg_hba.conf:
> 
> # This default configuration allows any local user to connect as any
> # PostgreSQL username, over either UNIX domain sockets or IP:
> 
> local        all                                           trust
> host         all         127.0.0.1     255.255.255.255     trust
> 
> # If you want to allow non-local connections, you will need to add more
> # "host" records (and don't forget to start the postmaster with "-i"!).
> 
> # CAUTION: if you are on a multiple-user machine, the above default
> # configuration is probably too liberal for you --- change it to use
> # something other than "trust" authentication.
> 
> host         all         132.147.101.0     255.255.255.0     trust
> host         all         132.148.101.0     255.255.255.0     trust
> host         all         132.150.101.0     255.255.255.0     trust
> host         all         139.165.84.0      255.255.255.0     trust
> host         all         127.0.0.1         255.255.255.0     trust
> 
> 
> Stan.
> 


-- 
----------------------------------------------------------------------
    Eric Hanuise - ehanuise at fantasybel dot net
                 "If it works, don't fix it"
----------------------------------------------------------------------
  ()  ascii ribbon campaign - against html mail
  /\         - against microsoft attachments

Why HTML in E-Mail is a Bad Idea
http://www.birdhouse.org/etc/evilmail.html




Plus d'informations sur la liste de diffusion Linux-bruxelles