ssh 远程关机工作笔记20130608

#!/bin/sh

for ip in `cat ip.txt`

do

ssh $ip <<EOF

echo "{$ip} shutdown now..."

init 0

EOF

done


ssh 192.168.1.216 -p10088<<EOF

echo "shutdown 192.168.1.216 now...."

init 0

EOF


你可能感兴趣的:(ssh)