返回顶部

本机远程主机的脚本执行

将本机的脚本在远程主机执行

 

#ssh 10.0.0.6 bash < /root/test2.sh  {test2.sh------>hostname  -I}

10.0.0.6s Password:

 

 

 

将远程主机上脚本在本机上运行

 

#ssh 10.0.0.7  /data/test.sh

10.0.0.7s Password:

posted @ 2020-07-23 21:12  九尾cat  阅读(224)  评论(0)    收藏  举报