查看是否安装
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三项中的其中一项。
顺序级别:严格,宽松、关闭
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三项中的其中一项。
顺序级别:严格,宽松、关闭