<?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 keep-alive tip</title>
	<atom:link href="http://madphilosopher.ca/2005/07/an-ssh-keep-alive-tip/feed/" rel="self" type="application/rss+xml" />
	<link>http://madphilosopher.ca/2005/07/an-ssh-keep-alive-tip/</link>
	<description>Because being mad is all the rage. A personal weblog of Darren Paul Griffith.</description>
	<lastBuildDate>Mon, 12 Mar 2012 05:28:10 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Trevor</title>
		<link>http://madphilosopher.ca/2005/07/an-ssh-keep-alive-tip/#comment-387069</link>
		<dc:creator>Trevor</dc:creator>
		<pubDate>Tue, 21 Feb 2012 22:21:36 +0000</pubDate>
		<guid isPermaLink="false">http://madphilosopher.ca/2005/07/a-ssh-keep-alive-tip/#comment-387069</guid>
		<description>Brilliant Cam, thanks for the tip :)</description>
		<content:encoded><![CDATA[<p>Brilliant Cam, thanks for the tip <img src='http://madphilosopher.ca/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alejandro Pisanty</title>
		<link>http://madphilosopher.ca/2005/07/an-ssh-keep-alive-tip/#comment-371205</link>
		<dc:creator>Alejandro Pisanty</dc:creator>
		<pubDate>Sun, 08 Jan 2012 17:44:32 +0000</pubDate>
		<guid isPermaLink="false">http://madphilosopher.ca/2005/07/a-ssh-keep-alive-tip/#comment-371205</guid>
		<description>Screen plus the clock device worked best for me. I can keep a perfectly decent interface (email) with but minor glitches. Use the -O option in screen - it will optimize the output for your type of terminal instead of forcing strict VTx. Also, you may need to resize the window to fully accomodate changes. Thanks to all contributors! 

One more note: I hadn&#039;t needed this until now; my ISP improved services seriously by introducing FTTH, but their core equipment is giving timeouts to either SSH or port 22 (we don&#039;t know which for sure yet) after painfully short inactivity times. I&#039;ve seen this in a few other networks as well.</description>
		<content:encoded><![CDATA[<p>Screen plus the clock device worked best for me. I can keep a perfectly decent interface (email) with but minor glitches. Use the -O option in screen &#8211; it will optimize the output for your type of terminal instead of forcing strict VTx. Also, you may need to resize the window to fully accomodate changes. Thanks to all contributors! </p>
<p>One more note: I hadn&#8217;t needed this until now; my ISP improved services seriously by introducing FTTH, but their core equipment is giving timeouts to either SSH or port 22 (we don&#8217;t know which for sure yet) after painfully short inactivity times. I&#8217;ve seen this in a few other networks as well.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: AndresVia</title>
		<link>http://madphilosopher.ca/2005/07/an-ssh-keep-alive-tip/#comment-358566</link>
		<dc:creator>AndresVia</dc:creator>
		<pubDate>Sun, 04 Dec 2011 23:26:44 +0000</pubDate>
		<guid isPermaLink="false">http://madphilosopher.ca/2005/07/a-ssh-keep-alive-tip/#comment-358566</guid>
		<description>@Adam Reed would you please explain your piece of ksh code.</description>
		<content:encoded><![CDATA[<p>@Adam Reed would you please explain your piece of ksh code.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bob</title>
		<link>http://madphilosopher.ca/2005/07/an-ssh-keep-alive-tip/#comment-342243</link>
		<dc:creator>Bob</dc:creator>
		<pubDate>Tue, 11 Oct 2011 08:20:23 +0000</pubDate>
		<guid isPermaLink="false">http://madphilosopher.ca/2005/07/a-ssh-keep-alive-tip/#comment-342243</guid>
		<description>Where&#039;s the &quot;like&quot; button :-)</description>
		<content:encoded><![CDATA[<p>Where&#8217;s the &#8220;like&#8221; button <img src='http://madphilosopher.ca/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael C</title>
		<link>http://madphilosopher.ca/2005/07/an-ssh-keep-alive-tip/#comment-293649</link>
		<dc:creator>Michael C</dc:creator>
		<pubDate>Sat, 09 Jul 2011 17:11:55 +0000</pubDate>
		<guid isPermaLink="false">http://madphilosopher.ca/2005/07/a-ssh-keep-alive-tip/#comment-293649</guid>
		<description>Very interesting.  I&#039;m in Canada (just got here recently) and have noticed the same behavior.  Back in the U.S., I could keep an idle connection open indefinitely (weeks, months, etc.), whereas here I return to my terminal and see closed connections if I leave my machine for a bit (haven&#039;t tested to see exactly how long, but it seems quite short, definitely under an hour).  I blame my either my ISP (TekSavvy) or its cable provider (Rogers).  It&#039;s downright wrong to close people&#039;s TCP connections just because you feel like it.  What if I were streaming something from a server and the server had a hiccup and stopped streaming for some time: are they going to close that connection, too, and force me to restart the entire stream just because they feel like it?  Canada is weird in this respect.  Whether it&#039;s due to bureaucracy or incompetence, it doesn&#039;t matter, it just plain sucks and makes no sense at all.</description>
		<content:encoded><![CDATA[<p>Very interesting.  I&#8217;m in Canada (just got here recently) and have noticed the same behavior.  Back in the U.S., I could keep an idle connection open indefinitely (weeks, months, etc.), whereas here I return to my terminal and see closed connections if I leave my machine for a bit (haven&#8217;t tested to see exactly how long, but it seems quite short, definitely under an hour).  I blame my either my ISP (TekSavvy) or its cable provider (Rogers).  It&#8217;s downright wrong to close people&#8217;s TCP connections just because you feel like it.  What if I were streaming something from a server and the server had a hiccup and stopped streaming for some time: are they going to close that connection, too, and force me to restart the entire stream just because they feel like it?  Canada is weird in this respect.  Whether it&#8217;s due to bureaucracy or incompetence, it doesn&#8217;t matter, it just plain sucks and makes no sense at all.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: juan</title>
		<link>http://madphilosopher.ca/2005/07/an-ssh-keep-alive-tip/#comment-242973</link>
		<dc:creator>juan</dc:creator>
		<pubDate>Wed, 01 Dec 2010 17:42:35 +0000</pubDate>
		<guid isPermaLink="false">http://madphilosopher.ca/2005/07/a-ssh-keep-alive-tip/#comment-242973</guid>
		<description>how can i implement a windows/apache/php web site to keep track of unix servers, using some sort of keep alive.. I m currently using a ping but i find that a bit slow if you have multiple servers is there another low level tool/utility i can use to check on server availability?</description>
		<content:encoded><![CDATA[<p>how can i implement a windows/apache/php web site to keep track of unix servers, using some sort of keep alive.. I m currently using a ping but i find that a bit slow if you have multiple servers is there another low level tool/utility i can use to check on server availability?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aaron</title>
		<link>http://madphilosopher.ca/2005/07/an-ssh-keep-alive-tip/#comment-237950</link>
		<dc:creator>Aaron</dc:creator>
		<pubDate>Mon, 01 Nov 2010 15:37:52 +0000</pubDate>
		<guid isPermaLink="false">http://madphilosopher.ca/2005/07/a-ssh-keep-alive-tip/#comment-237950</guid>
		<description>I&#039;m guessing that no one here has tried:

&lt;code&gt;export TMOUT=0&lt;/code&gt; in their &lt;code&gt;~/.bash_profile&lt;/code&gt;? It works with our stringent security policies on our RHEL5 machines. No need to send a loop to the background.
&lt;pre&gt;
while date; sleep 5; done &gt; /dev/null
&lt;/pre&gt;
Would work better than the poster&#039;s loop anyway, you wouldn&#039;t need crap printed to the screen, and it is registered as &quot;activity&quot;.</description>
		<content:encoded><![CDATA[<p>I&#8217;m guessing that no one here has tried:</p>
<p><code>export TMOUT=0</code> in their <code>~/.bash_profile</code>? It works with our stringent security policies on our RHEL5 machines. No need to send a loop to the background.</p>
<pre>
while date; sleep 5; done &gt; /dev/null
</pre>
<p>Would work better than the poster&#8217;s loop anyway, you wouldn&#8217;t need crap printed to the screen, and it is registered as &#8220;activity&#8221;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joe Blow</title>
		<link>http://madphilosopher.ca/2005/07/an-ssh-keep-alive-tip/#comment-235046</link>
		<dc:creator>Joe Blow</dc:creator>
		<pubDate>Wed, 13 Oct 2010 01:17:42 +0000</pubDate>
		<guid isPermaLink="false">http://madphilosopher.ca/2005/07/a-ssh-keep-alive-tip/#comment-235046</guid>
		<description>The correct syntax for setting the ssh &lt;code&gt;TCPKeepAlive&lt;/code&gt; option is:

&lt;pre&gt;
ssh -o TCPKeepAlive=yes mark@localhost
&lt;/pre&gt;

i.e., you must include the &lt;code&gt;&quot;=yes&quot;&lt;/code&gt; value after the &lt;code&gt;TCPKeepAlive&lt;/code&gt; identifier!

All the Best,
Joe


Mark says:
January 16, 2007 at 1504 UTC

&lt;blockquote&gt;
or you could just do a

&lt;pre&gt;
ssh -o TCPKeepAlive mark@localhost
&lt;/pre&gt;

which will do the same and handy if bouncing between boxes.
&lt;/blockquote&gt;</description>
		<content:encoded><![CDATA[<p>The correct syntax for setting the ssh <code>TCPKeepAlive</code> option is:</p>
<pre>
ssh -o TCPKeepAlive=yes mark@localhost
</pre>
<p>i.e., you must include the <code>"=yes"</code> value after the <code>TCPKeepAlive</code> identifier!</p>
<p>All the Best,<br />
Joe</p>
<p>Mark says:<br />
January 16, 2007 at 1504 UTC</p>
<blockquote><p>
or you could just do a</p>
<pre>
ssh -o TCPKeepAlive mark@localhost
</pre>
<p>which will do the same and handy if bouncing between boxes.
</p></blockquote>
]]></content:encoded>
	</item>
</channel>
</rss>

