The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

closing port 22, any implications

Discussion in 'Security' started by keat63, Dec 3, 2014.

  1. keat63

    keat63 Well-Known Member

    Joined:
    Nov 20, 2014
    Messages:
    765
    Likes Received:
    20
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    Chaps.

    I've considered moving ssh from port 22, however, as I don't really know how to use it yet, or how to edit the config file either, i've decided to close it temporarily in CSF.

    My thoughts being, that if i need it, i'll open it again via WHM/CSF.
    What are the implications, if any. ?
     
  2. 24x7ss

    24x7ss Well-Known Member

    Joined:
    Sep 30, 2014
    Messages:
    271
    Likes Received:
    16
    Trophy Points:
    18
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Twitter:
    It seems that you want to change the SSH port. You have to edit /etc/ssh/sshd_config file and uncomment Port option and set port as per your choice. The in csf firewall TCP_IP remove port 22 and add the port which you set in sshd config file.
     
  3. keat63

    keat63 Well-Known Member

    Joined:
    Nov 20, 2014
    Messages:
    765
    Likes Received:
    20
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    I tried something similar last week, but couldn't quite figure out the editor, and being really busy with other projects, didn't really have time to investigate further.
     
  4. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,448
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
  5. keat63

    keat63 Well-Known Member

    Joined:
    Nov 20, 2014
    Messages:
    765
    Likes Received:
    20
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    I don't think that I'm overly concerned (or am I ??.. I must be otherwise i wouldn't be asking)
    I've blocked all IP's against brute force in CPHulk. Out of every IP in the world, only 3 are in the whitelist.
    I've blocked a number of counties in CSF deny list.
    I've denied access to ALL in "Host Access Control" for SSHD, FTP and WHOSTMGRD.
    And ive removed access to port 22 in CSF for IP4 and IP6.

    is there anything else i should consider as well as maybe moving port 22 and removing root access.
     
  6. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,448
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Sure, there's lots of security concerns to be considered. Always be concerned, always, when it comes to security.
    Recommended Security Settings - cPanel Documentation

    Changing SSH port is one of the very first things you should do, IMHO, and far from the last.
     
Loading...

Share This Page