SSH proxy – Running SSH over blocked ports, SSH on mobile phones, SSH over HTTP

Imagine yourself in a scenario where you’re a behind a firewall and cannot access the SSH, or you’re controlling your servers via your mobile. Here’s a quick way to manage your servers through HTTP via command line. You can fire scripts, run shell commands etc.

Be careful, it will not ask you any username/password and runs with username Apache/SYSTEM.

The script is tested over linux and windows servers!



All you need is an Apache server with PHP installed. Just create a PHP file and insert the following code.

Put in a comment if this really helped you!


<title>HussuLinux SSH over HTTP…</title>
<form id=”form1″ name=”form1″ method=”post” action=””>
<label>Enter Command
<input type=”text” name=”cmd” />
<input type=”submit” name=”Submit” value=”Submit” />

Output :
<textarea cols=”100″ rows=”30″>
$cmd = $_POST[‘cmd’];
if ($cmd==””)
//Do Nothing!
echo htmlspecialchars((shell_exec($cmd)));


Join the Conversation


  1. To all the people making silly comments about security loophole:
    Here’s what I have to say

    I suppose & assumed you guys were intelligent. I was a insane & I thought you’d add proper security measures to this mechanism before you set it up. The file is actually useful, but you’d have to be a pretty big douchebag not to think twice before you upload it.

    “Be careful, it will not ask you any username/password and runs with username Apache/SYSTEM.”

    I’d suggest people read first, then snap hysterically if necessary.

    If you want to add some security measure,how long does it take to add a username & password?!

    How about HTTP authentication?! Even Twitter uses it… !!

    Please don’t post such silly comments, they are all gonna be thrashed. Thx!

  2. I use Astrill it blows up the great china firewall πŸ˜€
    I can access Facebook,Youtube Twitter and almost any site that is blocked πŸ˜€ too πŸ˜€
    Also they support Iphone/Androids which is a plus point.
    As low as $10.95 a month πŸ˜€
    its better and reliable than free VPNS !!

Leave a comment

Your email address will not be published. Required fields are marked *