user541597
user541597

Reputation: 4345

SSH session through PHP

I am having issues with making an ssh session through PHP. I have looked high and low and cannot figure out how to do this. I see on one of your posts you state that you are able to make this connection, I would greatly appreciate the help. I have included a file called 'class.shell2.php' which has the basic functions I need which are to connect to the ssh server and send commands to the terminal. However when I try to connect to the server it give me an error "Fatal error: Call to undefined function ssh2_connect() in /*/**/**/class.shell2.php on line 62" Please help me.

Thank you

Upvotes: 0

Views: 562

Answers (1)

Lee
Lee

Reputation: 13542

The SSH2 functions (including ssh2_connect()) are not part of the base php distribution. They're available through PECL.

Check the "Installing/Configuring" page for SSH2 on the PHP documentation site for info about how to install this module.

Upvotes: 3

Related Questions