Skip to content

[Feature Request] Add IsConnected() method to check session status #1684

@b-maslennikov

Description

@b-maslennikov

The existing IsConnected property does not always reliably reflect the actual state of the SSH session. For example, it may still return true even if the connection has silently dropped due to network issues or server-side timeouts.

It would be helpful to have a method like IsConnected() that actively attempts to communicate with the server (e.g., by sending a keep-alive packet or executing a lightweight command) to verify whether the session is still alive. This would improve robustness in long-running applications and allow developers to handle disconnections more gracefully.

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