香港vpscentos7重裝ssh服務(wù)方法:
重裝之前先要卸載之前安裝的服務(wù)
通過(guò)rpm命令查看openssh的安裝情況
rpm -qa openssh*
通過(guò)yum remove命令卸載
yum remove openssh*
重裝:
yum -y install openssl openssh-server
yum -y install openssh*
vi /etc/ssh/sshd_config
啟動(dòng)服務(wù)
systemctl start sshd
設(shè)置開(kāi)機(jī)自啟
systemctl enable sshd