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

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

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

相关文章:

  • 2021-12-15
  • 2021-10-19
  • 2021-11-12
  • 2022-12-23
  • 2022-02-28
猜你喜欢
  • 2021-08-16
  • 2021-10-19
  • 2021-11-22
  • 2022-12-23
相关资源
相似解决方案