Run local python script on remote server

前端 未结 5 1804
清歌不尽
清歌不尽 2020-11-30 20:02

I\'m debugging some python script that must run on my virtual machine. And, I prefer to edit the scripts locally(outside of virtual machines). So I find it\'s tediou

5条回答
  •  孤城傲影
    2020-11-30 20:13

    You can do it via ssh.

    ssh user@192.168.1.101 "python ./hello.py"

    You can also edit the script in ssh using a textual editor or X11 forwarding.

提交回复
热议问题