Russh
Rust SSH client & server library
...It exposes building blocks for authentication, channel management, port forwarding, and key handling, allowing you to embed SSH functionality directly into Rust applications. The API is designed to be explicit and composable, making it possible to implement custom behaviors like reverse tunnels, interactive shells, and service multiplexing. Because performance and safety are central, the code leverages Rust’s type system to reduce classes of runtime errors common in network protocol implementations. The project also includes examples and discussion threads that show how other tools integrate it for web-based clients or gateway services. ...