I've seen that it's possible to run scripts stored locally on a remote server eg.: run a command:
ssh USER@HOST 'COMMAND'
run a script
ssh root@192.168.1.1 'bash -s' < script.sh
What about doing it on the oppisite way?
Is it possible to get a script stored on a remote server and execute it locally?