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.

On 9/3/08, Ming-Ching Tiew <[EMAIL PROTECTED]> wrote:
>
> Ming-Ching Tiew wrote:
> > I am using dropbear as sshd server and dbclient as ssh client
> > and I do reverse port forward between the client and the server
> > ( ie it does not start shell ). That has been working.
> >
> > And I want to have an activitity disconnect after certain
> > period of inactivity from the client. How can I do it ?
> >
>
> I did some search, and I have come to conclusion that
> dropbear could not do it, and openssh daemon could
> not do it too ! I am surprised !
>
> Anyone as a workaround ?
>
>
>
>
>
>

Reply via email to