Cannot connect to PostgreSQL Remotely on Amazon EC2 instance using PgAdmin

前端 未结 3 1631
故里飘歌
故里飘歌 2021-02-13 05:30

I have a micro free tier RHEL 6 instance running and have postgresql 9.2 installed using the yum instructions here: http://yum.pgrpms.org/howtoyum.php

And I am able conn

3条回答
  •  我寻月下人不归
    2021-02-13 05:50

    Looks your pg_hba.conf misses the "+" after the group name. try

    # TYPE DATABASE USER ADDRESS METHOD host all pgadmin+ 0.0.0.0/24 trust host all all [my ip]/24 md5

    The pg_hba.conf explains about user:

    The value all specifies that it matches all users. Otherwise, this is either the name of a specific database user, or a group name preceded by +. (Recall that there is no real distinction between users and groups in PostgreSQL; a + mark really means "match any of the roles that are directly or indirectly members of this role", while a name without a + mark matches only that specific role.)

提交回复
热议问题