You are here: php ssh2 « PHP Programming Language « IT news, forums, messages
php ssh2

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
)

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация