https://www.web-workers.ch/index.php/2016/09/14/how-to-execute-bash-script-on-a-remote-host-and-get-the-output-locally/
How to execute bash-script on a remote host and get the output locally