Skip to content

reverse ssh leaves port opened on the server #2

@vallettea

Description

@vallettea

if the modem hangs up unexpectedly after having issued the command:

ssh -N -R 2222:localhost:22 ants

then he cannot issue the command again because on the server the port is already in use:

$netstat -na
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State
tcp        0      0 127.0.0.1:2222          0.0.0.0:*               LISTEN

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