Use net-ssh with keep alive. Set server keep alive to 60

This will help avoid dropped connections during long processes.