|
Posted by Konstantyn on 07/05/07 15:28
<?php
$connection = ssh2_connect("switch adress", 22);
ssh2_auth_password($connection,"user","testing");
$stream = ssh2_shell($connection, 'vt100');
?>
this script hang-up
)
when a try
<?php
$connection = ssh2_connect('shell.example.com', 22);
ssh2_auth_password($connection, 'username', 'password');
$stream = ssh2_exec($connection, '/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
)
[Back to original message]
|