ssh: directly run the command if the host is localhost