<分区> 分区>
Possible Duplicate:
Execute arbitrary python code remotely - can it be done?
我写了一个内存使用检查函数,它在一台服务器上运行良好(比如 10.100.110.10)。
但是我需要从 10.100.110.10 在 10.100.110.11 上远程运行相同的脚本。我可以从 10.100.110.10 ssh 到 10.100.110.11。有什么方法可以使用内置模块的 python 来实现吗?
我不能使用任何新模块,例如 Paramico 和 Unix 命令
ssh -n user@10.100.110.11 "df -m"
工作正常。 如果不可能,我如何使用内置的 Python 模块通过 ssh 连接到 10.100.110.11?
