View Issue Details

IDProjectCategoryView StatusLast Update
0008159Kali Linux[All Projects] Kali Package Bugpublic2023-01-26 20:06
Reporterth3fr0x3n Assigned To 
PriorityhighSeverityblockReproducibilityalways
Status newResolutionopen 
Product Version2022.4 
Target VersionFixed in Version 
Summary0008159: WSL kex and SSH errors
DescriptionKali running in WSL failing to run kali in windows mode. ESM and SL will open.

Linking other issue https://bugs.kali.org/view.php?id=7586

as it seems very simular

creating new issue because I have the same error but also issues with running ssh.

SSH will not start for IPv4 was running systemd at one point and got the error report that ssh failed to bind to port 22 on 0.0.0.0 because the address was already in use.
Steps To Reproducekex --win

sudo service ssh start

Activities

th3fr0x3n

2023-01-26 20:06

reporter   ~0017429

Okay, confession time.
I resolved half my problem.

SSH:
In order to access my kali image via SSH from other devices in my house I needed a way to get to the SSH server through my windows host machine. I accomplished this with a powershell script that I had gotten off the internet.

The script runs netsh portproxy commands that forward ports like 22 from the outside into the kali vm.

I set this script to run at startup and didn't have any issues starting services on the kali machine.

what changed?

I am not to sure but now if the port proxy is running for 22 the kali machine detects this as the port being used and fails to start up the service for the port.

Solution:

run the script after the ssh service is running and it works just fine.

However:

This still hasn't resolved the Kex issues so I am not sure if we should close this issue but seeing how the ssh problem was the only thing that made this issue unique from https://bugs.kali.org/view.php?id=7586 then I understand if the reasoning for resolving it.

NIC-BRIDGE.ps1 (1,255 bytes)

Issue History

Date Modified Username Field Change
2023-01-24 22:28 th3fr0x3n New Issue
2023-01-26 20:06 th3fr0x3n File Added: NIC-BRIDGE.ps1
2023-01-26 20:06 th3fr0x3n Note Added: 0017429