ssh-keyscan

File Read

The file content is actually parsed so only a part of each line is returned as a part of an error message.

ssh-keyscan -f /path/to/input-file