1安装
yum -y install openssh openssh-clients openssh-server openssh-askpass
2修改 vim /etc/ssh/sshd_config

PermitRootLogin yes
StrictModes yes
UsePAM yes

3重启ssh
systemctl restart sshd