vi /etc/ssh/sshd_config——编辑SSH服务配置文件
sshd_config文件里找到PermitRootLogin所在行,按i键进行修改。
no改成yes
Ctrl+C,输入:wq
service sshd restart——重启SSH服务