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

前端 未结 2 1586
青春惊慌失措
青春惊慌失措 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
    

提交回复
热议问题