It looks like forking or shelling out are your best options.
In reply to Re^7: Net::SSH2 exec timeout by BrowserUk in thread Net::SSH2 exec timeout by £okì