system excecute commande on another server code example
Example 1: execute command over ssh
sshpass -p [password] ssh [user]@[ip] -t "python3 example.py"
Example 2: bash how to run remote command
$ ssh USER@HOST 'COMMAND1; COMMAND2; COMMAND3'
sshpass -p [password] ssh [user]@[ip] -t "python3 example.py"
$ ssh USER@HOST 'COMMAND1; COMMAND2; COMMAND3'