簡體   English   中英

ssh:連接到主機heroku端口22:連接被拒絕

[英]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-herokugit-push-heroku-master 通過這兩個答案我卸載並重新安裝了Heroku Toolbelt,為heroku添加了一個新的SSH密鑰,並在heroku中創建了一個新的應用程序來推送。

當我使用ssh -T heroku.comssh -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的地方,我不確定。

我和鍵和Heroku有很多問題。 我開始使用Heroku帳戶 ,這使它變得更容易。 確保您的公鑰在此處的SSH密鑰下列在您的帳戶中

BTW, ssh -v git@heroku.com在使用Heroku帳戶時失敗,但我可以毫無問題地使用我的帳戶。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM