To run a remote command on GNU/Linux or another UNIX variant, you must be able to access the remote server through ssh
In order to run the remote command type:
$ ssh servidor-remoto command
For example, to list the contents of the directory root in the remote server type:
$ sudo ssh servidor-remoto ls - l
Recommended readings
-man ssh