run remote host command using ssh code example
Example 1: ssh run single command
ssh -t username@host 'top'
Example 2: execute command over ssh
sshpass -p [password] ssh [user]@[ip] -t "python3 example.py"
ssh -t username@host 'top'
sshpass -p [password] ssh [user]@[ip] -t "python3 example.py"