Jump to content

SSH with php...


legohead6

Recommended Posts

Well, our school has a firewall, and currently i am just running Putty on my laptop and get around the firewall. this works great, but when my friends want to get in i have to login for them and set it up. what i am wonder is if i can somehow start a SSH connection(to the server the php is running on) with php, and then the user could connect to it in there internet explorer preferences(under proxy settings)

 

could someone tell me if this is possible? if so point me in the right direction...

Link to comment
Share on other sites

Well, our school has a firewall, and currently i am just running Putty on my laptop and get around the firewall. this works great, but when my friends want to get in i have to login for them and set it up. what i am wonder is if i can somehow start a SSH connection(to the server the php is running on) with php, and then the user could connect to it in there internet explorer preferences(under proxy settings)

 

could someone tell me if this is possible? if so point me in the right direction...

 

http://us3.php.net/exec

Link to comment
Share on other sites

i have tried that, i cant get the program to actually start on the computer. i cant make anything start on the localusers computer from a php command... even if i could make a php command that opens notepad i would be happy

 

tried this

<?php
$WshShell = new COM("WScript.Shell");
$oExec = $WshShell->Run("notepad.exe", 7, false);
?>

 

and i get

Fatal error: Cannot instantiate non-existent class: com in ******/proxy.php on line 2

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.