我試圖把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-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
完美解決。謝謝! – 2014-12-04 13:40:28