X-Git-Url: http://git.pjr.cc/?p=configmanager.git;a=blobdiff_plain;f=lib%2Fgenericssh.plugin.php;h=428d34d9c3e90e5db5cbb15f36d2c0263d25abab;hp=1842d6d982718fd7a94365c1b724d52042b6dc7e;hb=779ccbdea52a495b9150c12c6d69af2aa370d8f1;hpb=843363a8f4dca2460800d5c3c72b559cce15c99f diff --git a/lib/genericssh.plugin.php b/lib/genericssh.plugin.php index 1842d6d..428d34d 100644 --- a/lib/genericssh.plugin.php +++ b/lib/genericssh.plugin.php @@ -3,6 +3,12 @@ function genericssh_ssh($host, $username, $password, $command) { $connector = ssh2_connect("$host"); + error_log("attempting connect to $host with $username"); + if($connector) { + error_log("connector true"); + } else { + error_log("connector false"); + } ssh2_auth_password($connector, "$username", "$password"); $stream = ssh2_exec($connector, "$command"); stream_set_blocking($stream, true);