Javier Barber
Senior Sysadmin Freelancer
© 2020 All rights reserved.
TUNEL MEDIANTE SSH
#ssh -vvv -L puerto_tunel:IP_Tunel:puerto_destino IP_destino
#ssh -vvv -L 80:172.22.44.108:80 172.22.44.106
La conexión se realizará posteriormente a http://localhost
SERVIDOR <——–> TUNEL <——–> CLIENTE
(P.ej: Servidor X)
(Puerto 6000)
ssh -R puerto_tunel:servidor:puerto_servidor -f -N cliente
Desde la máquina local hacemos:
#ssh -L puerto_local:maquina_tercera:puerto_maquina_tercera usuario@maquina_segunda_con_acceso_a_tercera
#ssh -L 80:172.19.5.2:80 [email protected]
Luego haremos las conexiones a http://localhost