Connecting to Heroku Postgres using SSH (Putty)

Jam*_*mes 6 postgresql ssh putty heroku

I'd like to be able to connect to my Heroku postgres (crane) database from my desktop using Putty.

我最近从 Webfaction 搬到了 Heroku。在网络上,这是一个非常简单的过程(通过他们的文档:http : //docs.webfaction.com/user-guide/databases.html#starting-an-ssh-tunnel-with-putty)。

Heroku 允许您使用heroku pg:credentials. 此处显示:https : //devcenter.heroku.com/articles/heroku-postgresql#external-connections-ingress。我似乎无法弄清楚如何使用此信息通过 Putty 连接到数据库。

如果我尝试使用 Heroku info Putty 进行设置,则会出现此错误: Disconnected: No supported authentication methods available.

Joh*_*non 1

Heroku 允许直接连接到数据库,您不必使用 putty 或其他 ssh 客户端通过隧道连接到数据库服务器。

使用您的 Heroku postgres 凭据从命令行直接连接 psql。