切换主题
首先是给 root 创建一个新的账号
sudo passwd root
然后输入密码即可。
然后是编辑 ssh 配置文件(在树莓派和 ubuntu 下配置文件地址都是一样的)
sudo vim /etc/ssh/sshd_config
调整 PermitRootLogin 参数值为 yes
PermitRootLogin
yes
同时将 PasswordAuthentication yes 前面的 # 号去掉即可
PasswordAuthentication yes
#
最后需要重启 ssh 服务。
ssh
service sshd restart
4634b