windows脚本bat远程调用linux的sh脚本

安装plink

D:softwarePuTTYplink.exe -batch -pw 123456 root@192.168.1.107 "/home/zhong-auth.sh"
@cmd.exe
exist
-batch禁用所有交互式的提示
如果不加上这个参数,会让你确认身份验证
原文地址:https://www.cnblogs.com/suruozhong/p/12097163.html