git push heroku master gives error ssh: connect to host heroku.com port 22: Connection refused

前端 未结 2 1580
青春惊慌失措
青春惊慌失措 2020-12-18 11:34

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@ubunt         


        
相关标签:
2条回答
  • 2020-12-18 11:48

    Do following steps:1. check sshd service:

    $ ssh-keygen -t rsa   # created ssh key
    $ heroku keys:add   # upload ssh key
    $ heroku keys  # lists keys
    

    2. find a normal proxy node

    $ ssh -vvv heroku.com  # debug ssh connection
    $ vim ~/.ssh/config   # setup usefull proxy node
      Host heroku.com
      Hostname 107.21.95.3     # trans by ip
      PreferredAuthentications publickey
      IdentityFile ~/.ssh/id_rsa
      port 22
    
    0 讨论(0)
  • 2020-12-18 11:54

    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.

    0 讨论(0)
提交回复
热议问题