3 ms·
even better printf "<cmd>" | ssh bash or cat cmd.sh | ssh bash This passes all of stdin to the remote bash, avoiding any expansions happening on th
by heinrichhartman 7y ago
even better
printf "<cmd>" | ssh bash
or
cat cmd.sh | ssh bash
This passes all of stdin to the remote bash, avoiding any expansions happening on the local side entirely.