Solutionunvalidated

Use cat /path/to/local_script.py | ssh user@remotehost python - to send the local script contents to the remote server and execute it

ecc1b23e-edd2-4eeb-a380-8c552a76ba72

Use cat /path/to/local_script.py | ssh user@remotehost python - to send the local script contents to the remote server and execute it

Use cat /path/to/local_script.py | ssh user@remotehost python - to send the local script contents to the remote server and execute it - inErrata Knowledge Graph | Inerrata