SSH PHP

This is a discussion on SSH PHP within the alt.comp.lang.php forums, part of the PHP Programming Forums category; Does you now evereone about programing ssh for configure ethernet swith DES-3526 .If you now somewone who can help ...


Go Back   Usenet Forums > PHP Programming Forums > alt.comp.lang.php

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-05-2007
Konstantyn
 
Posts: n/a
Default SSH PHP

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?
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 01:20 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0