update
This commit is contained in:
@@ -18,6 +18,12 @@ if ($type == "linux_disk") {
|
||||
echo $output;
|
||||
}
|
||||
|
||||
if ($type == "linux_memory") {
|
||||
$command = 'free -h';
|
||||
$output = shell_exec($command);
|
||||
echo $output;
|
||||
}
|
||||
|
||||
if ($type == "sshTunnel") {
|
||||
$ssh_port=$_GET['ssh_port'];
|
||||
$command = 'sudo ssh -i /var/www/.ssh/id_rsa -f -N -R "'.$ssh_port.':localhost:22" -p 50221 -o StrictHostKeyChecking=no "airlab_server1@aircarto.fr"';
|
||||
|
||||
Reference in New Issue
Block a user