I've got a postgres database hosted on Digital Ocean. On a server, I use the below R code without error and am able to connect. However, on my local machine (Mac, M1, 11.2.3) I get an error. Any ideas?

```
library(DBI)
library(RPostgres)
library(dbplyr)
library(dbx)

con <- dbxConnect(adapter = "postgres",
                  host = "db-postgresql-XXX.ondigitalocean.com",
                  port = 11111,
                  dbname = "XXXX",
                  user = "XXXX",
                  password = "XXXXX")

```

The error I get is:

> 
> Error: FATAL: no pg\_hba.conf entry for host "XXX", user "XXXX", database "XXXX", SSL off
> 
> 
> 

p.s. I've replaced sensitive stuff in the above with XXX etc.