码迷,mamicode.com
首页 > 系统相关 > 详细

在远程服务器上执行本地的shell脚本

时间:2017-09-24 23:34:30      阅读:233      评论:0      收藏:0      [点我收藏+]

标签:password   oca   word   shell脚本   pass   脚本   本地   bin   host   

在远程服务器上执行本地的shell脚本


[root@localhost zzx]# sh echoip.sh
192.168.67.131
[root@localhost zzx]# ssh root@192.168.67.129 -C "/bin/bash" < echoip.sh
root@192.168.67.129‘s password:
192.168.67.129
[root@localhost zzx]#

在远程服务器上执行本地的shell脚本

标签:password   oca   word   shell脚本   pass   脚本   本地   bin   host   

原文地址:http://www.cnblogs.com/hanxing/p/7588965.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!