Windows平台开发技术

Windows 10安装Ubuntu子系统

2019-10-07  本文已影响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.

效果图:

上一篇 下一篇

猜你喜欢

热点阅读