Can ActiveRecord connect to PostgreSQL remotely and protect the DB password?

前端 未结 3 932
粉色の甜心
粉色の甜心 2021-02-06 16:51

I have a PostgreSQL DB on a remote VPS server (CentOS 5) and I\'d like to connect to have a Rails application connect to it from my local Mac laptop. On my laptop, I have the Ac

3条回答
  •  旧巷少年郎
    2021-02-06 17:17

    If you connect to a PostgreSQL server over insecure channel you need to encrypt your communication with SSL or (as runako has explained) SSH Tunneling.

提交回复
热议问题