Change SSH Port On CentOS 7

sudo vi /etc/ssh/sshd_config
Port 9922
sudo yum -y install policycoreutils-python
sudo semanage port -a -t ssh_port_t -p tcp 9922
sudo firewall-cmd –permanent –zone=public –add-port=9922/tcp
sudo firewall-cmd –reload
sudo systemctl restart sshd.service
ss -tlpn | grep ssh
ssh user@192.168.0.1 -p 9922

Details here:

How To Change OpenSSH Port On CentOS 7

Change the Default SSH Port on CentOS 7 Minimal

CentOS 7 / RHEL 7 : change OpenSSH port number ( SELINUX enabled )