On Wed, 2022-08-24 at 16:37 +0000, David T-G wrote:
Hi, all --
1) How does the WSL app specify the user account as which to run? 2) How can I get sshd running to connect to my new instance?
I have just installed LEAP P15.4 under WSL and am having trouble with the running user. If I let yast2 create an account, then opening the app runs a shell as that user. I don't want that UID, though, so I tried changing it, and LEAP started as root. So I wiped it all and started over and skipped user creation and created me manually, and it still runs as root. I don't see where I can tell WSL what user to be when it fires off the LEAP instance.
In addition, I don't see how I can turn on sshd to support incoming connections. It wouldn't surprise me if I had to work with services in Windows, but I'd think I also need some magic inside the WSL instance. Has anyone done this?
And, of course, since this is all probably WSL problems, pointers to the proper forum are welcome :-)
TIA & HAND
:-D
1) There are [probably] a few options, but I don't follow what you're trying to do in this explanation. You _don't_ want to use the user you create? At all, or with sshd? 2) I do this regularly when booted into Windows 11. I basically have a 'startup script' (via runit) which gets sshd running (in a detached tmux session) and that's how I generally interface with WSLv2 Tumbleweed. I'm not much of a Leap user (I like shiny, new things), but I see NO reason why sshd/runit wouldn't also work in Leap 15.4. You can't use sshd in the traditional "service"/"systemd" sense off of any type of (non-MS) init, that's just not how WSL works at the moment, but could change. But I do use sshd in WSL w/ about 95% of that 'this does feel like linux' feeling 😉️ -- ~ Scott Bradnick |- Windows Subsystem for Linux (WSL) Developer |-- Tumbleweed: |--- Dell Precision 5540 [NVIDIA Quadro T1000] (x86_64) |--- O-DROID H2+ [UHD Graphics 600] (x86_64) |--- IceWhale ZimaBoard 832 [Intel HD Graphics 500] (x86_64) |--- 2x Raspberry Pi 4 Model B Rev 1.2 (aarch64) |--- 1x Raspberry Pi 3 Model B Rev 1.2 (aarch64) |--- WinBook TW100 (x86_64) https://keys.openpgp.org/ :: DBC5AA9A2D2BAEBC