Subject: Re: SSH Connected Status

Re: SSH Connected Status

From: Dan Fandrich <>
Date: Thu, 14 Jul 2011 15:56:17 -0700

On Thu, Jul 14, 2011 at 03:17:43PM +0300, Popescu Claudiu wrote:
> Is there a not too complicated way to check if a ssh session is still active?

You can check whether the connection is up or not by calling poll() or select()
on the socket and looking for an error. That should cover most situations when
a session has unknowingly been closed.

>>> Dan
Received on 2011-07-15