首先先给自己的Ubuntu 创建一个root密码。毕竟登陆的时候都是用户登陆的。

  在 命令行中输入  sudo passwd // 设置root密码

  password for func : //输入用户的密码

  Enter new UNIX password: //提示输入新的root帐户密码
  Retype new UNIX password:  //再输入一次确认密码

  Ubuntu 16.04 ssh协议连接root管理员用户

   然后在/etc/ssh/sshd_config 修改该配置文件:

   Ubuntu 16.04 ssh协议连接root管理员用户

    将 PermitRootLogin without-password 修改为 PermitRootLogin yes 

    最后重启一下 ssh 

    sudo /etc/init.d/ssh restart

    Ubuntu 16.04 ssh协议连接root管理员用户

 

     大功告成。

    

相关文章:

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