[Gllug] Can I get this to work?

Richard Jones rich at annexia.org
Sat Jan 17 14:33:26 UTC 2004


On Sat, Jan 17, 2004 at 02:15:34PM +0000, Adrian McMenamin wrote:
> However I can use the provided browser (which has some sort of proxy 
> connection - which I can guess at) to connect to any port on any real world 
> machine eg attempting to access http://mymachine.org.uk:22 will put an sshd 
> version string up in my browser window etc.
>
> Now, all I want to do is connect to my box at home and run kmail over port 
> forwarded X. I have an X server on the client side (cygwin). Can I solve 
> this? Asking for changes in the firewall configuration isn't an option.

I think you'll find that a simple approach won't work.

What's happening when you connect normally to port 22 (without any
firewalls) is this:

	Client		Server
	------		------
		<----	sends SSH ident string
	sends SSH request pkts ---->
		<-----	replies
	etc.

In the case you saw above, something like this happens:

	Proxy			Server
	-----			------
	GET / HTTP/1.1 ----->
		<----	sends SSH ident string
	(Proxy assumes this must be an old HTTP/0.9 implementation, so
	uses the SSH ident string as the body of the document)
		<----	reads GET / command and issues an error, closing
			the connection

So you didn't really get an ssh connection there, in any meaningful
form.

Probably your best bet then is to try using a "TCP over HTTP" product,
although this is (a) going to be slow and (b) requires you to install
a CGI script on your home machine.  A quick Google search turns up
http://freshmeat.net/projects/rutil_tcpcgi/ .  Let us know how it
goes!

There's also a commercial product for this (if you can bear to run
Java), called JSockets:
http://www.cariboulake.com/product/jsockets.html

Rich.

-- 
Richard Jones. http://www.annexia.org/ http://freshmeat.net/users/rwmj
Merjis Ltd. http://www.merjis.com/ - improving website return on investment
If I have not seen as far as others, it is because I have been
standing in the footprints of giants.  -- from Usenet
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list