异常:修改ssh默认端口后,ssh无法正常启动 (将22改为9022)
    [root@s01 ~]# systemctl start sshd
    image.png
    [root@s01 ~]# systemctl status sshd
    image.png

    异常处理:
    关闭selinux
    或者
    selinux放行ssh端口
    [root@s01 ~]# semanage port -l | grep ssh (查看允许的ssh端口)
    [root@s01 ~]# semanage port -a -t ssh_port_t -p tcp 9022 (添加9022端口到SeLinux)