<?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 Your SSH Connection Alive</title>
	<atom:link href="http://pthree.org/2008/04/16/keeping-your-ssh-connection-alive/feed/" rel="self" type="application/rss+xml" />
	<link>http://pthree.org/2008/04/16/keeping-your-ssh-connection-alive/</link>
	<description>Linux.  GNU.  Freedom.</description>
	<lastBuildDate>Sun, 14 Mar 2010 14:51:42 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0-alpha</generator>
	<item>
		<title>By: dr. x</title>
		<link>http://pthree.org/2008/04/16/keeping-your-ssh-connection-alive/#comment-110072</link>
		<dc:creator>dr. x</dc:creator>
		<pubDate>Sat, 18 Jul 2009 03:12:14 +0000</pubDate>
		<guid isPermaLink="false">http://pthree.org/?p=566#comment-110072</guid>
		<description>hmmm... i *think* (am no expert) you really would want to turn OFF TcpKeepAlive, not turn it on. 

If you have it ON the client/server will notice when the connection is unresponsive and... as seems to be implied by the man page, close the socket. Which is what some people find annoying... as expressed in the man page entry below.


from the man page for ssh_config:

TCPKeepAlive
             Specifies whether the system should send TCP keepalive messages
             to the other side.  If they are sent, death of the connection or
             crash of one of the machines will be properly noticed.  This
             option only uses TCP keepalives (as opposed to using ssh level
             keepalives), so takes a long time to notice when the connection
             dies.  As such, you probably want the ServerAliveInterval option
             as well.  However, this means that connections will die if the
             route is down temporarily, and some people find it annoying.

             The default is “yes” (to send TCP keepalive messages), and the
             client will notice if the network goes down or the remote host
             dies.  This is important in scripts, and many users want it too.

             To disable TCP keepalive messages, the value should be set to
             “no”.</description>
		<content:encoded><![CDATA[<p>hmmm&#8230; i *think* (am no expert) you really would want to turn OFF TcpKeepAlive, not turn it on. </p>
<p>If you have it ON the client/server will notice when the connection is unresponsive and&#8230; as seems to be implied by the man page, close the socket. Which is what some people find annoying&#8230; as expressed in the man page entry below.</p>
<p>from the man page for ssh_config:</p>
<p>TCPKeepAlive<br />
             Specifies whether the system should send TCP keepalive messages<br />
             to the other side.  If they are sent, death of the connection or<br />
             crash of one of the machines will be properly noticed.  This<br />
             option only uses TCP keepalives (as opposed to using ssh level<br />
             keepalives), so takes a long time to notice when the connection<br />
             dies.  As such, you probably want the ServerAliveInterval option<br />
             as well.  However, this means that connections will die if the<br />
             route is down temporarily, and some people find it annoying.</p>
<p>             The default is “yes” (to send TCP keepalive messages), and the<br />
             client will notice if the network goes down or the remote host<br />
             dies.  This is important in scripts, and many users want it too.</p>
<p>             To disable TCP keepalive messages, the value should be set to<br />
             “no”.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: GNUWIX</title>
		<link>http://pthree.org/2008/04/16/keeping-your-ssh-connection-alive/#comment-109863</link>
		<dc:creator>GNUWIX</dc:creator>
		<pubDate>Tue, 24 Mar 2009 06:19:51 +0000</pubDate>
		<guid isPermaLink="false">http://pthree.org/?p=566#comment-109863</guid>
		<description>So, with the TCPKeepAlive option passed to SSH, the SSH client will send an encrypted packet to the SSH server, keeping your TCP connection up and running. 


This is inaccurate..   This is a TCP option and will not send &quot;an encrypted packet&quot;  

Otherwise pretty good post thank you</description>
		<content:encoded><![CDATA[<p>So, with the TCPKeepAlive option passed to SSH, the SSH client will send an encrypted packet to the SSH server, keeping your TCP connection up and running. </p>
<p>This is inaccurate..   This is a TCP option and will not send &#8220;an encrypted packet&#8221;  </p>
<p>Otherwise pretty good post thank you</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hans</title>
		<link>http://pthree.org/2008/04/16/keeping-your-ssh-connection-alive/#comment-97872</link>
		<dc:creator>Hans</dc:creator>
		<pubDate>Thu, 17 Apr 2008 16:41:20 +0000</pubDate>
		<guid isPermaLink="false">http://pthree.org/?p=566#comment-97872</guid>
		<description>autossh has its place, but its job is to automate reconnecting in the event of a disconnect, not keeping a connection alive.</description>
		<content:encoded><![CDATA[<p>autossh has its place, but its job is to automate reconnecting in the event of a disconnect, not keeping a connection alive.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kurt</title>
		<link>http://pthree.org/2008/04/16/keeping-your-ssh-connection-alive/#comment-97817</link>
		<dc:creator>Kurt</dc:creator>
		<pubDate>Thu, 17 Apr 2008 12:16:56 +0000</pubDate>
		<guid isPermaLink="false">http://pthree.org/?p=566#comment-97817</guid>
		<description>What about using autossh?</description>
		<content:encoded><![CDATA[<p>What about using autossh?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aaron</title>
		<link>http://pthree.org/2008/04/16/keeping-your-ssh-connection-alive/#comment-97704</link>
		<dc:creator>Aaron</dc:creator>
		<pubDate>Wed, 16 Apr 2008 21:45:59 +0000</pubDate>
		<guid isPermaLink="false">http://pthree.org/?p=566#comment-97704</guid>
		<description>@Bjørn Grønbæk- It does.  Add either of those options to your ~/.ssh/config file.  The sshfs utility reads that file, and adds the options to the connection, as sshfs just just an ssh directory mounted to a local dir on your filesystem.</description>
		<content:encoded><![CDATA[<p>@Bjørn Grønbæk- It does.  Add either of those options to your ~/.ssh/config file.  The sshfs utility reads that file, and adds the options to the connection, as sshfs just just an ssh directory mounted to a local dir on your filesystem.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://pthree.org/2008/04/16/keeping-your-ssh-connection-alive/#comment-97695</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Wed, 16 Apr 2008 20:37:43 +0000</pubDate>
		<guid isPermaLink="false">http://pthree.org/?p=566#comment-97695</guid>
		<description>excellent!</description>
		<content:encoded><![CDATA[<p>excellent!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bjørn Grønbæk</title>
		<link>http://pthree.org/2008/04/16/keeping-your-ssh-connection-alive/#comment-97673</link>
		<dc:creator>Bjørn Grønbæk</dc:creator>
		<pubDate>Wed, 16 Apr 2008 18:45:24 +0000</pubDate>
		<guid isPermaLink="false">http://pthree.org/?p=566#comment-97673</guid>
		<description>Thanks man. I&#039;m having the exact same problem here at University of Southern Denmark. Stupid network... 

It really screws up your system if you mount a remote folder with sshfs, and the connection is terminated by inactivity. It would be nice if sshfs had some option just like those above. But your advice is a great help anyway.</description>
		<content:encoded><![CDATA[<p>Thanks man. I&#8217;m having the exact same problem here at University of Southern Denmark. Stupid network&#8230; </p>
<p>It really screws up your system if you mount a remote folder with sshfs, and the connection is terminated by inactivity. It would be nice if sshfs had some option just like those above. But your advice is a great help anyway.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
