的ssh:连接到主机的Heroku端口22:连接被拒绝

问题描述:

我试图把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 

我有很多关键和Heroku的问题。我开始使用Heroku Accounts,这使得它更容易。确保您的公钥已在您的account under SSH keys here中列出。

顺便说一句,ssh -v [email protected]使用Heroku帐户时失败,但我能够使用我的帐户没有问题。

+0

完美解决。谢谢! – 2014-12-04 13:40:28

我有同样的错误,发现在那个SSH被挡在我的办公室。如果你不能SSH到任何可能是你的问题,但如果你可以SSH到某个不是Heroku的地方,我不确定。

+0

当我'ssh git @ github.com'我收到这个shell访问错误:'PTY分配请求在通道0上失败 嗨ChristinaLeuci!您已成功通过身份验证,但GitHub不提供shell访问权限。 连接到ssh.github.com关闭。“ – 2014-12-03 22:48:44