ubuntu中开启root使用ssh登录

  1. vim /etc/ssh/sshd_config

  2. 将PermitRootLogin值改yes

  3. 重启服务:service ssh restart

你可能感兴趣的:(ubuntu中开启root使用ssh登录)