git push heroku master 给出错误 ssh:连接到主机 heroku.com 端口 22:连接被拒绝 [英] git push heroku master gives error ssh: connect to host heroku.com port 22: Connection refused

查看:31
本文介绍了git push heroku master 给出错误 ssh:连接到主机 heroku.com 端口 22:连接被拒绝的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I'm trying to run the heroku-django tutorial (using ubuntu 12.04) and it seems for some reason i cant push into heroku. here is what happens:

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

有什么想法吗?

推荐答案

基于 这个问题这个问题,我建议您检查您没有运行任何防火墙或端口阻止软件(如 PeerGaurdian),并且您不会在系统的任何位置阻止 Amazon/EC2.

Based on this question and this question, I'd suggest you check that you don't have any firewall or port blocking software running (like PeerGaurdian) and that you're nto blocking Amazon/EC2 anywhere on your system.

这篇关于git push heroku master 给出错误 ssh:连接到主机 heroku.com 端口 22:连接被拒绝的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆