<?xml version="1.0" encoding="UTF-8"?> <rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
><channel><title>Rodrigo Pérez (bilson) &#187; ssh</title> <atom:link href="http://bilson.cl/category/ssh/feed/" rel="self" type="application/rss+xml" /><link>http://bilson.cl</link> <description>blog personal</description> <lastBuildDate>Wed, 11 Apr 2012 18:41:42 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <item><title>Túnel SSH</title><link>http://bilson.cl/2010/07/tunel-ssh/</link> <comments>http://bilson.cl/2010/07/tunel-ssh/#comments</comments> <pubDate>Fri, 09 Jul 2010 23:17:49 +0000</pubDate> <dc:creator>bilson</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[ssh]]></category> <category><![CDATA[Ubuntu]]></category><guid
isPermaLink="false">http://bilson.cl/blog/?p=35</guid> <description><![CDATA[(Reviviendo post añejos) La situación es la siguiente: Estoy en mi casa, necesito conectarme a la máquina 1.2.3.4, por distintos protocolos (FTP, HTTP, SSH, SFTP), pero la máquina 1.2.3.4 tiene acceso restringido por IP, y sólo la IP 1.2.3.5 tiene acceso. Pero yo puedo entrar por ssh a 1.2.3.5. Solución: Hacer un túnel SSH. Cómo [...]]]></description> <content:encoded><![CDATA[<p>(Reviviendo post añejos)</p><p>La situación es la siguiente:</p><p>Estoy en mi casa, necesito conectarme a la máquina 1.2.3.4, por distintos protocolos (FTP, HTTP, SSH, SFTP), pero la máquina 1.2.3.4 tiene acceso restringido por IP, y sólo la IP 1.2.3.5 tiene acceso. Pero yo puedo entrar por ssh a 1.2.3.5.</p><p>Solución: Hacer un túnel SSH.</p><p>Cómo ?</p><p>Fácil:</p><div
class="wp_syntax"><div
class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">ssh</span> <span style="color: #660033;">-L</span> <span style="color: #000000;">10022</span>:1.2.3.4:<span style="color: #000000;">22</span> <span style="color: #660033;">-f</span> <span style="color: #660033;">-N</span> usuario<span style="color: #000000; font-weight: bold;">@</span>1.2.3.5</pre></div></div><p>De esta forma, yo hago ssh a localhost en el puerto 10022 y la conexión es redireccionada a 1.2.3.4, y ya estoy por ssh en la máquina que tenía restringido el acceso <img
src='http://bilson.cl/wp-includes/images/smilies/icon_biggrin.gif' alt=':-D' class='wp-smiley' /></p><p> Repetir el proceso para redireccionar más puertos.</p><p>Ejemplos:</p><div
class="wp_syntax"><div
class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">ssh</span> <span style="color: #660033;">-L</span> <span style="color: #000000;">1025</span>:1.2.3.4:<span style="color: #000000;">25</span> <span style="color: #660033;">-f</span> <span style="color: #660033;">-N</span> usuario<span style="color: #000000; font-weight: bold;">@</span>1.2.3.5
<span style="color: #c20cb9; font-weight: bold;">ssh</span> <span style="color: #660033;">-L</span> <span style="color: #000000;">1080</span>:1.2.3.4:<span style="color: #000000;">80</span> <span style="color: #660033;">-f</span> <span style="color: #660033;">-N</span> usuario<span style="color: #000000; font-weight: bold;">@</span>1.2.3.5
<span style="color: #c20cb9; font-weight: bold;">ssh</span> <span style="color: #660033;">-L</span> <span style="color: #000000;">10021</span>:1.2.3.4:<span style="color: #000000;">21</span> <span style="color: #660033;">-f</span> <span style="color: #660033;">-N</span> usuario<span style="color: #000000; font-weight: bold;">@</span>1.2.3.5
<span style="color: #c20cb9; font-weight: bold;">ssh</span> <span style="color: #660033;">-L</span> <span style="color: #000000;">10110</span>:1.2.3.4:<span style="color: #000000;">110</span> <span style="color: #660033;">-f</span> <span style="color: #660033;">-N</span> usuario<span style="color: #000000; font-weight: bold;">@</span>1.2.3.5</pre></div></div><p>Para puertos menores a 1025 se debe tener privilegios de root.</p> ]]></content:encoded> <wfw:commentRss>http://bilson.cl/2010/07/tunel-ssh/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced (User agent is rejected)
Database Caching 17/20 queries in 0.007 seconds using disk: basic

Served from: bilson.cl @ 2012-05-20 01:20:45 -->
