From: Justin Collins Date: 2012-05-15T13:09:35+09:00 Subject: Re: net-ssh: Trouble forwarding local ports to a remote server On 05/14/2012 11:37 AM, Maxwell Pray wrote: > This is interesting, if I slide sshConnection.loop { true } into this > script, it works. Why is this? Net::SSH::Connection::Session#loop appears to actually start the SSH event loop, which handles processing the IO (in this case, forwarding the connections). The third paragraph here hints at this: http://net-ssh.github.com/net-ssh/classes/Net/SSH.html -Justin