I have a script which runs and makes the assumption that the remote host key is in known_hosts when running some commands which use SSH.
I would like to know if there is some command that can be ran that will output the remote host key status before these scripts fire. I think there must be something more ideal than trying to start an 'ssh' session though?