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
https://forums.phpfreaks.com/topic/131872-ssh-with-php/
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
https://forums.phpfreaks.com/topic/131872-ssh-with-php/#findComment-685101
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
https://forums.phpfreaks.com/topic/131872-ssh-with-php/#findComment-685123
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.