WSL2

Q&A

如何配置wsl 2资源限制

%UserProfile%\.wslconfig
[wsl2]
memory=6GB
swap=0
localhostForwarding=true

重启wsl 2

打开 任务管理器 -> 服务,重启LxssManager服务

如何通过ssh连接wsl 2

重装openssh-server

配置sshd

重启sshd

在windows宿主机上测试连接

最后更新于