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