可以通过这条命令查看卸载前后的openssh相关服务安装情况
rpm -qa openssh*
卸载
yum remove openssh*
#安装
yum install openssh-server
#修改配置文件
vim /etc/ssh/sshd_config
#修改以下内容: 图片已保存见下面
Port 22
PermitRootLogin yes
PubkeyAuthentication yes
.ssh/authorized_keys
重启ssh
systemctl start sshd
开机自启动
systemctl enable sshd