--- /dev/null
+<?php
+
+function genericssh_ssh($host, $username, $password, $command)
+{
+ $connector = ssh2_connect("$host");
+ ssh2_auth_password($connector, "$username", "$password");
+ $stream = ssh2_exec($connector, "$command");
+ stream_set_blocking($stream, true);
+
+ $config = stream_get_contents($stream);
+
+ return $config;
+}
+
+?>
\ No newline at end of file