Fix parameters used to check if ssh-keygen exists to prevent an indefinite hang.
Closes #764
This commit is contained in:
parent
f1b4c1246b
commit
eaf08b337d
1 changed files with 1 additions and 1 deletions
|
|
@ -63,7 +63,7 @@ class SshKey
|
|||
*/
|
||||
public function canGenerateKeys()
|
||||
{
|
||||
$keygen = @shell_exec('ssh-keygen -h');
|
||||
$keygen = @shell_exec('ssh-keygen --help');
|
||||
$canGenerateKeys = !empty($keygen);
|
||||
|
||||
return $canGenerateKeys;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue