<?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>Libre Things &#187; NAT</title>
	<atom:link href="http://positon.org/tag/nat/feed" rel="self" type="application/rss+xml" />
	<link>http://positon.org</link>
	<description></description>
	<lastBuildDate>Tue, 23 Feb 2016 20:01:11 +0000</lastBuildDate>
	<language>en-US</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.7.1</generator>
	<item>
		<title>Reverse SSH Tunnel for SSH connection to a NATed machine</title>
		<link>http://positon.org/reverse-ssh-tunnel-for-ssh-connection-to-a-nated-machine</link>
		<comments>http://positon.org/reverse-ssh-tunnel-for-ssh-connection-to-a-nated-machine#comments</comments>
		<pubDate>Sun, 20 Jun 2010 22:48:00 +0000</pubDate>
		<dc:creator><![CDATA[dooblem]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[NAT]]></category>
		<category><![CDATA[SSH]]></category>

		<guid isPermaLink="false">http://positon.org:81/?p=98</guid>
		<description><![CDATA[This is how to open a SSH connexion to a serveur hidden behind a NAT gateway. We use a reverse SSH tunnel: nated-host$ ssh -R 2222:localhost:22 anyuser@public-host anyuser@public-host$ This command opens 2222 port on public-host, forwarding it to local 22 port on nated-host. Finally, from public-host we connect to 2222 local port with SSH, to [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>This is how to open a SSH connexion to a serveur hidden behind a NAT gateway.</p>
<p>We use a reverse SSH tunnel:</p>
<pre>
nated-host$ ssh -R 2222:localhost:22 anyuser@public-host
anyuser@public-host$
</pre>
<p>This command opens 2222 port on <code>public-host</code>, forwarding it to local 22 port on <code>nated-host</code>.</p>
<p>Finally, from <code>public-host</code> we connect to 2222 local port with SSH, to end on <code>nated-host</code>:</p>
<pre>
public-host$ ssh -p2222 localhost
nated-host$
</pre>
<p><ins>References</ins>:</p>
<ul>
<li><code>man ssh</code></li>
<li><a href="http://articles.techrepublic.com.com/5100-10878_11-5779944.html?tag=nl.e011" title="http://articles.techrepublic.com.com/5100-10878_11-5779944.html?tag=nl.e011">http://articles.techrepublic.com.com/5100-10878_11-5779944.html?tag=nl.e011</a></li>
<li><a href="http://www.howtoforge.com/reverse-ssh-tunneling" title="http://www.howtoforge.com/reverse-ssh-tunneling">http://www.howtoforge.com/reverse-ssh-tunneling</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://positon.org/reverse-ssh-tunnel-for-ssh-connection-to-a-nated-machine/feed</wfw:commentRss>
		<slash:comments></slash:comments>
		</item>
	</channel>
</rss>
