ssh-keyscan: command not found

Have You tried accessing the binary with the full path?

Maybe Your $PATH variable doesn't contain the default paths? echo $PATH should give something like:

[root@server ~]# echo $PATH
/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin

If it's empty, You may set the PATH variable with this command

export PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin"

On CentOS possible default full paths are:

/usr/bin/ssh-keyscan - from package: openssh-clients

You may install the required package with command yum install {package}

On Debian possible default full paths are:

/usr/bin/ssh-keyscan - from package: openssh-client

You may install the required package with command apt-get install {package}
Error in other languages:
ssh-keyscan: bevel nie gevind nie
ssh-keyscan: comandă negăsită
ssh-keyscan: comando não encontrado
ssh-keyscan: commande introuvable
ssh-keyscan: command not found
ssh-keyscan: käsku ei ole
ssh-keyscan: không tìm thấy lệnh
ssh-keyscan: komanda nerasta
ssh-keyscan: Kommando nicht gefunden.
ssh-keyscan: kommandot finns inte
ssh-keyscan: komut yok
ssh-keyscan: nie znaleziono polecenia
ssh-keyscan: níor aimsíodh an t-ordú
ssh-keyscan: no se encontró la orden
ssh-keyscan: no s'ha trobat l'ordre
ssh-keyscan: opdracht niet gevonden
ssh-keyscan: parancs nem található
ssh-keyscan: perintah tidak ditemukan
ssh-keyscan: príkaz nenájdený
ssh-keyscan: příkaz nenalezen
ssh-keyscan: команда не найдена
ssh-keyscan: командата не е открита
ssh-keyscan: 命令找不到
ssh-keyscan: コマンドが見つかりません