本机远程主机的脚本执行
将本机的脚本在远程主机执行
#ssh 10.0.0.6 bash < /root/test2.sh {test2.sh------>hostname -I}
10.0.0.6’s Password:
将远程主机上脚本在本机上运行
#ssh 10.0.0.7 /data/test.sh
10.0.0.7’s Password:
将本机的脚本在远程主机执行
#ssh 10.0.0.6 bash < /root/test2.sh {test2.sh------>hostname -I}
10.0.0.6’s Password:
将远程主机上脚本在本机上运行
#ssh 10.0.0.7 /data/test.sh
10.0.0.7’s Password: