I want to gather the host keys but ssh-keyscan command is not found on my linux. Anyway to achieve the same with some other commands without adding this command explicitly.
I am running with Wind River Linux 8.0.
You may check before which keys are available via
ssh <host> -Q key-plain. At least you can gather the host key in a visualized way via
ssh <host> -o VisualHostKey=yes. I am not sure if this is reversible.