Speaktech.in

Change default port of SSH in Linux

#vi/etc/ssh/sshd_config

port 653

Esc key &  :wq will save the vim editor

Restart the ssh server with the following command give semanage to allow tcp connection on port 653

#service sshd restart

#semanage port -a -t ssh_port_t -p tcp 653