Windows 10安装Ubuntu子系统

Windows 10安装Ubuntu子系统

第一步、控制面板-程序和功能-启用和关闭Windows功能-适用于Linux的Windows子系统(勾选)

第二步、应用商店搜索Ubuntu

第三步、CMD-输入命令`bash`

使用SSH工具连接Ubuntu子系统

1. sudo apt-get purge openssh-server

2. sudo apt-get install openssh-server

3. sudo nano /etc/ssh/sshd_config and disallow root login by setting PermitRootLogin no

4.Then add a line beneath it that says:

        `AllowUsers yourusername`

and make sure PasswordAuthentication is set to yes if you want to login using a password.

5. Disable privilege separation by adding/modifying : UsePrivilegeSeparation no

6. sudo service ssh --full-restart

7. Connect to your Linux subsystem from Windows using a ssh client like PuTTY.

效果图:

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容