Skip to content

throw Disconnected instead ChannelOpenError SSH connection closed? #212

@NewUserHa

Description

@NewUserHa

I'm making a thing to detect the online status of machines and retire other status using run.

already know asyncssh will throw ChannelOpenError: SSH connection closed either if disabling target network service or kill the ssh process.
shouldn't throw disconnect for that situation? otherwise when will throw that exactly?

And is there a good way for retry ssh connect with asyncssh, please?
And I did some tests but couldn't figure out what is keepalive_interval for. would you like to share those info in document page?
thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions