SSH can be used to execute commands directly.
ssh user@host ls
Will execute the ls command in the host.