while read line
do ./sshpass -p 密码 ssh [email protected]$line “ls”
done<./backup
while read line ;do /usr/bin/sshpass -p 密码 ssh [email protected] “ls”;
done <./ip.list
for i in `cat ip.list` ;do /usr/bin/sshpass -p 密码 ssh [email protected] “ls”;
done
/usr/bin/sshpass -p 密码 scp file 128.199.114.243:/root 复制文件
/usr/bin/sshpass -p 密码 ssh [email protected] “ls” 执行命令
时间: 2024-10-13 16:08:06