文章摘要
GPT 4

sshd_config配置文件里面修改端口以后不通,注意下面:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21

[root@centos7 ~]# cd /etc/selinux/
[root@centos7 selinux]# ls
config final semanage.conf targeted tmp
[root@centos7 selinux]# vi config
[root@centos7 selinux]#

# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - No SELinux policy is loaded.
SELINUX=disabled # 修改远程端口号要关闭
# SELINUXTYPE= can take one of three values:
# targeted - Targeted processes are protected,
# minimum - Modification of targeted policy. Only selected processes are protected.
# mls - Multi Level Security protection.
SELINUXTYPE=targeted
~
~
~