PHP app using SSH

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
padmx
Forum Newbie
Posts: 3
Joined: Tue Sep 20, 2005 6:36 pm

PHP app using SSH

Post by padmx »

Hi, here is my question:

I have to develop a PHP app that needs to work with a Linux based system
that has a Client/Server arquitecture. The client that is working right now is based in
Java and this client connects with the server thru sockets, and the client sends all the
commands with SSH.

So, the question is: is it possible to program a PHP app that can send SSH
commands to the Linux server?

I don´t know much about Linux, that´s why I´m asking..

Thanks in advance..

sorry for my english, I´m from Mexico..

Padmx
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

http://ca.php.net/ssh

more specifically :
ssh2_connect() -- Connect to an SSH server
ssh2_exec() -- Execute a command on a remote server
Post Reply