I have a Python script call.py
to log in to another machine through ssh and execute another Python script saved on this machine, something like this
# call.py
import os
# log into user@host machine and execute python script
os.system("sshpass -p password ssh user@host '( python3 my_script.py )'")
but when I try to run it I get this error
Illegal instruction (core dumped) ( python3 my_script.py )
I tried a few things:
- If I log into ssh and launch
python3 my_script.py
through the terminal it works - I also tried running the same
call.py
script without the ssh part, so trying to launchmy_script.py
on the same machine and it works
It seems that only the combination of ssh + python inside python that gives me this error. Any pointers on what could cause the error will be very much appreciated.
Edit: I didn't realize it would play a role, but I'm adding now the important detail that the target machine is an Nvidia Jetson board.