rxbook

我在本地的shell脚本中,想要直接执行远程服务器的一个shell脚本:

ssh -l root 192.168.1.1 "/data/t.sh"

记得提前给远程服务器的 /data/t.sh 执行: chmod +x t.sh

分类:

技术点:

相关文章: