美文网首页Windows平台开发技术
Windows 10安装Ubuntu子系统

Windows 10安装Ubuntu子系统

作者: 尘与飞 | 来源:发表于2019-10-07 15:57 被阅读0次

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.

效果图:

相关文章

网友评论

    本文标题:Windows 10安装Ubuntu子系统

    本文链接:https://www.haomeiwen.com/subject/scxxsttx.html