yum update
yum install openssh-server
systemctl status sshd编辑配置文件:
vi /etc/ssh/sshd_config找到配置行**
#PermitRootLogin prohibit-password**修改配置为:PermitRootLogin yes重启服务:
systemctl restart sshd参考资料:https://aplushosting.asia/knowledgebase/30/Centos-9-SSH-Installation.html