You are here: SSH PHP « PHP Language « IT news, forums, messages
SSH PHP

Posted by Konstantyn on 07/05/07 15:43

Does you now evereone about programing ssh for configure ethernet swith
DES-3526 .If you now somewone who can help me give me hi`s malL.
t would be great if
you could help me out
My problem is:
a connected to switch using ssh2_auth_password($connection,
'username', 'secret'))
sucsessfully
but a can`t
open shell ssh2_shell($connection, 'vt100' );
and a cant execute comands using ssh2_exec($connection, 'comand');
What can i do to write data to the switch&

> This is a simple example
> > <?php
> >
> > $connection = ssh2_connect("ethernet switch adress", 22);
> > ssh2_auth_password($connection,"login","pass");
> >
> > $stream = ssh2_shell($connection, 'vt100');
> >
> > ?>
> >
> > this is not work
> > and when i use ssh2_exec($connection, 'comand');
> > a have error message
> > can execute comands
> >
> > What can i do for write commands to ethernet switch?

"I have error message"




Can you help me?

 

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

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