使用 SSH连接Ubuntu on Windows (WSL)
Contents
首先是卸载重装一遍ssh服务,这里不是很确定是不是自带ssh服务有没有问题。
sudo apt-get remove openssh-server sudo apt-get install openssh-server
编辑sshd_config文件
sudo vim /etc/ssh/sshd_config
PasswordAuthentication yes # 允许用户名密码方式登录
修改完重启ssh服务
sudo service ssh restart
查看ssh服务
sudo service ssh status * sshd is running
可以使用SSH客户端连接WSL
相关文章: