I have an SSH server set up on a machine which, unfortunately, changes its IP address quite often due to DHCP. I've worked around it with a small script which iterates over all the addresses for a subnet and tries to connect to each machine. The downside is that it's quite slow.
Is it possible to use the ssh command line client to connect to a machine in a subnet only if the server key matches a specific one?
