<br><br><div class="gmail_quote">El 4 de noviembre de 2010 08:41, Guido Ignacio <span dir="ltr">&lt;<a href="mailto:guidoignacio@gmail.com">guidoignacio@gmail.com</a>&gt;</span> escribió:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div><br><div class="gmail_quote">El 4 de noviembre de 2010 08:06, Juanjo <span dir="ltr">&lt;<a href="mailto:juanjo.gandoy@gmail.com" target="_blank">juanjo.gandoy@gmail.com</a>&gt;</span> escribió:<div><div></div><div class="h5">
<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">



  
  

<div>
El mié, 03-11-2010 a las 21:45 +0100, Juanjo escribió:<div><div></div><div><br>
<blockquote type="CITE">
    El mié, 03-11-2010 a las 16:52 -0300, Guido Ignacio escribió:<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" target="_blank">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és que hacer es:<br>
        <br>
        <br>
        #ssh <a href="mailto:usuario@ejemplo.com" target="_blank">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á al tunnel y redirigirá 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ó 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&#39;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" target="_blank">juanjo.gandoy@gmail.com</a>&gt; escribió:<br>
        <blockquote>
            Hola a todos, me podrías confirmar si lo siguiente es correcto para conectarme (por internet) a un escritorio remoto a travé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 width="100%" cellpadding="0" cellspacing="0">
<tbody><tr>
<td>
Un saludo. 
<pre>Juanjo

<a href="mailto:juanjo.gandoy@gmail.com" target="_blank">juanjo.gandoy@gmail.com</a>

<table width="37%" border="1" cellpadding="0" cellspacing="0">
<tbody><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>
</tbody></table>




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

This message doesn&#39;t contain viruses, because it has been created with
GNU/Linux, using auditable Free Software.
</pre>
</td>
</tr>
</tbody></table>
            <br>
            --<br>
            ubuntu-es mailing list<br>
            <a href="mailto:ubuntu-es@lists.ubuntu.com" target="_blank">ubuntu-es@lists.ubuntu.com</a><br>
            <a href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-es" target="_blank">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></div></div>
Perdona, pero debo de ser muy torpe, que no consigo ver el escritorio remoto.<br>
Con ALT-F2  y desde Nautilus con  la orden <br>
<br>
ssh:// USUARIO@[DIRECCION NO-IP]: [PUERTO ABIERTO SSH]<br>
 <br>
entro en modo grá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í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>
¿Qué hago mal?.<br>
Todavía tengo el &quot;síndrome del modo gráfico&quot; me lo puedes explicar usando el visor de escritorios remotos por ejemplo ya que viene instalado.<div><br>
<br>
Gracias<br>
<br>
<table width="100%" cellpadding="0" cellspacing="0">
<tbody><tr>
<td>
Un saludo. 
<pre>Juanjo

<a href="mailto:juanjo.gandoy@gmail.com" target="_blank">juanjo.gandoy@gmail.com</a>

<table width="37%" border="1" cellpadding="0" cellspacing="0">
<tbody><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>
</tbody></table>


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

This message doesn&#39;t contain viruses, because it has been created with
GNU/Linux, using auditable Free Software.
</pre>
</td>
</tr>
</tbody></table>
</div></div>

</blockquote></div></div></div><br></div><div><br></div><div>Que puerto tenés configurado en /etc/ssh/sshd_config ?<div><br></div><div>Como hiciste antes de indicarle ssh el puerto: ssh -p Puerto, lo mismo hacés cuando querés hacer el tunel</div>

<div><br></div><div>Para pasar el parametro de conexión de puerto a ssh es mediante &quot;-p&quot;, no los &quot;:&quot; seguido del host.<br clear="all"><br></div><div>Proba: </div><div><span style="font-family: arial,sans-serif; font-size: 13px; border-collapse: collapse;"><br>

</span></div><div><span style="font-family: arial,sans-serif; font-size: 13px; border-collapse: collapse;">ssh USUARIO@[DIRECCION NO-IP] -L 8080:localhost:[PUERTO ABIERTO VNC] -p [PUERTO ABIERTO SSH]</span></div><div class="im">

<div><span style="font-family: arial,sans-serif; font-size: 13px; border-collapse: collapse;"><br></span></div><div><br>---<br>Este mensaje no contiene virus, porque ha sido creado con GNU/Linux, utilizando Software Libre y auditable.<br>

<br>This message doesn&#39;t contain viruses, because it has been created with GNU/Linux, using auditable Free Software.<br><br></div></div></div>
<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" target="_blank">https://lists.ubuntu.com/mailman/listinfo/ubuntu-es</a><br></blockquote></div><br>Con motivo de sus correos, encontré esta liga en Google que creo les puede servir.<br>
<br><a href="http://www.e-ghost.deusto.es/docs/articulo.ssh.html">SSH Tunneling</a>
<br clear="all"><br>Saludos.<br>-- <br>Con afecto, gusto y placer. Alfredo<br>