- 编辑
/etc/ssh/sshd_config
- 找到
# Authentication
项下的
PermitRootLogin prohibit-password
改成PermitRootLogin yes
- 重启 ssh
sudo systemctl restart sshd
/etc/ssh/sshd_config
# Authentication
项下的PermitRootLogin prohibit-password
改成 PermitRootLogin yes
sudo systemctl restart sshd