WSL2 安装配置
修改网络是 mirrored
https://learn.microsoft.com/en-us/windows/wsl/networking#mirrored-mode-networking
在 windows terminal 中在相同路径打开标签页
https://learn.microsoft.com/en-us/windows/terminal/tutorials/new-tab-same-directory
https://github.com/MicrosoftDocs/terminal/issues/630#issuecomment-1374055494
windows terminal 自动设置标签页标题
其他设置-> 终端仿真
SSH 登录 WSL
windows 默认会占用 22 端口,所以需要修改 WSL 的 SSH 端口为 2222
修改 /etc/ssh/sshd_config 中的 Port 为 2222
sudo vi /etc/ssh/sshd_config
sudo systemctl daemon-reload
sudo systemctl restart ssh
ssh -p 2222 root@localhost