<?php
$connection = ssh2_connect("s witch adress", 22);
ssh2_auth_passw ord($connection ,"user","testin g");
$stream = ssh2_shell($con nection, 'vt100');
?>
this script hang-up
)
when a try
<?php
$connection = ssh2_connect('s hell.example.co m', 22);
ssh2_auth_passw ord($connection , 'username', 'password');
$stream = ssh2_exec($conn ection, '/usr/local/bin/php -i');
?>
i have error message )cant ssh_exec on remote server
what can a try do write data to te ethernet switch
My task is write allow mac adress on swhitch port
)
$connection = ssh2_connect("s witch adress", 22);
ssh2_auth_passw ord($connection ,"user","testin g");
$stream = ssh2_shell($con nection, 'vt100');
?>
this script hang-up
)
when a try
<?php
$connection = ssh2_connect('s hell.example.co m', 22);
ssh2_auth_passw ord($connection , 'username', 'password');
$stream = ssh2_exec($conn ection, '/usr/local/bin/php -i');
?>
i have error message )cant ssh_exec on remote server
what can a try do write data to te ethernet switch
My task is write allow mac adress on swhitch port
)