一、打开远程
点击桌面:这台电脑-属性

2:点击更改属性

3:根据下图箭头提示选择,在选择用户中选择当前登录用户的子。


二:Windows 端口映射
Windows 更新至 WSL2 之后,主机无法直接访问 IP 访问端口 WSL。
若想要远程 ssh 登录到 WSL2,需要在 Windows 与 WSL2 之间使用 netsh 配置端口映射。
1.建立端口映射
netsh interface portproxy add v4tov4 listenport=10050 listenaddress=106.15.74.31 connectport=10050 connectaddress=172.29.255.209
2.删除端口映射
netsh interface portproxy delete v4tov4 listenport=10050 listenaddress=106.15.74.31
三、检查端口映射
netsh interface portproxy show all
DHCP WDS系统部署
windows server DHCP代理配置
Windows_server2016年远程提示凭证过期共享,无需输入密码共存