sudo passwd root
sudo passwd --unlock root
sudo nano /etc/
sudo nano /etc/ssh/sshd_config
修改以下配置
PermitRootLogin yes
UsePAM no # raspbian-buster 版本需要
sudo systemctl reload ssh.service
sudo passwd root
sudo passwd --unlock root
sudo nano /etc/
sudo nano /etc/ssh/sshd_config
修改以下配置
PermitRootLogin yes
UsePAM no # raspbian-buster 版本需要
sudo systemctl reload ssh.service