<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.2.2" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Secure shell (ssh) session timeout</title>
	<link>http://www.linuxscrew.com/2007/08/27/secure-shell-ssh-session-timeout/</link>
	<description>Put the screw on Linux!</description>
	<pubDate>Tue, 14 Oct 2008 07:54:06 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2.2</generator>

	<item>
		<title>By: artiomix</title>
		<link>http://www.linuxscrew.com/2007/08/27/secure-shell-ssh-session-timeout/#comment-140</link>
		<author>artiomix</author>
		<pubDate>Mon, 24 Sep 2007 08:07:35 +0000</pubDate>
		<guid>http://www.linuxscrew.com/2007/08/27/secure-shell-ssh-session-timeout/#comment-140</guid>
		<description>Hi P.E.,

Here are some directives of SSH server's sshd_config that are related to session timeouts:

ClientAliveInterval
TCPKeepAlive
KeepAlive

Here are some directives of client's ssh_config:

ServerAliveInterval
TCPKeepAlive

sshd_config and ssh_config are usually located at /etc/ssh directory of server and client.

These directives are are widely described by &lt;code&gt;man sshd_config&lt;/code&gt; and &lt;code&gt;man ssh_config&lt;/code&gt; but default settings may be different from distro to distro.

P.S. As for me, I found first tip of current post the most useful as it works brilliantly at every *nix machines I was working with via ssh (just make &lt;code&gt;ping 127.0.0.1&lt;/code&gt; when you're going to leave ssh terminal untouched for some time).

P.P.S. Another nice workaround is to use &lt;code&gt;screen&lt;/code&gt; utility.  In case you use it you can be sure that you won't loose any output of commands you've started. &lt;a href="http://www.linuxscrew.com/2007/08/06/keep-ssh-session-saved-unix-screen-utility/"&gt;Here&lt;/a&gt; is little notice how to use it.

Good luck!</description>
		<content:encoded><![CDATA[<p>Hi P.E.,</p>
<p>Here are some directives of SSH server&#8217;s sshd_config that are related to session timeouts:</p>
<p>ClientAliveInterval<br />
TCPKeepAlive<br />
KeepAlive</p>
<p>Here are some directives of client&#8217;s ssh_config:</p>
<p>ServerAliveInterval<br />
TCPKeepAlive</p>
<p>sshd_config and ssh_config are usually located at /etc/ssh directory of server and client.</p>
<p>These directives are are widely described by <code>man sshd_config</code> and <code>man ssh_config</code> but default settings may be different from distro to distro.</p>
<p>P.S. As for me, I found first tip of current post the most useful as it works brilliantly at every *nix machines I was working with via ssh (just make <code>ping 127.0.0.1</code> when you're going to leave ssh terminal untouched for some time).</p>
<p>P.P.S. Another nice workaround is to use <code>screen</code> utility.  In case you use it you can be sure that you won't loose any output of commands you've started. <a href="http://www.linuxscrew.com/2007/08/06/keep-ssh-session-saved-unix-screen-utility/">Here</a> is little notice how to use it.</p>
<p>Good luck!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: P.E.</title>
		<link>http://www.linuxscrew.com/2007/08/27/secure-shell-ssh-session-timeout/#comment-137</link>
		<author>P.E.</author>
		<pubDate>Mon, 24 Sep 2007 02:44:06 +0000</pubDate>
		<guid>http://www.linuxscrew.com/2007/08/27/secure-shell-ssh-session-timeout/#comment-137</guid>
		<description>I've been trying to deal with the freezing of ssh sessions on a debian etch box (kernel:2.6.18-5-686)  for a while and have not had much luck.

Sessions freeze after just a few minutes of inactivity - even if I am sitting in pine.

echo "7200" &#62; /proc/sys/net/ipv4/tcp_keepalive_time
did not make any difference. Actually, 7200 was already stored in that file.

This is a new problem which I did not have before upgrading from Mandrake 10 to Debian.
Under Mandrake, idle sessions would get logged off (as opposed to frozen) after a reasonable interval.

Can you suggest other things that I could try?

Thanks!

P.E.</description>
		<content:encoded><![CDATA[<p>I've been trying to deal with the freezing of ssh sessions on a debian etch box (kernel:2.6.18-5-686)  for a while and have not had much luck.</p>
<p>Sessions freeze after just a few minutes of inactivity - even if I am sitting in pine.</p>
<p>echo "7200" &gt; /proc/sys/net/ipv4/tcp_keepalive_time<br />
did not make any difference. Actually, 7200 was already stored in that file.</p>
<p>This is a new problem which I did not have before upgrading from Mandrake 10 to Debian.<br />
Under Mandrake, idle sessions would get logged off (as opposed to frozen) after a reasonable interval.</p>
<p>Can you suggest other things that I could try?</p>
<p>Thanks!</p>
<p>P.E.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
