run comands using ssh remmotley code example
Example 1: ssh run single command
ssh -t username@host 'top'
Example 2: bash how to run remote command
$ ssh USER@HOST 'COMMAND1; COMMAND2; COMMAND3'
ssh -t username@host 'top'
$ ssh USER@HOST 'COMMAND1; COMMAND2; COMMAND3'