Uploaded image for project: 'MINA SSHD'
  1. MINA SSHD
  2. SSHD-827

Dynamic port forwarding server closes session after first unsuccessful connection

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.6.0, 1.7.0, 2.0.0
    • 2.1.0
    • None
    • Patch

    Description

      After first unsuccessful connection attempt through proxy dynamic port forwarding socket gets closed. How to reproduce:

      1. Setup dynamic port forwarding
      2. Try connecting to unreachable host through proxy

      The reason for this is because sshd tries to do graceful channel close on channel that hasn't been opened. After unsuccessful attempt to open forwading channel to unreachable host sshd sends SSH_MSG_CHANNEL_CLOSE to which SSH server responds with error and the whole session is going down (tested with SSH-2.0-OpenSSH_5.3).

      I've attached a patch with fix proposal. In my case that fixed the issue.

      Attachments

        1. close_immedietely.patch
          1 kB
          Jaroslaw Koscinski

        Issue Links

          Activity

            People

              Unassigned Unassigned
              janwar Jaroslaw Koscinski
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: