Execute command in a remote machine via ssh

SSH can be used to execute commands directly.

ssh user@host ls

Will execute the ls command in the host.