#! /bin/sh while read host; do { ssh $host "ssh-keygen -r$host" >$host.sshfp.new mv $host.sshfp.new $host.sshfp; }& done <