Windows10 WSL Ubuntu中安装ssh server

1. window配置

  1. Windows10 WSL Ubuntu中安装ssh server
  2. 开启win10下Ubuntu子系统的SSH服务 并设置为开机启动

2. mac 连接 ubuntu

  1. Mac 上玩 Linux(三)使用 SSH 连接 Ubuntu

3. 常用命令

  1. 启动 ssh
sudo /etc/init.d/ssh start

如果用

service ssh start

则会报错

mkdir: cannot create directory ‘/run/sshd’: Permission denied
  1. 查看 ssh 状态
service ssh status

猜你喜欢

转载自blog.csdn.net/weixin_41888257/article/details/111240455