SSH database configuration

Alvaro Perez wrote:

How can I configure Rails to connect to a database via SSH? In the
config file we have:

development:
  adapter:
  database:
  username:
  password:
  host:

No connection type, ssh port...

Thank you,
Alvaro.

Do you mean a SSH Tunnel?

* http://docs.planetargon.com/PostgreSQL_SSH_Tunnel
* http://docs.planetargon.com/MySQL_SSH_Tunnel

Good luck!

Robby