Remote port forwarding (reverse tunneling) with Russh to serve an Axum application.
Find a file
2024-09-22 15:05:15 -03:00
src Use AtomicUsize and simplify spans 2024-09-22 15:05:15 -03:00
.gitignore Initial commit 2024-09-04 20:27:14 -03:00
Cargo.lock Add support for localhost.run 2024-09-07 11:04:28 -03:00
Cargo.toml Add support for localhost.run 2024-09-07 11:04:28 -03:00
LICENSE Add license 2024-09-09 11:37:45 -03:00
README.md Add support for localhost.run 2024-09-07 11:04:28 -03:00

Russh + Axum + tcpip_forward!

A Rust project demonstrating how to serve Axum's HTTP server on a remote host's port, using SSH tunneling and streaming to avoid opening a socket on the client.

Tokio, Tower, and hyper are responsible for gluing everything together with async. They are pretty awesome!

Usage

With localhost.run:

cargo run -- localhost.run -i ~/.ssh/id_ed25519 -l username --request-pty ""

With sish:

cargo run -- tuns.sh -i ~/.ssh/id_ed25519 -R test