From a4f111deff4d0bc9283f35697ddafbf810416e99 Mon Sep 17 00:00:00 2001 From: Bradley Weston Date: Wed, 18 Jun 2014 10:20:42 +0100 Subject: [PATCH] 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. --- PHPCI/Helper/SshKey.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PHPCI/Helper/SshKey.php b/PHPCI/Helper/SshKey.php index 77c4a64a..4c625ff4 100644 --- a/PHPCI/Helper/SshKey.php +++ b/PHPCI/Helper/SshKey.php @@ -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;