Ubuntu On Windows 10启用SSH服务

启用SSH服务

How can I SSH into “Bash on Ubuntu on Windows 10”
1. sudo apt-get remove openssh-server
2. sudo apt-get install openssh-server
3. 编辑/etc/ssh/sshd_config。禁用root登录,PermitRootLogin no;允许登录,AllowUsers yourusername;可选启用密码验证,PasswordAuthentication yes;禁用权限控制,UsePrivilegeSeparation no
4. 禁用Windows服务SSH Server Broker Services,他会占用22端口
5. sudo service ssh --full-restart

你可能感兴趣的:(windows,ubuntu,ssh,linux)