yhsm-generate-keys: 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

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 Debian possible default full paths are:

/usr/bin/yhsm-generate-keys - from package: yhsm-tools

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