fix hostname in public key
only sleep when NOT doing a dry run