Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PHP & SSH scripts

Status
Not open for further replies.

Trancemission

Technical User
Joined
Oct 16, 2001
Messages
108
Location
GB
Hello,

I am currently looking at a remote management system for hardware firewalls.

These can be managed via command line through an SSH connection. An idea is automating tasks via PHP scripts and Web front end.

I thought it would be a reletvity simple task but not so at the moment. I thought maybe a simple SSH client module for PHP module would exist but I cannot find one.

Anybody have any ideas how this can be achieved or any pointers.

Many Thanks

Trancemission
=============
If it's logical, it'll work!
 
The lack of an SSH module or class for PHP is not suprising.

SSH is a continuous protocol. You connect, login, and issue multiple commands and receive multiple responses through that one connection. HTTP is discontinuous. You query a page, which temporarily opens a connection to the sever. That connection is closed once the page is returned.

In short, HTTP and SSH will not play well together.

If you are going to issue simple commands that can be scripted, you could issue them through external invokation of ssh.

Want the best answers? Ask the best questions: TANSTAAFL!
 
The best way to do it, would be to use a JAVA SSH program, convert it to Applet, and then change the front end...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top