If you want to execute a Shell Script, that connects to another server and executes another script, this is the nomenclature. Make sure to include the && between each command.
ssh root@$SERVERIP 'cd /PATH/TO/SHELL SCRIPTÂ && ./SCRIPT.sh
If you want to execute a Shell Script, that connects to another server and executes another script, this is the nomenclature. Make sure to include the && between each command.
ssh root@$SERVERIP 'cd /PATH/TO/SHELL SCRIPTÂ && ./SCRIPT.sh