启用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
本文档指导如何在Windows10的Bash on Ubuntu环境中配置SSH服务,包括移除和重新安装OpenSSH服务器组件、调整sshd_config文件设置以确保安全连接、禁用可能冲突的Windows SSH服务以及重启SSH服务。
416

被折叠的 条评论
为什么被折叠?



