2014-12-03 111 views
3

我試圖把Rails應用程序多達Heroku的,它不斷給我這個錯誤:的ssh:連接到主機的Heroku端口22:連接被拒絕

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 

回答

1

我有很多關鍵和Heroku的問題。我開始使用Heroku Accounts,這使得它更容易。確保您的公鑰已在您的account under SSH keys here中列出。

順便說一句,ssh -v [email protected]使用Heroku帳戶時失敗,但我能夠使用我的帳戶沒有問題。

+0

完美解決。謝謝! – 2014-12-04 13:40:28

1

我有同樣的錯誤,發現在那個SSH被擋在我的辦公室。如果你不能SSH到任何可能是你的問題,但如果你可以SSH到某個不是Heroku的地方,我不確定。

+0

當我'ssh git @ github.com'我收到這個shell訪問錯誤:'PTY分配請求在通道0上失敗 嗨ChristinaLeuci!您已成功通過身份驗證,但GitHub不提供shell訪問權限。 連接到ssh.github.com關閉。「 – 2014-12-03 22:48:44

相關問題