lots of changed, though it'll probably be all backed-out because
[configmanager.git] / lib / genericssh.plugin.php
index 1842d6d..428d34d 100644 (file)
@@ -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);