[ 
https://issues.apache.org/jira/browse/SSHD-93?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12921986#action_12921986
 ] 

Guillaume Nodet commented on SSHD-93:
-------------------------------------

When the server receives the SSH_MSG_DISCONNECT on a session, it closes down 
all channels, and the currently executed command should have its destroy() 
method called.
Isn't that the case for you?

> Detect SSH_MSG_DISCONNECT
> -------------------------
>
>                 Key: SSHD-93
>                 URL: https://issues.apache.org/jira/browse/SSHD-93
>             Project: MINA SSHD
>          Issue Type: Question
>    Affects Versions: 0.4.0
>            Reporter: Russ Tennant
>            Priority: Minor
>
> Is there a way for a org.apache.sshd.server.Command to detect that a user has 
> disconnected? I'd like to shutdown my command shell when this happens. For 
> example, when a user disconnects their SSH client (e.g open ssh "~.").  

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to