How to change SSH port number in CentminMod? By default, Linux servers use port 22 for SSH service. This is a service for you to login and control your server. And of course, this is known to all hackers. Using that default configuration is not good, is not safe for your server. So you need