15 releases

0.17.3 Oct 20, 2023
0.17.1 Aug 28, 2023
0.16.0 Sep 15, 2022
0.15.0 Mar 21, 2022
0.8.0 Nov 30, 2021

#335 in Network programming

Download history 3504/week @ 2024-01-03 4025/week @ 2024-01-10 4796/week @ 2024-01-17 4516/week @ 2024-01-24 4773/week @ 2024-01-31 4597/week @ 2024-02-07 6014/week @ 2024-02-14 4605/week @ 2024-02-21 5354/week @ 2024-02-28 5040/week @ 2024-03-06 3903/week @ 2024-03-13 6495/week @ 2024-03-20 4206/week @ 2024-03-27 6101/week @ 2024-04-03 4945/week @ 2024-04-10 5169/week @ 2024-04-17

21,280 downloads per month
Used in 5 crates (via openssh)

MIT license

61KB
1.5K SLoC

openssh-mux-client

Rust

crate.io downloads

crate.io version

docs

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.

Development

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

/path/to/repository/run_test.sh

Dependencies

~3–14MB
~135K SLoC