ssh keys – ssh-keyscan does not read .ssh / config?

I'm using ssh-keyscan in a shell script to accept keys for hosts. Hosts are identified by hostname but not in / etc / hosts. They're in ./ssh/config So I can ssh but I can not whistle etc.

It seems that ssh-keyscan is not using the .ssh / config File and that seems funny.

Can anyone confirm that this happens to them?

Real question: Does anyone have a way to make ssh-keyscan use ~ / .ssh / config?