卸载ssh服务
yum remove ssh
安装ssh服务
1、首先检查是否卸载干净
rpm -qa | grep ssh
2、安装ssh命令
yum install openssh-server -y
3、打开vi etc/ssh/sshd_config编辑
将上图的PermitRootLogin,RSAAuthentication,PubkeyAuthentication的设置打开 取消#号
备注:#号是注释的意思
4、启动ssh的服务:
systemctl start sshd.service
5、设置开机自动启动ssh服务
systemctl enable sshd.service
文章不错非常喜欢
文章不错支持一下吧