How to run a command that requires sudo via SSH

How to run a command that requires sudo via SSH
With SSH you can run commands on remote machines, even if the command requires sudo privileges.