I use a PHP script from ISPC website (web111) to establish a connection with ssh2_connect and I want to use the hostkey param. I created a shell user for web111 in ISPC When I connect as shell user for web111 en run keygen I get : bash: keygen: command not found How to allow keygen here?
It's typically in the .ssh folder, unless you gave it a different path. You probably created a jailed SSH user, and keygen is not part of the jail. You can either add keygen to the jail, using jk_cp command, or create a user without jail, or disable the jail for the user you created.