Windows 安装配置 Ubuntu 系统内置子系统
https://www.jianshu.com/p/6d6e629df051
使用 xshell 登录 Windows 内置 Ubuntu 子系统
https://www.jianshu.com/p/039411d2c1f6
这个参考中开机自启的方式失败, 所有尝试另一种方法:
Ubuntu 的 sshd 设置开机自启, 但是启动 Windows 系统之后并未启动
设置 Windows 开机自启 Ubuntu 的 sshd
1, 进入 Windows 的启动目录
C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp
2, 创建快捷方式文件
StartUbuntuSSH.exe
3, 右键 StartUbuntuSSH.exe, 属性中设置如下图
目标: C:\Windows\System32\bash.exe -c "sudo service ssh start"
运行方式: 最小化
4, 重启 Windows, 然后登录 Ubuntu
SSH root@127.0.0.0.1
来源: http://www.bubuko.com/infodetail-2927820.html