delete debug file

This commit is contained in:
mercury
2022-10-07 20:13:26 +04:00
parent b47450cd25
commit 0f83f21a2b
-20
View File
@@ -1,20 +0,0 @@
<?php
$c = ssh2_connect('wg', 22);
ssh2_auth_pubkey_file($c, 'root', '/ssh/key.pub', '/ssh/key');
function ssh($c, $cmd)
{
$stream = ssh2_exec($c, $cmd);
stream_set_blocking($stream, true);
$data = "";
while ($buf = fread($stream, 4096)) {
$data .= $buf;
}
fclose($stream);
return $data;
}
$data[] = ssh($c, 'wg');
// $data[] = ssh($c, 'wg-quick up wg0');
var_dump($data);