加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

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

发布时间:2020-12-13 15:57:41 所属栏目:百科 来源:网络整理
导读:我希望能够使用Putty从我的桌面连接到我的Heroku postgres(起重机)数据库. 我最近从Webfaction转移到了Heroku.在webfaction上,这是一个非常简单的过程(通过他们的文档:http://docs.webfaction.com/user-guide/databases.html#starting-an-ssh-tunnel-with-p
我希望能够使用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.

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

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读