General-purpose SSH operations — exec, upload, wait for connection (https://github.com/keeb/swamp-ssh)