- Update pg_hba.conf (most likely in /etc/postgresql/9.4/main) with -
host all all 0.0.0.0/0 trust
- Update postgresql.conf to use
listen_addresses = '*'
- Be sure to
sudo service postgresql restart
- Add
config.vm.network :forwarded_port, host: 5432, guest: 5432
to theVagrant.configure
block in your Vagrantfile.
- Attempt to connect from your host using
psql -h localhost -U vagrant
It worked like a charm, thanks