Connection refused - connect(2) (Errno::ECONNREFUSED) #45

Closed
Sasha04 opened this Issue Feb 29, 2012 · 4 comments

Comments

Projects
None yet
3 participants

Sasha04 commented Feb 29, 2012

Hi,
I'm trying to use localtunnel on Mac OSX 10.7.3 but I obtain this error:

localtunnel -k ~/.ssh/id_rsa.pub 80
/Library/Ruby/Gems/1.8/gems/net-ssh-2.3.0/lib/net/ssh/transport/session.rb:66:in initialize': Connection refused - connect(2) (Errno::ECONNREFUSED) from /Library/Ruby/Gems/1.8/gems/net-ssh-2.3.0/lib/net/ssh/transport/session.rb:66:inopen'
from /Library/Ruby/Gems/1.8/gems/net-ssh-2.3.0/lib/net/ssh/transport/session.rb:66:in initialize' from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/timeout.rb:53:intimeout'
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/timeout.rb:93:in timeout' from /Library/Ruby/Gems/1.8/gems/net-ssh-2.3.0/lib/net/ssh/transport/session.rb:66:ininitialize'
from /Library/Ruby/Gems/1.8/gems/net-ssh-2.3.0/lib/net/ssh.rb:186:in new' from /Library/Ruby/Gems/1.8/gems/net-ssh-2.3.0/lib/net/ssh.rb:186:instart'
from /Library/Ruby/Gems/1.8/gems/net-ssh-gateway-1.1.0/lib/net/ssh/gateway.rb:74:in initialize' from /Library/Ruby/Gems/1.8/gems/localtunnel-0.3/lib/localtunnel/tunnel.rb:44:innew'
from /Library/Ruby/Gems/1.8/gems/localtunnel-0.3/lib/localtunnel/tunnel.rb:44:in start_tunnel' from /Library/Ruby/Gems/1.8/gems/localtunnel-0.3/bin/localtunnel:47 from /usr/bin/localtunnel:19:inload'
from /usr/bin/localtunnel:19

What's wrong?
Thx!

Owner

progrium commented Feb 29, 2012

I'm not able to reproduce. Are you sure it wasn't an intermittent issue?

Sasha04 commented Mar 1, 2012

sorry but i always have this error. I don't know how to fix it

TheEmpty commented Mar 1, 2012

Sounds like it's your firewall preventing the SSH tunnel.

Owner

progrium commented Dec 1, 2012

Can you try the latest beta version of localtunnel? Check the README for install details.

@progrium progrium closed this Jan 4, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment