1.安装 SSH 服务(WSL 内) sudo apt update sudo apt install openssh-server -y 2.启动 SSH 服务 # 启动 sudo service ssh start # 检查状态,active (running) 表示运行中 sudo service ssh status 3.设置允许登录 找到以下两个配置 # 编辑配置 sudo nano /etc/ssh/sshd_config # 允许密码登录 PasswordAuthentication yes # 允许…
