add tool.
Some checks failed
Deploy Applications / PullDocker (push) Failing after 6m52s
Deploy Applications / Build (push) Failing after 2s
Windows CI / build (push) Has been cancelled

This commit is contained in:
2025-10-22 21:51:15 +08:00
parent 0354a73175
commit a842d429b7
6 changed files with 397 additions and 1 deletions

9
resources/wsl2_ssh.ps1 Normal file
View File

@@ -0,0 +1,9 @@
wsl -u root -e sh -c "service ssh start"
$wsl_ip = (wsl hostname -I).trim()
netsh interface portproxy delete v4tov4 listenport=1022
netsh interface portproxy add v4tov4 listenport=1022 connectport=1022 connectaddress=$wsl_ip
netsh interface portproxy delete v4tov4 listenport=2049
netsh interface portproxy add v4tov4 listenport=2049 connectport=2049 connectaddress=$wsl_ip