1. 使用默认用户pi,密码raspberry登录树莓派
  2. sudo passwd root #给root账户设置密码
  3. sudo passws --unlock root #解除root账户锁定

开启root账户远程登录ssh

  1. su #切换到root用户
  2. echo "PermitRootLogin yes" >> /etc/ssh/sshd_config
    也可直接编辑/etc/ssh/sshd_config,将PermitRootLogin without-password修改为 PermitRootLogin yes
  3. reboot

相关文章:

  • 2021-12-31
  • 2022-02-15
  • 2022-12-23
  • 2021-11-30
  • 2021-08-15
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-07-24
  • 2021-06-30
  • 2021-08-22
  • 2021-07-27
  • 2022-01-22
  • 2022-01-17
相关资源
相似解决方案