【发布时间】:2022-03-19 01:27:23
【问题描述】:
当我尝试推送到我的 heroku.com 远程 git 存储库时,我收到以下消息:
ssh: connect to host heroku.com port 22: Connection refused
我可以轻松地使用我在 github 上的存储库使用相同的 ssh 密钥。
输入:
$ssh git@github.com #outputs: success message
$ssh git@heroku.com #outputs: ssh: connect to host heroku.com port 22: Connection refused
我使用的是 Mac OS 10.6。而且我非常无知慢慢学习!
更新:
$telnet heroku.com 22
给出这个输出:
Trying 75.101.145.87...
telnet: connect to address 75.101.145.87: Connection refused
Trying 75.101.163.44...
telnet: connect to address 75.101.163.44: Connection refused
Trying 174.129.212.2...
telnet: connect to address 174.129.212.2: Connection refused
telnet: Unable to connect to remote host
【问题讨论】:
-
我添加了 ssh 标签,因为它与问题相关,并删除了 ruby-on-rails 标签,因为它不是。