我希望能够使用Putty从我的桌面连接到我的Heroku postgres(起重机)数据库。使用SSH(Putty)连接到Heroku Postgres
我最近从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的信息腻子给出了这样的错误:Disconnected: No supported authentication methods available.
的Heroku提供数据库作为一种服务...不是您有本地访问权限的完整服务器。你可以用'heroku bash'完成非常有限的事情,但这就是它。如果您的动机是安全性,那么使用SSL;否则你可能需要在真实的VPS上运行Pg。 –