#!/bin/bash
# 远程执行脚本
ssh root@192.168.133.10 > /dev/null 2>&1 << eeooff
echo "111111"
exit
eeooff
echo done!
# 注:先创建ssh远程免密连接
#!/bin/bash
# 远程执行脚本
ssh root@192.168.133.10 > /dev/null 2>&1 << eeooff
echo "111111"
exit
eeooff
echo done!
# 注:先创建ssh远程免密连接