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