<?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>Wed, 16 May 2012 07:36:57 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.4-beta2-20489</generator>
	<item>
		<title>By: How-To: Share remote *nix files with local Windows Users &#124; Heart of the Mix</title>
		<link>http://pthree.org/2008/04/16/keeping-your-ssh-connection-alive/#comment-116138</link>
		<dc:creator>How-To: Share remote *nix files with local Windows Users &#124; Heart of the Mix</dc:creator>
		<pubDate>Thu, 17 Nov 2011 23:24:13 +0000</pubDate>
		<guid isPermaLink="false">http://pthree.org/?p=566#comment-116138</guid>
		<description>[...] the TCP Keep Alive method, or the ServerAliveInterval method. Both of which are outlined briefly here.&#160; I prefer ServerAliveInterval as it’s easier for me to remember. Add the following two [...]</description>
		<content:encoded><![CDATA[<p>[...] the TCP Keep Alive method, or the ServerAliveInterval method. Both of which are outlined briefly here.&#160; I prefer ServerAliveInterval as it’s easier for me to remember. Add the following two [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jordan</title>
		<link>http://pthree.org/2008/04/16/keeping-your-ssh-connection-alive/#comment-115857</link>
		<dc:creator>Jordan</dc:creator>
		<pubDate>Tue, 26 Jul 2011 23:32:06 +0000</pubDate>
		<guid isPermaLink="false">http://pthree.org/?p=566#comment-115857</guid>
		<description>Thank you!! =) I&#039;ve been using ssh for years, but have recently started delving into its less common features. This is a gem... =)</description>
		<content:encoded><![CDATA[<p>Thank you!! =) I&#8217;ve been using ssh for years, but have recently started delving into its less common features. This is a gem&#8230; =)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: The GuiGui&#039;s show &#187; SSH : du port forwarding au VPN bon marché</title>
		<link>http://pthree.org/2008/04/16/keeping-your-ssh-connection-alive/#comment-115454</link>
		<dc:creator>The GuiGui&#039;s show &#187; SSH : du port forwarding au VPN bon marché</dc:creator>
		<pubDate>Thu, 24 Feb 2011 20:34:38 +0000</pubDate>
		<guid isPermaLink="false">http://pthree.org/?p=566#comment-115454</guid>
		<description>[...] Encore une fois, je ne réinventerai pas la roue puisqu&#8217;une recherche sur Google vous conduira sur ce blog : Aaron Toponce : Keeping Your SSH Connection Alive. [...]</description>
		<content:encoded><![CDATA[<p>[...] Encore une fois, je ne réinventerai pas la roue puisqu&#8217;une recherche sur Google vous conduira sur ce blog : Aaron Toponce : Keeping Your SSH Connection Alive. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tim Smith</title>
		<link>http://pthree.org/2008/04/16/keeping-your-ssh-connection-alive/#comment-115387</link>
		<dc:creator>Tim Smith</dc:creator>
		<pubDate>Mon, 07 Feb 2011 10:25:39 +0000</pubDate>
		<guid isPermaLink="false">http://pthree.org/?p=566#comment-115387</guid>
		<description>Dr X,

The point of this work around is to get around firewalls detecting the SSH sessions as idle, and dropping them out of their state tables. Then when the client tries to send it&#039;s next packet, the firewall will drop it, as it will see it out of state.

You can disable this behaviour on firewalls, but that is there job :) So better off to adjust on the clients / applications


Cheers,

Tim.</description>
		<content:encoded><![CDATA[<p>Dr X,</p>
<p>The point of this work around is to get around firewalls detecting the SSH sessions as idle, and dropping them out of their state tables. Then when the client tries to send it&#8217;s next packet, the firewall will drop it, as it will see it out of state.</p>
<p>You can disable this behaviour on firewalls, but that is there job <img src='http://pthree.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  So better off to adjust on the clients / applications</p>
<p>Cheers,</p>
<p>Tim.</p>
]]></content:encoded>
	</item>
	<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>

