twincling  

Re: [twincling] SSH Tunelling

Ravi chandra padmala
Sun, 27 Dec 2009 09:19:38 -0800

On Sun, Dec 27, 2009 at 4:45 AM, Manohar Vanga <manohar.va...@gmail.com> wrote:
> Hi,
>
> I am currently behind a firewall that blocks port 22, thus preventing me
> from using Git with sourceforge. On my request, the ISP has opened up port
> 22666 for me so that I can access an SSH account on a more open server
> (which is running the SSH daemon on port 22666). Is there any way to tunnel
> my port 22 traffic to port 22666 instead and configure the server to simply
> forward my traffic into the internet?
>
> Sending a secure request (eg. git push):
> Me (port 22666) ---> (port 22666) Open Server (port 22) ---> Internet
>
> Receiving a secure reply:
> Internet ---> (port 22) Open Server (port 22666) ---> (port 22666) Me
>
> Can it be done?
Yes

>
> Thanks
> Manohar Vanga
>

Try ssh with -L
http://www.openbsd.org/cgi-bin/man.cgi?query=ssh

In your case...
ssh -L 12345:sf.net:22 un...@openserver
and while thats running you can connect to port 12345 on localhost as
if it were port 22 on sf.net

--
Have fun,
Ravi Chandra

---------------------------------------------------------------------
To unsubscribe, e-mail: twincling-unsubscr...@twincling.org
For additional commands, e-mail: twincling-h...@twincling.org