ssh
ssh copied to clipboard
Fix #22 Properly close channels
Fix for #22 There were two bugs:
- The client must ack the SSH_MSG_CHANNEL_CLOSE message (RFC4254 section 5.3)
- The client was using it's own channel ID as if the server was using the same one. The client must read the sender channel when receiving a SSH_MSG_CHANNEL_OPEN_CONFIRMATION message (RFC4254 section 5.1)