long running ssh function without tying up a term?