gpt4 book ai didi

heroku - git push heroku master 给出错误 ssh : connect to host heroku. com 端口 22:连接被拒绝

转载 作者:行者123 更新时间:2023-12-03 00:04:59 25 4
gpt4 key购买 nike

我正在尝试运行heroku-django教程(使用ubuntu 12.04),但似乎由于某种原因我无法插入heroku。这是发生的事情:

yeinhorn@ubuntu:~/hellodjango$ git init
Reinitialized existing Git repository in /home/yeinhorn/hellodjango/.git/
yeinhorn@ubuntu:~/hellodjango$ git add .
yeinhorn@ubuntu:~/hellodjango$ git commit -m "my first commit"
# On branch master
nothing to commit (working directory clean)
yeinhorn@ubuntu:~/hellodjango$ heroku create
Creating high-dusk-6308... done, stack is cedar
http://high-dusk-6308.herokuapp.com/ | git@heroku.com:high-dusk-6308.git
! New default stack: Cedar. To use Bamboo, run `heroku create -s bamboo`.
yeinhorn@ubuntu:~/hellodjango$ git remote -v
heroku git@heroku.com:blazing-dusk-8587.git (fetch)
heroku git@heroku.com:blazing-dusk-8587.git (push)
yeinhorn@ubuntu:~/hellodjango$ git push heroku master
ssh: connect to host heroku.com port 22: Connection refused
fatal: The remote end hung up unexpectedly
yeinhorn@ubuntu:~/hellodjango$ git push -f heroku
ssh: connect to host heroku.com port 22: Connection refused
fatal: The remote end hung

意外上涨

当我运行时

$telnet heroku.com 22

我明白了

Trying 50.19.85.132...
Trying 50.19.85.154...
Trying 50.19.85.156...
telnet: Unable to connect to remote host: Connection refused

有什么想法吗?

最佳答案

基于this questionthis question ,我建议您检查是否没有运行任何防火墙或端口阻止软件(例如 PeerGaurdian),并且您不会在系统上的任何位置阻止 Amazon/EC2。

关于heroku - git push heroku master 给出错误 ssh : connect to host heroku. com 端口 22:连接被拒绝,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11168279/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com