简体   繁体   中英

Postgresql remote access direct or via ssh tunnels

I have given remote read-only database access to some users as follows:

  • Postgres is listening to a port [opened on firewall]
  • ip address s/usernames/passes are added to pg_hba.conf file
  • Privileges are configured on database

Is it safe enough to give them postgresql direct access like the way I did it or should I secure the connection with SSH tunnels

Only if you enforce the use of SSL by postgres.

To enforce the use of ssl use hostssl lines in your pg_hba.conf instead of plane host .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM