Re: Feature Request: Sync via `wsl --exec`

Tõivo Leedjärv <[email protected]>
Newsgroups gmane.network.unison.general
Message-ID <CAALvpZSKmbe8PkctQLc95zXxmRQfJacUX04Xz-KjL2ARkxeggg@mail.gmail.com>
On Fri, 6 Oct 2023 at 13:10, YAMAMOTO Yuji <[email protected]> wrote:
>
> Currently I have to install openssh-server and my public key on
> Linux only for Unison, which is a little cumbersome.

You shouldn't really have to do that. You can use the -socket argument
instead to start a listening server. (It should also be possible to
use inetd or similar, like systemd activation; with a different
argument. I haven't tried it, so I'm not going to explain it here.)
You can additionally use the -listen argument to specify the addresses
to listen on.

On the client, instead of ssh://user@wsl/... you can then specify
socket://wsl:port/...

I don't know how WSL networking works so make sure that you use the
-listen argument and/or configure the firewall so that the listening
port is not exposed to beyond the local machine.

> Now, I want to propose adding a new feature that enables unison
> to synchronize with the WSL VM via the `wsl --exec` command
> instead of `ssh`. `wsl --exec` can run arbitrary commands after
> automatically launching a WSL VM, which could make it feasible.

This shouldn't be too hard to accomplish (except for CI testing to
keep it working in future...) but I don't think it's really needed
because of the solution above.

-- 
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.