Skip to content

SSH Client Stream - No notification of remote closed #507

Closed

Description

@OlHall

We have a use case where we need to open an SSH client to a remote host and communicate as a stream - i.e. it's not a command/response.

This works fine with CreateShellStream() and the DataReceived event handles incoming unsolicited data.

However, we're seeing the remote end is sometimes closed (gracefully - we see the FIN/ACK in wireshark), but our local end doesn't get any notification event raised. At worst I was hoping we'd get an ErrorOccured event on either the client or the stream, but nope.

The first we find out is a call to IsConnected returning false - and polling isn't cool.

Is this a deficiency of the library or am I doing something wrong. I'd read the docs... if there were any ;)

Activity

  1. Rob-Hague commented on Oct 19, 2026

    @Rob-Hague
    Collaborator

    added in #1332 / 2024.0.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions