<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: SSH Tunneling across multiple hosts in Linux</title>
	<atom:link href="http://www.naenius.com/2011/06/ssh-tunneling-across-multiple-hosts-in-linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.naenius.com/2011/06/ssh-tunneling-across-multiple-hosts-in-linux/</link>
	<description>“Development is a state of mind”</description>
	<lastBuildDate>Sat, 11 Feb 2012 03:39:28 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
	<item>
		<title>By: Jeroen van der Laan</title>
		<link>http://www.naenius.com/2011/06/ssh-tunneling-across-multiple-hosts-in-linux/comment-page-1/#comment-16123</link>
		<dc:creator>Jeroen van der Laan</dc:creator>
		<pubDate>Fri, 10 Jun 2011 09:47:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.naenius.com/?p=477#comment-16123</guid>
		<description>&lt;p&gt;The is a disadvantage in this approach. You are setting up two tunnels. One from local to A and one from A to B. That means that you would need an (Open)SSH deamon on your server B.&lt;/p&gt;

&lt;p&gt;However in your situation you say that server B is accessible from Server A meaning that you actually don&#039;t need the second tunnel right? Wouldn&#039;t it be easier to just tunnel a non-localhost connection through server A? Something like this would probably work.&lt;/p&gt;

&lt;p&gt;ssh -t -t -L8081:b.server.example.com:80 mvriel@a.server.example.com&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>The is a disadvantage in this approach. You are setting up two tunnels. One from local to A and one from A to B. That means that you would need an (Open)SSH deamon on your server B.</p>

<p>However in your situation you say that server B is accessible from Server A meaning that you actually don&#8217;t need the second tunnel right? Wouldn&#8217;t it be easier to just tunnel a non-localhost connection through server A? Something like this would probably work.</p>

<p>ssh -t -t -L8081:b.server.example.com:80 <a href="mailto:mvriel@a.server.example.com">mvriel@a.server.example.com</a></p>]]></content:encoded>
	</item>
	<item>
		<title>By: Remi Woler</title>
		<link>http://www.naenius.com/2011/06/ssh-tunneling-across-multiple-hosts-in-linux/comment-page-1/#comment-16121</link>
		<dc:creator>Remi Woler</dc:creator>
		<pubDate>Fri, 10 Jun 2011 07:50:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.naenius.com/?p=477#comment-16121</guid>
		<description>&lt;p&gt;Accidentily, I learned about this while getting worked in a couple days ago. But I learned a few other tricks as well:&lt;/p&gt;

&lt;p&gt;add -f, which means that ssh goes into the background after connecting, so you don&#039;t have to leave your terminal window open&lt;/p&gt;

&lt;p&gt;In your example, you tunnel twice for a single host, to get back to port 80. Instead, you can use -D and no tunnel, which will create a SOCKS proxy. Execute the command, configure the proxy in your browser, and you can reach any host that is reachable by Server A. If you need to SSH forward to server B, or anything else that can&#039;t use a SOCKS proxy, then you can suffice with a single tunnel (since you don&#039;t need to go back to the specific port).&lt;/p&gt;

&lt;p&gt;~RW&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Accidentily, I learned about this while getting worked in a couple days ago. But I learned a few other tricks as well:</p>

<p>add -f, which means that ssh goes into the background after connecting, so you don&#8217;t have to leave your terminal window open</p>

<p>In your example, you tunnel twice for a single host, to get back to port 80. Instead, you can use -D and no tunnel, which will create a SOCKS proxy. Execute the command, configure the proxy in your browser, and you can reach any host that is reachable by Server A. If you need to SSH forward to server B, or anything else that can&#8217;t use a SOCKS proxy, then you can suffice with a single tunnel (since you don&#8217;t need to go back to the specific port).</p>

<p>~RW</p>]]></content:encoded>
	</item>
</channel>
</rss>

