dnf -y install selinux-policy-devel
firewall-cmd –permanent –add-port=2222/tcp
firewall-cmd –reload
semanage port -a -t ssh_port_t -p tcp 2222
/etc/ssh/ssd_config
Port 22
Port 2222
PermitRootLogin no
systemctl restart sshd
外部からのログインはパスワード禁止
PasswordAuthentication no
Match Address 192.218.112.0/24
PasswordAuthentication yes
Match all