centos7开启远程ssh以root用户密码登入

以root权限执行以下命令
vim /etc/ssh/sshd_config
开启下面2行的命令,并设置为yes

#默认为no,需要开启root用户访问改为yes
PermitRootLogin yes   
#默认为no,改为yes开启密码登陆       
PasswordAuthentication yes    
原文地址:https://www.cnblogs.com/InternetJava/p/15731333.html