微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

postgresql – 使用SSH(Putty)连接到Heroku Postgres

我希望能够使用Putty从我的桌面连接到我的Heroku postgres(起重机)数据库.

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

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

如果我尝试使用Heroku设置信息Putty会出现此错误disconnected:不支持可用的身份验证方法.

解决方法

Heroku侦听与数据库的SSL连接,但不提供使用Putty所需的shell帐户.
他们在 their doc说:

When you find yourself wanting SSH access,instead try using tools
that properly accounts for Heroku’s distributed environment,such as
the heroku command line tool and one-off dynos.

事实上,这与Webfaction形成对比,后者明确表示它们提供shell访问:

Full shell access to fast servers with all your favorite tools
pre-installed and maintained for you.

不同的公司,不同的服务……

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。

相关推荐