I administer a lot of hosts, and every time I
ssh into a new batch for the first time, it is tedious to tell my secure shell client
yes for each and every host that I accept the host key fingerprint for adding into
~/.ssh/known_hosts. If we accept as a given that I am confident that there are in fact no compromised host keys, is there any way to automate this? I do not want to disable key checking for subsequent connections.
For the sake of discussion, let's say that I have a list of all hosts in a text file,