Handle ssh as a subprocess