1、su -            #!!!

2、vi /etc/ssh/sshd_config

3、PermitRootLogin yes    # 找到此字段,改为此行所示

4、/etc/init.d/ssh restart    # 重启ssh服务 

相关文章: