mirage / awa-ssh

Purely functional SSH library in ocaml.
ISC License
104 stars 12 forks source link

Client: send no-more-sessions@openssh.com #72

Closed reynir closed 9 months ago

reynir commented 9 months ago

Since we at the moment only support having one channel we could send no-more-sessions@openssh.com when connecting so the server, if it is aware of no-more-sessions@openssh.com, can close the connection once the last (and only) channel is closed. The feature is documented in openssh's PROTOCOL document.

reynir commented 9 months ago

Or maybe not:

NB. due to certain broken SSH implementations aborting upon receipt of this message, the no-more-sessions request is only sent to OpenSSH servers (identified by banner). Other SSH implementations may be listed to receive this message upon request.