Execute remote python script via SSH

前端 未结 4 617
不知归路
不知归路 2021-01-31 05:14

I want to execute a Python script on several (15+) remote machine using SSH. After invoking the script/command I need to disconnect ssh session and keep the processes running in

4条回答
  •  清酒与你
    2021-01-31 05:40

    This might work, or something similar:

    ssh user@remote.host nohup python scriptname.py &
    

    Basically, have a look at the nohup command.

提交回复
热议问题