I have Windows 10 Home w/o Hyper-V and Ubuntu running on WSL. In Ubuntu, I had was able to run SSH server with sudo service ssh start
.
After that I decided to install k9s from the Snap Store, but Ubuntu on WSL doesn't have Snap Store. To resolve this tried this steps here:
sudo apt-get update && sudo apt-get install -yqq daemonize dbus-user-session fontconfigsudo daemonize /usr/bin/unshare --fork --pid --mount-proc /lib/systemd/systemd --system-unit=basic.targetexec sudo nsenter -t $(pidof systemd) -a su - $LOGNAME
... but this was unsuccessful. I received some error about hypervisor.
The main problem is that now, when I try to run SSH server with the same command as above, I get the error:
Failed to start ssh.service: transport endpoint is not connected
Please help me recover Ubuntu to a state where I can run SSH again.