<?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: Keeping SSH from disconnecting automatically</title>
	<atom:link href="http://fredericiana.com/2009/10/21/keeping-ssh-from-disconnecting-automatically/feed/" rel="self" type="application/rss+xml" />
	<link>http://fredericiana.com/2009/10/21/keeping-ssh-from-disconnecting-automatically/</link>
	<description>Open Source, The Web, And German-American Oddities</description>
	<lastBuildDate>Wed, 18 Jan 2012 07:57:45 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Fred</title>
		<link>http://fredericiana.com/2009/10/21/keeping-ssh-from-disconnecting-automatically/comment-page-1/#comment-239086</link>
		<dc:creator>Fred</dc:creator>
		<pubDate>Thu, 22 Oct 2009 10:14:07 +0000</pubDate>
		<guid isPermaLink="false">http://fredericiana.com/?p=2414#comment-239086</guid>
		<description>Dave: Thanks! While the SSH settings will keep this from happening by keeping the connection alive, it didn&#039;t come to my mind that it might be the router exerting its force over me ;) Great &quot;feature&quot;, I must say. But I guess they do it in order to avoid running out of their highly limited resources if half-open connections keep piling up.</description>
		<content:encoded><![CDATA[<p>Dave: Thanks! While the SSH settings will keep this from happening by keeping the connection alive, it didn&#8217;t come to my mind that it might be the router exerting its force over me <img src='http://fredericiana.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  Great &#8220;feature&#8221;, I must say. But I guess they do it in order to avoid running out of their highly limited resources if half-open connections keep piling up.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave Miller</title>
		<link>http://fredericiana.com/2009/10/21/keeping-ssh-from-disconnecting-automatically/comment-page-1/#comment-239085</link>
		<dc:creator>Dave Miller</dc:creator>
		<pubDate>Thu, 22 Oct 2009 10:03:48 +0000</pubDate>
		<guid isPermaLink="false">http://fredericiana.com/?p=2414#comment-239085</guid>
		<description>Most Red Hat systems I&#039;ve used (and as a sysadmin I&#039;ve used a lot) default to not having a timeout in openssh.  95% of the time when you&#039;re running into this it&#039;s your router at home that&#039;s cutting you off.  Most DSL/cable routers will kill off idle TCP connections after 5 to 10 minutes by default.  I know this is the case with the default firmware on most Linksys branded routers (because I have a couple of them).  Most of the third party firmware you can get for those things has that &quot;feature&quot; disabled though. :)</description>
		<content:encoded><![CDATA[<p>Most Red Hat systems I&#8217;ve used (and as a sysadmin I&#8217;ve used a lot) default to not having a timeout in openssh.  95% of the time when you&#8217;re running into this it&#8217;s your router at home that&#8217;s cutting you off.  Most DSL/cable routers will kill off idle TCP connections after 5 to 10 minutes by default.  I know this is the case with the default firmware on most Linksys branded routers (because I have a couple of them).  Most of the third party firmware you can get for those things has that &#8220;feature&#8221; disabled though. <img src='http://fredericiana.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fred</title>
		<link>http://fredericiana.com/2009/10/21/keeping-ssh-from-disconnecting-automatically/comment-page-1/#comment-239041</link>
		<dc:creator>Fred</dc:creator>
		<pubDate>Wed, 21 Oct 2009 20:26:30 +0000</pubDate>
		<guid isPermaLink="false">http://fredericiana.com/?p=2414#comment-239041</guid>
		<description>Jeff: Very interesting, thanks!

Sancus: Makes sense. Maybe I should have Read The Fine Manual more thoroughly. I will update the post with both your suggestions.</description>
		<content:encoded><![CDATA[<p>Jeff: Very interesting, thanks!</p>
<p>Sancus: Makes sense. Maybe I should have Read The Fine Manual more thoroughly. I will update the post with both your suggestions.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sancus</title>
		<link>http://fredericiana.com/2009/10/21/keeping-ssh-from-disconnecting-automatically/comment-page-1/#comment-239039</link>
		<dc:creator>Sancus</dc:creator>
		<pubDate>Wed, 21 Oct 2009 19:42:14 +0000</pubDate>
		<guid isPermaLink="false">http://fredericiana.com/?p=2414#comment-239039</guid>
		<description>TCPKeepAlive and ClientAliveInterval are actually separate methods of keeping connections alive. ClientAliveInterval is a secure method, and TCPKeepAlive is not. Basically, this works without the TCPKeepAlive yes and if you&#039;re using it you should probably turn TCPKeepAlive off.

From man sshd_config:
&quot;It is important to note that the use of client alive messages is very different from TCPKeepAlive (below).  The client alive messages are sent through the encrypted channel and therefore will not be spoofable.  The TCP keepalive option enabled by TCPKeepAlive is spoofable.  The client alive mechanism is valuable when the client or server depend on knowing when a connection has become inactive.&quot;</description>
		<content:encoded><![CDATA[<p>TCPKeepAlive and ClientAliveInterval are actually separate methods of keeping connections alive. ClientAliveInterval is a secure method, and TCPKeepAlive is not. Basically, this works without the TCPKeepAlive yes and if you&#8217;re using it you should probably turn TCPKeepAlive off.</p>
<p>From man sshd_config:<br />
&#8220;It is important to note that the use of client alive messages is very different from TCPKeepAlive (below).  The client alive messages are sent through the encrypted channel and therefore will not be spoofable.  The TCP keepalive option enabled by TCPKeepAlive is spoofable.  The client alive mechanism is valuable when the client or server depend on knowing when a connection has become inactive.&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeff Balogh</title>
		<link>http://fredericiana.com/2009/10/21/keeping-ssh-from-disconnecting-automatically/comment-page-1/#comment-239036</link>
		<dc:creator>Jeff Balogh</dc:creator>
		<pubDate>Wed, 21 Oct 2009 19:19:49 +0000</pubDate>
		<guid isPermaLink="false">http://fredericiana.com/?p=2414#comment-239036</guid>
		<description>My ~/.ssh/config starts with this:

Host *
    ServerAliveInterval 300

So my client does the KeepAlive for all connections, no matter how the server is configured.</description>
		<content:encoded><![CDATA[<p>My ~/.ssh/config starts with this:</p>
<p>Host *<br />
    ServerAliveInterval 300</p>
<p>So my client does the KeepAlive for all connections, no matter how the server is configured.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul C</title>
		<link>http://fredericiana.com/2009/10/21/keeping-ssh-from-disconnecting-automatically/comment-page-1/#comment-239032</link>
		<dc:creator>Paul C</dc:creator>
		<pubDate>Wed, 21 Oct 2009 18:29:31 +0000</pubDate>
		<guid isPermaLink="false">http://fredericiana.com/?p=2414#comment-239032</guid>
		<description>Awesome. I&#039;ve been wanting this for a while now, but was always too lazy to look up how to do it. Thanks!</description>
		<content:encoded><![CDATA[<p>Awesome. I&#8217;ve been wanting this for a while now, but was always too lazy to look up how to do it. Thanks!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

