查看是否安装
rpm -qa | grep ssh

查看是否启动
ps -e | grep ssh

查看端口号
netstat -ntlp | grep ssh

查看状态:
systemctl status sshd.service

启动服务:
systemctl start sshd.service

重启服务:
systemctl restart sshd.service

开机自启:
systemctl enable sshd.service

扩展资料:安全策略
路径vim /etc/selinux/config
指令getenforce或setenforce查看和设置SELinux的当前工作模式
SELINUX=enforcing  #默认为enforcing,可设置为enforcing、permissive、disabled三项中的其中一项。
顺序级别:严格,宽松、关闭
1、拦截所有不安全策略。
2、允许所有行为,对不安全的策略,记录到日志。
3、关闭所有拦截,不记录安全或不安全的违反策略。
发表评论
表情
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
打开HTML
打开UBB
打开表情
隐藏
昵称   密码   游客无需密码
网址   电邮   [注册]
               

验证码 不区分大小写