11 releases

0.16.0 Sep 15, 2022
0.15.1 Aug 31, 2022
0.15.0 Mar 21, 2022
0.11.0 Dec 27, 2021
0.8.0 Nov 30, 2021

#1399 in Network programming

Download history 60/week @ 2022-10-07 80/week @ 2022-10-14 98/week @ 2022-10-21 147/week @ 2022-10-28 105/week @ 2022-11-04 60/week @ 2022-11-11 63/week @ 2022-11-18 84/week @ 2022-11-25 38/week @ 2022-12-02 69/week @ 2022-12-09 72/week @ 2022-12-16 153/week @ 2022-12-23 118/week @ 2022-12-30 111/week @ 2023-01-06 87/week @ 2023-01-13 66/week @ 2023-01-20

457 downloads per month
Used in 3 crates (via openssh)

MIT license

56KB
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

~2.9–7.5MB
~122K SLoC