ubuntu18.04 root账号无法用ssh登录

vim /etc/ssh/sshd_config

找到#PermitRootLogin prohibit-password在后面添加一行

PermitRootLogin yes

保存退出后,重启ssh服务:/etc/init.d/ssh restart

你可能感兴趣的:(Z-Linux,ubuntu18.04,root账号无法ssh登录)