PDA

View Full Version : Kali running in WSL issues with Kex and ssh



th3fr0x3n
2023-01-24, 22:12
I am trying to get a handle on some issues that I have been having with Kali running in WSL. For the sake of being clear I went througha fresh install of kali and the problems persisted.

To replicate i followed all the steps provided in https://www.kali.org/docs/wsl/win-kex/

When running kex it fails in window mode:

5199

ESM and SL mode work

But on top of that SSH fails to work for IPv4:

On a prior build i enabled systemd and was able to see this error:

5200

I modified the sshd_config line "addressfamily inet" to force ssh over IPv4 but that resulted in the service completly failing.

generally speaking I am wondering if anyone else is running Kali in WSL and have you seen these problems and have a possible solution.

Mik3
2023-01-28, 02:34
Whether you are new or not, it is preferable to run the most recent Kali on a virtual machine.

th3fr0x3n
2023-02-02, 17:24
Running Kali as a VM might be preferable to some, but running a WSL instance best fits my uses.