Learn about Centmin Mod LEMP Stack today
Register Now

Install SSH Port Change

Discussion in 'Install & Upgrades or Pre-Install Questions' started by KlueMaster, Jun 19, 2019.

  1. KlueMaster

    KlueMaster Member

    30
    6
    8
    Aug 5, 2017
    Ratings:
    +10
    Local Time:
    6:11 AM
    MariaDB 10
    Hi,

    I just wish to know if CMM relies on SSH port to be 22 in some way? Such as, needed for some script update or for any other service (besides SSH).

    I usually change the SSH port to a different one to prevent bulk login attempts which usually follow issuance of a letsencrypt SSL certificate. CSF then takes care of all such attempts as port 22 is removed from the list of allowed TCP ports.

    My relevant server config is as below:
    • CentOS Version: CentOS 7 64bit
    • Centmin Mod Version Installed: 123.09beta01
    • PHP Version Installed: 7.3.6

    Thanks,
    Gaurav
     
  2. Razib Hasan

    Razib Hasan Member

    34
    13
    8
    May 31, 2014
    Dhaka, Bangladesh
    Ratings:
    +13
    Local Time:
    6:41 AM
    1.7.6
    5.10
    CMM has SSH port change menu which you can find at the menu #16.
     
    • Like Like x 2
  3. eva2000

    eva2000 Administrator Staff Member

    41,298
    9,270
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,221
    Local Time:
    10:41 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    yup centmin.sh menu option 16 will change your sshd port prompting to you enter existing sshd port = 22 and then your desired new sshd port and will make appropriate changes in CSF Firewall too :)
     
    • Like Like x 1