sábado, 31 de mayo de 2008

Túneles locales SSH



1.Instalar:

Servidor VNC destino: apt-get install tightvncserver
Intermedio: apt-get install ssh (si no está instalado)
Cliente: apt-get install ssh (Si no está instalado)

2.Ejecutar:

Intermedio: /etc/init.d/ssh restart

Servidor VNC destino:
tightvncserver :1 -geometry 800x600 -depth 24 ->puerto está escuchando vnc (5901).

Cliente:
ssh –f –L 5902:158.49.92.12:5901 root@158.49.92.11 sleep 7200
-> creado el túnel ssh

Para probar vnc por ssh en el cliente basta con xtightvncviewer localhost:2
o abrir kdrc
y ejecutar vnc:/localhost:2

No hay comentarios:

Publicar un comentario