R: R: Tunneling ssh

Sauro Cesaretti saurocesaretti1983 at gmail.com
Tue Jan 19 13:38:28 UTC 2010


I made other test.
Infact with -L I was able to open the ssh session but later the other
computer couldn't coonect.
After that I have tried with -R and it worked.
Regards, Sauro


-----Messaggio originale-----
Da: ubuntu-users-bounces at lists.ubuntu.com
[mailto:ubuntu-users-bounces at lists.ubuntu.com] Per conto di Rashkae
Inviato: martedì 19 gennaio 2010 14.32
A: Ubuntu user technical support,not for general discussions
Oggetto: Re: R: Tunneling ssh


Sauro Cesaretti wrote:
> Ok, thanks so much.
> It works fine .
> Regards, Sauro
> 
> 
> -----Messaggio originale-----
> Da: ubuntu-users-bounces at lists.ubuntu.com
> [mailto:ubuntu-users-bounces at lists.ubuntu.com] Per conto di Loïc
Grenié
> Inviato: lunedì 18 gennaio 2010 23.30
> A: Ubuntu user technical support,not for general discussions
> Oggetto: Re: Tunneling ssh
> 
> 
> 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:127.0.0.1:2222 server.home.net
> 
>   (where server.home.net is your server) should
>   do the trick. To connect to your friend's ssh server, you can
>   do
> 
> ssh -p 2222 server.home.net
> 
>     (from memory, it could be slightly off).
> 
>      Hope this helps,
> 
>           Loïc
> 

Allright, a question for Loïc, if you don't mind.

I know better than to doubt your word, but I can't figure out how that
command works.  As far as I can tell, -L forwards the port from the
computer you are connecting from.  Would not -R *:22:127.0.0.1:2222 be
the only way to open the reverse tunnel as described?

-- 
ubuntu-users mailing list
ubuntu-users at lists.ubuntu.com
Modify settings or unsubscribe at:
https://lists.ubuntu.com/mailman/listinfo/ubuntu-users





More information about the ubuntu-users mailing list