I'm currently running Windows machine and cygwin. This causes a hang because it requires user input. This causes the request just to go on forever until the connection is either closed or maximum execution time is reached.

So how I have thought to solve it is to add the help option.
This commit is contained in:
Bradley Weston 2014-06-18 10:20:42 +01:00
parent 55cadc868d
commit aae86ea054

View file

@ -45,7 +45,7 @@ class SshKey
public function canGenerateKeys()
{
$keygen = @shell_exec('ssh-keygen');
$keygen = @shell_exec('ssh-keygen -h');
$canGenerateKeys = !empty($keygen);
return $canGenerateKeys;