I have a quick question as to how to address a problem, whether it is even doable, and what tools are out there that may help me solve this problem. I need to be able to deploy a secure terminal emulator through the web. My idea is: "it should be possible using mod_perl to write a handler, that when Apache receives a request for /foo/ssh_resource it creates a tunnel between the client that connected (a modified SSH applet that sends the GET request, and then drops down into the SSH protocol) and a SSH daemon on the internal network somewhere." My question is twofold:
A) is this doable? Is it possible to hijack an HTTP request after the GET in Apache (most likely using mod_perl) and basically connect it to a SSH daemon? (for ease on this first iteration, the SSH daemon can be on the localhost on an unblocked port to connections comming *from* the localhost)
b) has anyone does this before? can I get some pointers to tools? how would I go about this?
Thanks in advance!