<?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"
	>
<channel>
	<title>Comments on: Keeping ssh connections alive</title>
	<atom:link href="http://muffinresearch.co.uk/archives/2006/06/01/keeping-ssh-connections-alive/feed/" rel="self" type="application/rss+xml" />
	<link>http://muffinresearch.co.uk/archives/2006/06/01/keeping-ssh-connections-alive/</link>
	<description>the personal blog of Stuart Colville covering modern web development techniques and best practices</description>
	<pubDate>Thu, 20 Nov 2008 10:30:22 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>By: Jonathan</title>
		<link>http://muffinresearch.co.uk/archives/2006/06/01/keeping-ssh-connections-alive/#comment-52748</link>
		<dc:creator>Jonathan</dc:creator>
		<pubDate>Thu, 19 Jul 2007 18:11:44 +0000</pubDate>
		<guid isPermaLink="false">http://muffinresearch.co.uk/archives/2006/06/01/keeping-ssh-connections-alive/#comment-52748</guid>
		<description>Awesome!  Thanks, this worked like a charm.  It was really starting to bug me that it would time-out every hour and wouldn't leave me connected.

Great fix!</description>
		<content:encoded><![CDATA[<p>Awesome!  Thanks, this worked like a charm.  It was really starting to bug me that it would time-out every hour and wouldn&#8217;t leave me connected.</p>
<p>Great fix!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stuart Colville</title>
		<link>http://muffinresearch.co.uk/archives/2006/06/01/keeping-ssh-connections-alive/#comment-3036</link>
		<dc:creator>Stuart Colville</dc:creator>
		<pubDate>Fri, 02 Jun 2006 20:49:02 +0000</pubDate>
		<guid isPermaLink="false">http://muffinresearch.co.uk/archives/2006/06/01/keeping-ssh-connections-alive/#comment-3036</guid>
		<description>@Gary: Hey, no need to apologise ;-)</description>
		<content:encoded><![CDATA[<p>@Gary: Hey, no need to apologise <img src='http://muffinresearch.co.uk/wordpress/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gary</title>
		<link>http://muffinresearch.co.uk/archives/2006/06/01/keeping-ssh-connections-alive/#comment-3035</link>
		<dc:creator>Gary</dc:creator>
		<pubDate>Fri, 02 Jun 2006 19:49:17 +0000</pubDate>
		<guid isPermaLink="false">http://muffinresearch.co.uk/archives/2006/06/01/keeping-ssh-connections-alive/#comment-3035</guid>
		<description>Yeah, I was meaning in the sense that I normally hop through from one server to an internal server via ssh, so i'll use the ServerAliveInterval to stop that connection dropping out.

Apologies for the confusion :)

I think I'll be having a good read of &lt;em&gt;man ssh&lt;/em&gt;</description>
		<content:encoded><![CDATA[<p>Yeah, I was meaning in the sense that I normally hop through from one server to an internal server via ssh, so i&#8217;ll use the ServerAliveInterval to stop that connection dropping out.</p>
<p>Apologies for the confusion <img src='http://muffinresearch.co.uk/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>I think I&#8217;ll be having a good read of <em>man ssh</em></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stuart Colville</title>
		<link>http://muffinresearch.co.uk/archives/2006/06/01/keeping-ssh-connections-alive/#comment-3016</link>
		<dc:creator>Stuart Colville</dc:creator>
		<pubDate>Thu, 01 Jun 2006 20:26:59 +0000</pubDate>
		<guid isPermaLink="false">http://muffinresearch.co.uk/archives/2006/06/01/keeping-ssh-connections-alive/#comment-3016</guid>
		<description>@Dave: I've updated the line regarding the config file so that it's less ambiguous. If you don't have a file called 'config' in the .ssh directory you will need to create it first. Running:

&lt;pre&gt;&lt;code&gt;vim config&lt;/code&gt;&lt;/pre&gt; 

Will create a new file ready for editing. The same is true for other command line text editors such as nano/pico too.

@Gary:

&lt;blockquote cite="#comment-3014"&gt;A good tip for the server side though, one to chalk down for later !&lt;/blockquote&gt;

Actually this isn't for the server. This configuration is to make the ssh command you use locally keep alive your connection. This way is better than a server-side configuration as not everyone will have access to the server's ssh configuration.

The sending of null packets that putty has sounds like the same thing for putty users. Well spotted.</description>
		<content:encoded><![CDATA[<p>@Dave: I&#8217;ve updated the line regarding the config file so that it&#8217;s less ambiguous. If you don&#8217;t have a file called &#8216;config&#8217; in the .ssh directory you will need to create it first. Running:</p>
<pre><code>vim config</code></pre>
<p>Will create a new file ready for editing. The same is true for other command line text editors such as nano/pico too.</p>
<p>@Gary:</p>
<blockquote cite="#comment-3014"><p>A good tip for the server side though, one to chalk down for later !</p></blockquote>
<p>Actually this isn&#8217;t for the server. This configuration is to make the ssh command you use locally keep alive your connection. This way is better than a server-side configuration as not everyone will have access to the server&#8217;s ssh configuration.</p>
<p>The sending of null packets that putty has sounds like the same thing for putty users. Well spotted.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gary</title>
		<link>http://muffinresearch.co.uk/archives/2006/06/01/keeping-ssh-connections-alive/#comment-3014</link>
		<dc:creator>Gary</dc:creator>
		<pubDate>Thu, 01 Jun 2006 19:31:12 +0000</pubDate>
		<guid isPermaLink="false">http://muffinresearch.co.uk/archives/2006/06/01/keeping-ssh-connections-alive/#comment-3014</guid>
		<description>Also, if you happen to use the excellent &lt;a href="http://www.chiark.greenend.org.uk/~sgtatham/putty/" rel="nofollow"&gt;Putty &lt;/a&gt; as your ssh client, it has a 'Sending of null packets' option in the Connection settings to help keep the connection alive.

A good tip for the server side though, one to chalk down for later !</description>
		<content:encoded><![CDATA[<p>Also, if you happen to use the excellent <a href="http://www.chiark.greenend.org.uk/~sgtatham/putty/" rel="nofollow">Putty </a> as your ssh client, it has a &#8216;Sending of null packets&#8217; option in the Connection settings to help keep the connection alive.</p>
<p>A good tip for the server side though, one to chalk down for later !</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave</title>
		<link>http://muffinresearch.co.uk/archives/2006/06/01/keeping-ssh-connections-alive/#comment-3013</link>
		<dc:creator>Dave</dc:creator>
		<pubDate>Thu, 01 Jun 2006 16:37:30 +0000</pubDate>
		<guid isPermaLink="false">http://muffinresearch.co.uk/archives/2006/06/01/keeping-ssh-connections-alive/#comment-3013</guid>
		<description>What's the "config file"

I don't seem to have one:
------------------------
host:~/.ssh dave$ ls -a ~/.ssh
  authorized_keys
  id_rsa.pub
  local.key
  id_rsa
  known_hosts</description>
		<content:encoded><![CDATA[<p>What&#8217;s the &#8220;config file&#8221;</p>
<p>I don&#8217;t seem to have one:<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
host:~/.ssh dave$ ls -a ~/.ssh<br />
  authorized_keys<br />
  id_rsa.pub<br />
  local.key<br />
  id_rsa<br />
  known_hosts</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stuart Colville</title>
		<link>http://muffinresearch.co.uk/archives/2006/06/01/keeping-ssh-connections-alive/#comment-3003</link>
		<dc:creator>Stuart Colville</dc:creator>
		<pubDate>Thu, 01 Jun 2006 14:53:15 +0000</pubDate>
		<guid isPermaLink="false">http://muffinresearch.co.uk/archives/2006/06/01/keeping-ssh-connections-alive/#comment-3003</guid>
		<description>@Tim: Thanks for keeping the flame burning for PC toting readers :-).

@Xaprb: Good point, that's one of the biggest benefits with screen and why everyone should check it out. For anyone new to screen there's a great overview here: &lt;a href="http://jmcpherson.org/screen.html" rel="nofollow"&gt;Gnu Screen&lt;/a&gt;.</description>
		<content:encoded><![CDATA[<p>@Tim: Thanks for keeping the flame burning for PC toting readers :-).</p>
<p>@Xaprb: Good point, that&#8217;s one of the biggest benefits with screen and why everyone should check it out. For anyone new to screen there&#8217;s a great overview here: <a href="http://jmcpherson.org/screen.html" rel="nofollow">Gnu Screen</a>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Xaprb</title>
		<link>http://muffinresearch.co.uk/archives/2006/06/01/keeping-ssh-connections-alive/#comment-3002</link>
		<dc:creator>Xaprb</dc:creator>
		<pubDate>Thu, 01 Jun 2006 14:39:04 +0000</pubDate>
		<guid isPermaLink="false">http://muffinresearch.co.uk/archives/2006/06/01/keeping-ssh-connections-alive/#comment-3002</guid>
		<description>My favorite thing to do is start a GNU Screen session once I'm connected to the remote machine.  If the connection goes down, no worries.  The screen session is still there.  I can re-connect and re-attach to the session.  Screen has become indispensable for my daily work, for this and dozens of other reasons (leave a long-running job at work, then re-connect and check on it from home, etc etc).</description>
		<content:encoded><![CDATA[<p>My favorite thing to do is start a GNU Screen session once I&#8217;m connected to the remote machine.  If the connection goes down, no worries.  The screen session is still there.  I can re-connect and re-attach to the session.  Screen has become indispensable for my daily work, for this and dozens of other reasons (leave a long-running job at work, then re-connect and check on it from home, etc etc).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tim</title>
		<link>http://muffinresearch.co.uk/archives/2006/06/01/keeping-ssh-connections-alive/#comment-3001</link>
		<dc:creator>Tim</dc:creator>
		<pubDate>Thu, 01 Jun 2006 14:15:16 +0000</pubDate>
		<guid isPermaLink="false">http://muffinresearch.co.uk/archives/2006/06/01/keeping-ssh-connections-alive/#comment-3001</guid>
		<description>Of course, if you're using SSH for SFTP, you could also depend apon your client software.

WinSCP has a rather handy "Remember last used directory" checkbox in it's session settings dialogs!

Not sure if that's &lt;em&gt;really&lt;/em&gt; relevant here, but it's saved me some headaches in the past!</description>
		<content:encoded><![CDATA[<p>Of course, if you&#8217;re using SSH for SFTP, you could also depend apon your client software.</p>
<p>WinSCP has a rather handy &#8220;Remember last used directory&#8221; checkbox in it&#8217;s session settings dialogs!</p>
<p>Not sure if that&#8217;s <em>really</em> relevant here, but it&#8217;s saved me some headaches in the past!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
