[英]psql: could not connect to server: Connection refused Is the server running on host “localhost” (::1) and accepting TCP/IP connections on port 5432?
[英]ssh: connect to host heroku port 22: Connection refused
我正在嘗試將Rails應用程序推送到heroku,它不斷給我這個錯誤:
ssh: connect to host 107.21.95.3 port 22: Connection refused
fatal: Could not read from remote repository.
這在本周早些時候在公共wifi位置和私人wifi位置工作。 我看過ssh-connect-to-host-heroku和git-push-heroku-master 。 通過這兩個答案我卸載並重新安裝了Heroku Toolbelt,為heroku添加了一個新的SSH密鑰,並在heroku中創建了一個新的應用程序來推送。
當我使用ssh -T heroku.com
或ssh -vT heroku.com
我分別得到:
ssh: connect to host 107.21.95.3 port 22: Connection refused
和
OpenSSH_6.2p2, OSSLShim 0.9.8r 8 Dec 2011
debug1: Reading configuration data /Users/christinaleuci/.ssh/config
debug1: /Users/christinaleuci/.ssh/config line 2: Applying options for heroku.com
debug1: Reading configuration data /etc/ssh_config
debug1: /etc/ssh_config line 20: Applying options for *
debug1: Connecting to 107.21.95.3 [107.21.95.3] port 22.
debug1: connect to address 107.21.95.3 port 22: Connection refused
ssh: connect to host 107.21.95.3 port 22: Connection refused
我有同樣的錯誤,發現SSH在我的辦公室被阻止了。 如果你不能SSH到任何可能是你的問題的地方,但如果你可以SSH到某個不是Heroku的地方,我不確定。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.