香港VPScentos7重装ssh服务方法:
重装之前先要卸载之前安装的服务通过rpm命令查看openssh的安装情况rpm -qa openssh*
通过yum remove命令卸载yum remove openssh*重装:yum -y install openssl openssh-serveryum -y install openssh*vi /etc/ssh/sshd_config
启动服务systemctl start sshd设置开机自启systemctl enable sshd