<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.28.3">
</HEAD>
<BODY>
El mi&#233;, 03-11-2010 a las 21:45 +0100, Juanjo escribi&#243;:<BR>
<BLOCKQUOTE TYPE=CITE>
    El mi&#233;, 03-11-2010 a las 16:52 -0300, Guido Ignacio escribi&#243;:<BR>
    <BLOCKQUOTE TYPE=CITE>
        no hace tanto lio para hacer un tunel para que vnc conecte, simplemente si es de Linux a Linux, en la pc cliente pone:<BR>
        <BR>
        <BR>
        #ssh usuario@host_a_conectarse -L Puerto_local_cliente]:[localhost]:[Puerto_VNC_del_Servidor]<BR>
        <BR>
        <BR>
        A modo de Ej:<BR>
        <BR>
        <BR>
        Tengo el servidor &quot;<A HREF="http://ejemplo.com">ejemplo.com</A>&quot; y que tiene el puerto 5001 abierto para que se conecten por VNC.<BR>
        <BR>
        <BR>
        Para hacer un tunnel desde cualquier pc, lo que ten&#233;s que hacer es:<BR>
        <BR>
        <BR>
        #ssh <A HREF="mailto:usuario@ejemplo.com">usuario@ejemplo.com</A> -L 8080:localhost:5001<BR>
        <BR>
        <BR>
        Esto hace un tunnel entre el puerto local 8080 del cliente y tu servidor en el 5001<BR>
        <BR>
        <BR>
        Al hacer esto, con el vnc viewer por ej, lo abris y en host de conexion pones localhost:8080 y al conectar, se conectar&#225; al tunnel y redirigir&#225; el puerto al 5001, llegnado a tu servidor.<BR>
        <BR>
        <BR>
        Si es desde un windows simplemente lo mismo usando putty....si hace falta te explico<BR>
        <BR>
        <BR>
        Si no se entendi&#243; o no pudiste avisame y lo vemos de vuelta...espero haber sido claro<BR>
        <BR>
        <BR>
        <BR>
        <BR>
        <BR>
        ---<BR>
        Este mensaje no contiene virus, porque ha sido creado con GNU/Linux, utilizando Software Libre y auditable.<BR>
        <BR>
        This message doesn't contain viruses, because it has been created with GNU/Linux, using auditable Free Software.<BR>
        <BR>
        <BR>
        El 3 de noviembre de 2010 16:28, Juanjo &lt;<A HREF="mailto:juanjo.gandoy@gmail.com">juanjo.gandoy@gmail.com</A>&gt; escribi&#243;:<BR>
        <BLOCKQUOTE>
            Hola a todos, me podr&#237;as confirmar si lo siguiente es correcto para conectarme (por internet) a un escritorio remoto a trav&#233;s de un tunel con ssh <BR>
            <BR>
            Con Ubuntu 10.04, el servidor ssh funcionando con IP no-ip<BR>
            <BR>
            iptables -A INPUT -s 127.0.0.1 -p tcp -m tcp --dport [puerto VNC] -j ACCEPT<BR>
            iptables -A INPUT -p tcp -m tcp --dport [puerto VNC] -j DROP<BR>
            <BR>
            ssh -C -o CompressionLevel=9 -f -L [puerto VNC]:localhost:[puerto VNC] USUARIO@SERVIDOR_REMOTO sleep 15 ; xvnc4viewer localhost:[puerto VNC]<BR>
            <BR>
            O hay otra forma mas sencilla,Gracias.<BR>
            <BR>
            <BR>
            <TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
Un saludo. 
<PRE>
Juanjo

<A HREF="mailto:juanjo.gandoy@gmail.com">juanjo.gandoy@gmail.com</A>

<TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="37%" BORDER="1">
<TR>
<TD>
Ubuntu 10.04.1 LTS<BR>
<FONT COLOR="#000000">Ubuntu user# 29151</FONT><BR>
<FONT COLOR="#000000">Linux user# 511668</FONT> 
</TD>
</TR>
</TABLE>




Este mensaje no contiene virus, porque ha sido creado con GNU/Linux,
utilizando Software Libre y auditable.

This message doesn't contain viruses, because it has been created with
GNU/Linux, using auditable Free Software.
</PRE>
</TD>
</TR>
</TABLE>
            <BR>
            --<BR>
            ubuntu-es mailing list<BR>
            <A HREF="mailto:ubuntu-es@lists.ubuntu.com">ubuntu-es@lists.ubuntu.com</A><BR>
            <A HREF="https://lists.ubuntu.com/mailman/listinfo/ubuntu-es">https://lists.ubuntu.com/mailman/listinfo/ubuntu-es</A> <BR>
        </BLOCKQUOTE>
        <BR>
        <BR>
    </BLOCKQUOTE>
    <BR>
    Gracias, efectivamente es de Linux a Linux. Lo preguntaba por seguridad, soy algo paranoico.<BR>
    <BR>
    Juanjo.<BR>
</BLOCKQUOTE>
<BR>
Perdona, pero debo de ser muy torpe, que no consigo ver el escritorio remoto.<BR>
Con ALT-F2&nbsp; y desde Nautilus con&nbsp; la orden <BR>
<BR>
ssh:// USUARIO@[DIRECCION NO-IP]: [PUERTO ABIERTO SSH]<BR>
 <BR>
entro en modo gr&#225;fico y todo perfecto<BR>
<BR>
Desde la terminal con la orden<BR>
<BR>
ssh USUARIO@[DIRECCION NO-IP]: [PUERTO ABIERTO SSH]<BR>
<BR>
el mensaje de error es:<BR>
<BR>
ssh: Could not resolve hostname [DIRECCION NO-IP]:[PUERTO ABIERTO SSH]: Name or service not known<BR>
<BR>
Pero si escribo:<BR>
<BR>
ssh -p [PUERTO ABIERTO SSH] USUARIO@[DIRECCION NO-IP]<BR>
<BR>
Entro perfectamente.<BR>
<BR>
Pero con la orden que me distes que ser&#237;a si no me equivoco:<BR>
<BR>
ssh USUARIO@[DIRECCION NO-IP] -L 8080:localhost:[PUERTO ABIERTO VNC] <BR>
<BR>
la respuesta es<BR>
<BR>
ssh: connect to host [DIRECCION NO-IP] port 22: connection refused<BR>
<BR>
Si escribo:<BR>
<BR>
ssh USUARIO@[DIRECCION NO-IP]: [PUERO ABIERTO SSH] -L 8080:localhost:[PUERTO ABIERTO VNC]<BR>
<BR>
La respuesta es <BR>
<BR>
ssh: Could not resolve hostname [DIRECCION NO-IP]:[PUERTO ABIERTO SSH]: Name or service not known<BR>
<BR>
&#191;Qu&#233; hago mal?.<BR>
Todav&#237;a tengo el &quot;s&#237;ndrome del modo gr&#225;fico&quot; me lo puedes explicar usando el visor de escritorios remotos por ejemplo ya que viene instalado.<BR>
<BR>
Gracias<BR>
<BR>
<TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
Un saludo. 
<PRE>
Juanjo

<A HREF="mailto:juanjo.gandoy@gmail.com">juanjo.gandoy@gmail.com</A>

<TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="37%" BORDER="1">
<TR>
<TD>
Ubuntu 10.04.1 LTS<BR>
<FONT COLOR="#000000">Ubuntu user# 29151</FONT><BR>
<FONT COLOR="#000000">Linux user# 511668</FONT> 
</TD>
</TR>
</TABLE>


Este mensaje no contiene virus, porque ha sido creado con GNU/Linux,
utilizando Software Libre y auditable.

This message doesn't contain viruses, because it has been created with
GNU/Linux, using auditable Free Software.
</PRE>
</TD>
</TR>
</TABLE>
</BODY>
</HTML>