#!/bin/bash

ip_list=(10.20.1.133 10.20.1.134)

for ip in "${ip_list[@]}"; do

    echo "yes
    yes
    " | scp fuse-overlayfs-1.7.1-2.x86_64.rpm slirp4netns-1.2.0-1.oe2203sp2.x86_64.rpm root@${ip}:/root/
  done