按照http://progrium.com/localtunnel/和其他地方:
gem install localtunnel
localtunnel -k ~/.ssh/id_rsa.pub 3000
我得到错误:
/path/to/gems/net-ssh-2.6.7/lib/net/ssh/transport/packet_stream.rb:103:in `block in next_packet': connection closed by remote host (Net::SSH::Disconnect)
无论我是否包括密钥,或者尝试不同的端口号,即
localtunnel 3000
有什么想法吗?
localtunnel已经关闭了一段时间,现在
- https://github.com/progrium/localtunnel/issues/105
- https://github.com/progrium/localtunnel/issues/98
请尝试ngrok。(这两个项目据说在不久的将来会合并。)