Getting error while trying to push to Heroku

最后都变了- 提交于 2019-11-28 06:50:59

问题


When I type in "git push heroku master" I get an error that says:

ssh: Could not resolve hostname heroku.com: nodename nor servname provided, or not known

I am on my computer at work and I believe this problem has to do with proxies/firewall. Does anybody know of a way around this error in the command line? Or any other type of fix? Thanks.


回答1:


try ssh'ing directly to heroku from your command line

 ssh git@heroku.com -T

if you don't get a response

 !  You can only access Heroku by ssh via git push and pull commands.

then it's connectivety issue or a firewall in the way that's blocking your requests.




回答2:


please make an entry in your ~/.ssh/config to get around this issue. No idea why your network is having issues. You may be behind a proxy and git has to be configured for that outside of your OS settings.

Hope this helps.




回答3:


I had a heap of trouble when accessing internet via my Zyxel PLA4215. When switching to wireless everything worked fine.



来源:https://stackoverflow.com/questions/7366445/getting-error-while-trying-to-push-to-heroku

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!