Hacker News .hnnew | past | comments | ask | show | jobs | submitlogin

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



Good 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




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: