原因

windows自带的终端操作丑陋,习惯xshell的操作

 

步骤

1.关闭windows自带的ssh服务,这个占用了22端口

windows 子系统 linux wsl 开启ssh 服务

2.wsl 安装ssh服务(使用的是ubuntu)

sudo apt install openssh-server

3.修改配置文件

sudo vim /etc/ssh/sshd_config

关键的几处修改

windows 子系统 linux wsl 开启ssh 服务

windows 子系统 linux wsl 开启ssh 服务

4.启动服务

sudo service ssh start

 

相关文章:

  • 2022-02-08
  • 2022-12-23
  • 2021-07-22
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-04-05
猜你喜欢
  • 2021-12-11
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-19
  • 2022-12-23
相关资源
相似解决方案