root连接SSH登录提示Access denied错误?

root连接SSH登录提示Access denied是因为禁止root登录导致,解决方法如下:

vi /etc/ssh/sshd_config

把这一行PermitRootLogin without-password
改成PermitRootLogin yes
保存后重启sshservice sshd start