Switch `run_ssh` with `run_function`