?How to switch from WSL store version to in-Windows version

Currently there is a known issue in Windows 11 where installing the store version of WSL (which I believe is default via wsl --install) means that one cannot use wsl when SSH’d into the machine.

However, by the time I discovered this was a problem, I already had the store version installed. I would like to properly switch to the “in-Windows” version of WSL mentioned on the troubleshooting page, but unfortunately it does not link to instructions on how best to do so. I have tried to run e.g.,

wsl --uninstall
wsl --update --web-download

But this appears insufficient–I still get The file cannot be accessed by the system. when running wsl over ssh. Current WSL version: 2.3.26.0.

Ultimately, I would like to run rsync on Debian to get some files from windows, e.g.,

rsync -vPn --rsync-path='wsl rsync' --remove-source-files my_user@my_ip:/mnt/c/rsync_testing .

But so far it seems setting up WSL is prerequisite.