I got tired of escaping quotes in SSH commands, so I made a small CLI tool that sidesteps the problem entirely.
I built a CLI tool and Rust crate that solves a problem I kept running into shell escaping breaking commands when piping them through SSH, Docker exec, kubectl exec, or cron. The idea is simple. In...

Source: DEV Community
I built a CLI tool and Rust crate that solves a problem I kept running into shell escaping breaking commands when piping them through SSH, Docker exec, kubectl exec, or cron. The idea is simple. Instead of fighting with nested quotes and backslashes, you pipe your command through entrouter, which base64-encodes it locally, sends it to the target, decodes it there, and executes it. The command never touches an intermediate shell, so quotes, JSON, special characters all arrive intact. echo 'curl -s -X POST -H "Content-Type: application/json" -d {"key":"value"} http://localhost:3000/api' | entrouter ssh root@your-vps No escaping. First try. Every time. What it does: entrouter ssh - run commands on remote machines without escaping entrouter docker - run commands inside containers without escaping entrouter kube - run commands inside Kubernetes pods without escaping entrouter cron [schedule] - encode commands into cron-safe lines (no % breakage) entrouter exec - decode and execute locally (