1 unstable release

0.1.0 Aug 4, 2023

#10 in #ssh-tunnel

Download history 28/week @ 2023-10-30 31/week @ 2023-11-06 31/week @ 2023-11-13 30/week @ 2023-11-20 43/week @ 2023-11-27 20/week @ 2023-12-04 1152/week @ 2023-12-11 1140/week @ 2023-12-18 267/week @ 2023-12-25 550/week @ 2024-01-01 1156/week @ 2024-01-08 1293/week @ 2024-01-15 1527/week @ 2024-01-22 1650/week @ 2024-01-29 1585/week @ 2024-02-05 2572/week @ 2024-02-12

7,387 downloads per month
Used in 3 crates (via openssh-mux-client)

MIT license




crate.io downloads

crate.io version


Rust library to communicate with openssh-mux-server using ssh_format.

The entire crate is built upon official document on ssh multiplex protocol.

Currently, I have written a few test cases to make sure the

  • health check
  • session opening
  • remote port forwarding
  • graceful shutdown of the ssh multiplex server
  • local port forwarding

are working as intended, while features

  • dynamic forwarding

are implemented but not tested.

There are also two features that I didn't implement:

  • forward stdio (stdin + stdout) to remote port (not that useful)
  • closure of port forwarding (according to the [document], it is not implemented yet by ssh)
  • terminating the ssh multiplex server for the ssh implementation is buggy (the server does not reply with the Ok message before it terminates).

While it is extremely likely there are bugs in my code, I think it is ready for testing.


To run tests, make sure you have bash, ssh and docker installed on your computer and run:



~23K SLoC