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

在远程服务器上执行本地的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]#

posted on 2017-09-24 22:13  寒星12345678999  阅读(3407)  评论(0编辑  收藏  举报