i made `rr` (remote run) for a use-case very similar to this.
it expects the remote fs is mounted under .../ssh/HOSTNAME/ and runs any command in that dir on the remote host.
if it is not the root which is mounted, looks up mtab for the remote base directory.
it expects the remote fs is mounted under .../ssh/HOSTNAME/ and runs any command in that dir on the remote host. if it is not the root which is mounted, looks up mtab for the remote base directory.
https://codeberg.org/hband/hband-tools/src/branch/master/use...