Get the most out of your Centmin Mod LEMP stack
Become a Member

changing the ssh port of my vps

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

  1. Venucci

    Venucci Member

    33
    4
    8
    Sep 25, 2018
    Ratings:
    +4
    Local Time:
    2:31 PM
    currentyl
    10
    Please fill in any relevant information that applies to you:
    • CentOS Version: 64bit / CentOS 7 64bit ?
    • Centmin Mod Version Installed: 123.09beta01
    • Nginx Version Installed: i.e. last
    • PHP Version Installed: 7.3
    • MariaDB MySQL Version Installed: i.e. 10.0.x or 10.1.xx or 10.2.xx
    • When was last time updated Centmin Mod code base ? : today
    • Persistent Config: Do you have any persistent config file options set in /etc/centminmod/custom_config.inc ? You can check via this command:
    • Code (Text):
      cat /etc/centminmod/custom_config.inc
      

      Post output in CODE tags.
    If i wish to change the ssh port must i consider something from the firewall of centminmod ?
     
  2. Itworx4me

    Itworx4me Premium Member Premium Member

    180
    18
    18
    Mar 14, 2017
    Ratings:
    +28
    Local Time:
    5:31 AM
    Nginx 1.17.X
    MariaDB 10.3.X
    Option number 16 from the centmin menu will change the ssh port.
     
    • Like Like x 1
  3. Venucci

    Venucci Member

    33
    4
    8
    Sep 25, 2018
    Ratings:
    +4
    Local Time:
    2:31 PM
    currentyl
    10
    thanks done
     
    • Like Like x 2
    style="display:inline-block;min-width:400px;max-width:970px;width:95%;height:90px" data-ad-client="ca-pub-6669518204467592" data-ad-slot="4024536743" data-ad-format="auto">
  4. eva2000

    eva2000 Administrator Staff Member

    40,624
    9,016
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +13,883
    Local Time:
    10:31 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    yup that menu option is what you need

    centmin.sh menu option 16 first asks for existing sshd port, then the new desired sshd port

    to change from 22 to say 78

    so 1st change
    - existing port = 22
    - new port = 78

    if changing back from 78 to 22
    - existing port = 78
    - new port = 22