Na toll - Freitag Vormittag und SSH geht nicht mehr.
Google anwerfen und siehe da - das Problem gibts seit September 2019. Danke.
https://github.com/microsoft/WSL/issues/4690
# PS
New-NetFirewallRule -DisplayName "WSL" -Direction Outbound -InterfaceAlias "vEthernet (WSL)" -Action Allow
https://github.com/microsoft/WSL/issues/3434
# PS
net stop LxssManager
net start LxssManager
# or:
Restart-Service "LxssManager"
# and
Restart-Service "Hostnetzwerkdienst"
https://github.com/microsoft/WSL/issues/4585
# PS
$myIp = (ubuntu run "cat /etc/resolv.conf | grep nameserver | cut -d' ' -f2")
New-NetFirewallRule -DisplayName "WSL" -Direction Inbound -LocalAddress $myIp -Action Allow
# or better:
New-NetFirewallRule -DisplayName "WSL" -Direction Inbound -InterfaceAlias "vEthernet (WSL)" -Action Allow
https://github.com/microsoft/WSL/issues/4139
# PS
Set-NetConnectionProfile -InterfaceAlias "vEthernet (WSL)" -NetworkCategory Private
New-NetFirewallRule -DisplayName "WSL" -Direction Inbound -InterfaceAlias "vEthernet (WSL)" -Action Allow
Set-NetFirewallProfile -Name $(Get-NetConnectionProfile).NetworkCategory -DisabledInterfaceAliases $(Get-NetAdapter | Where-Object Name -like 'WSL').Name
https://github.com/microsoft/WSL/issues/5256
sudo echo "nameserver 192.168.0.1" >> /etc/resolv.conf
https://github.com/microsoft/WSL/issues/1908
# sudo chattr +i /etc/resolv.conf
echo "[network]
generateResolvConf=false" >> /etc/wsl.conf
zwischendurch noch etliche Meldungen wegen DNS, MTU und VPN Problemen im Zusammenhang mit WSL2 ..
Lösung:
Muss leider sagen, dass keine der oben genannten Befehle funktioniert hat. Daher:
Windows Restart!
eine sh*t-show...