Tunneling ssh

Loïc Grenié loic.grenie at gmail.com
Mon Jan 18 22:30:16 UTC 2010

2010/1/18 Sauro Cesaretti <saurocesaretti1983 at gmail.com>:
> Hello Everyone,
> I ned to connect to a computer of a frined that is inside a network
> where he cannot forward any port.
> I was planning to make a tunnel with the small server that I ave in my
> house.
> I have tried with some syntax of the ssh command but I seems that is not
> working.
> Could you give me some indicatons please?
> in my server the port of the ssh service is the standard one: 22 and in
> the other computer it is the same.
> Thanks for your support
> Regards, Sauro

     On the friend's computer:

ssh -L 22: server.home.net

  (where server.home.net is your server) should
  do the trick. To connect to your friend's ssh server, you can

ssh -p 2222 server.home.net

    (from memory, it could be slightly off).

     Hope this helps,


More information about the ubuntu-users mailing list