3 ms·
A while ago I wrote a Rust crate to deal exactly with this problem (which is a problem if you want to use SSH programmatically to run commands remotely). The R
by Wicher 3y ago
A while ago I wrote a Rust crate to deal exactly with this problem (which is a problem if you want to use SSH programmatically to run commands remotely).
The README contains my own explanation of the phenomenon.
https://crates.io/crates/arghsh https://crates.io/crates/arghsh
- pcthrowaway 3y agoGood call shelling out there instead of trying to pass it to ssh using the ssh bindings lib, as Rust doesn't have an up to date one