tunel

Peter Ronai peter.ronai na dionach.com
Čtvrtek Říjen 3 12:08:13 CEST 2002


On Thu, 2002-10-03 at 10:14, Leos Literak wrote:
> Ahoj,
> 
> potrebuju pustit na chvili jednoho cloveka na svuj
> desktop, ktery je za firewallem. Tak me napadlo docasne
> otevrit tunel skrze ssh a verejne dostupny server:
> 
>            22    3333            3333
> localhost <------->server.com <----->external
> 
> 
> na localhostu jsem tedy spustil:
> 
> ssh -L3333:server.com:22 server.com
> 
> cimz jsem chtel forwardovat vsechen traffic
> z server.com:3333 na localhost:22.

-L je na tunel z lokalu na remote
to co zadavate robi v praxi to, ze ak skusite ssh 127.0.0.1 -p 3333 tak
sa prihlasite na server.com cez ssh na porte 22

ak chcete to co popisujete, doporucujem pouzit flag -R asi nejak podobne
ako toto:

ssh -R 3333:127.0.0.1:22 server.com

dz




*****************************************************************************
Disclaimer: This e-mail and any attachments are confidential. 

It may contain privileged information and is intended for the named 
addressee(s) only. It must not be distributed without Dionach Ltd consent.
If you are not the intended recipient, please notify the sender immediately
and destroy this e-mail. 

Any unauthorised copying, disclosure or distribution of the material 
in this e-mail is strictly forbidden. Unless expressly stated, opinions 
in this e-mail are those of the individual sender, and not of Dionach Ltd.
*****************************************************************************

______________________________________________________________________
This message has been checked by Dionach for all known viruses using
MessageLabs Virus Scanning Service. For further information visit
http://www.dionach.com


Další informace o konferenci Linux