/etc/ssh/sshd_config中

1、PermitRootLogin由no改为yes

2、AllowUsers root

 

最后 service ssh restart

更多推荐

SSH出现Access Denied解决方法