Skip to content

Sessions are closed after port-forwarded connection completes #473

@systemmonkey42

Description

@systemmonkey42

Using the latest MASTER of SSHPortal, I noticed my client connections disconnected
randomly.

It turns out the session check in pkg/bastion/ssh.go calls "conn.close" within 30 seconds of a port-forward session completing. This consistently disconnected the client.

I've commented it out for now, since it isnt clear what it achieves (the pipe() handling has already closed the session afaict).

Is there a correct way to handle those? Port forwarding is a critical feature for me.

...

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