wowxunyl
9/18/2019 - 1:10 PM

add_known_hosts.sh

for line in $(cat hosts)
do
    ssh-keygen -f "/root/.ssh/known_hosts" -R $line
    ssh-keyscan $line >> /root/.ssh/known_hosts
done