1、查看是否安装了相关软件:
rpm -qa|grep -E \"openssh\"
显⽰结果含有以下三个软件,则表⽰已经安装,否则需要安装缺失的软件openssh-ldap-6.6.1p1-35.el7_3.x86_64 openssh-clients-6.6.1p1-35.el7_3.x86_64 openssh-6.6.1p1-35.el7_3.x86_64
openssh-askpass-6.6.1p1-35.el7_3.x86_64 openssh-server-6.6.1p1-35.el7_3.x86_64 openssh-keycat-6.6.1p1-35.el7_3.x86_64
openssh-server-sysvinit-6.6.1p1-35.el7_3.x86_642、安装缺失的软件:
sudo yum install openssh*
3、注册使⽤服务:
sudo systemctl enable sshd sudo systemctl start sshd 或者service sshd start
sudo firewall-cmd --zone=public --add-port=22/tcp --permanent sudo service firewalld restart
因篇幅问题不能全部显示,请点此查看更多更全内容