Why are you using a reference to the object instead of the object?
In reply to Re^3: Net::SSH2 exec timeout by BrowserUk in thread Net::SSH2 exec timeout by £okì