18 releases

0.17.6 Sep 10, 2024
0.17.4 Jul 15, 2024
0.17.3 Oct 20, 2023
0.16.0 Sep 15, 2022
0.8.0 Nov 30, 2021

#469 in Network programming

Download history 6848/week @ 2024-08-16 8633/week @ 2024-08-23 7796/week @ 2024-08-30 8930/week @ 2024-09-06 8670/week @ 2024-09-13 8036/week @ 2024-09-20 8944/week @ 2024-09-27 9744/week @ 2024-10-04 7256/week @ 2024-10-11 6293/week @ 2024-10-18 8040/week @ 2024-10-25 5681/week @ 2024-11-01 6127/week @ 2024-11-08 4812/week @ 2024-11-15 3770/week @ 2024-11-22 3090/week @ 2024-11-29

19,196 downloads per month
Used in 6 crates (via openssh)

MIT license

66KB
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–11MB
~118K SLoC