SSH
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:
parent
55cadc868d
commit
aae86ea054
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue