I ran into the same problem (with respect to keyboard activity). You can create a timer that fires when your inactivity criteria is met. You can restart your timer when a carriage return is entered or if a single character is typed. When the timer function executes make sure you clean-up the appropriate resources (file descriptors, memory, etc). Hope this helps.<br>
<br>
<div><span class="gmail_quote">On 9/3/08, <b class="gmail_sendername">Ming-Ching Tiew</b> &lt;<a href="mailto:mingching.tiew@redtone.com">mingching.tiew@redtone.com</a>&gt; wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Ming-Ching Tiew wrote:<br>&gt; I am using dropbear as sshd server and dbclient as ssh client<br>&gt; and I do reverse port forward between the client and the server<br>
&gt; ( ie it does not start shell ). That has been working.<br>&gt;<br>&gt; And I want to have an activitity disconnect after certain<br>&gt; period of inactivity from the client. How can I do it ?<br>&gt;<br><br>I did some search, and I have come to conclusion that<br>
dropbear could not do it, and openssh daemon could<br>not do it too ! I am surprised !<br><br>Anyone as a workaround ?<br><br><br><br><br><br></blockquote></div><br>