Skip to content

Disposing a ShellStream instance shouldn't disconnect the SshClient instance which created it #459

Closed
@ahelwer

Description

@ahelwer
using (SshClient ssh = new SshClient(address, username, password) {
    ssh.Connect()
    using (ShellStream shell = ssh.CreateShellStream("xterm", 80, 80, 80, 80, 1024)) {
        // Do stuff
    }

    // I expect to be able to use the SshClient instance here but in fact it is disconnected
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions