查看centOS 关于ssh

root权限下 

rpm -qa|grep ssh      --查看ssh安装状态

servic sshd start  --开启ssh服务

servic sshd stop  --关闭ssh服务

servic sshd restart  --重启ssh服务

netstat -antp|grep sshd   --查看ssh服务使用的端口

原文地址:https://www.cnblogs.com/cmelody/p/7055551.html