How to Change SSH port in CWP Panel?

To modify the SSH port on CentOs Web Panel:

  1. Login to CWP at https://domainname.com:2087 (port 2087 is for a secure connection)
  2. Go to Services Config->SSH Configuration
  3. This will open for editing the file /etc/ssh/sshd_config
  4. Look for the line:
    #Port 22

    and change the port number to something else, like 2211; also remove the # character from the beginning of the line. In the end, you will have:

    Port 2211
  5. Click the Save changes button
  6. Go to the Dashboard and restart the SSH server.
  7. Go to Security->CSF Firewall, click the Firewall Configuration button
  8. Look for the # Allow incoming TCP ports section and add your port number to the list.
  9. Click the Save changes button
  10. Go to Security->CSF Firewall, click the Firewall Restart button
  11. Now you will be able to connect to the server via SSH using the new port number
  • CWP Panel, FREE Centos Panel, FREE Linux Hosting Panel, FREE CWP Panel, Install CWP Panel
  • 34 gebruikers vonden dit artikel nuttig
Was dit antwoord nuttig?

Powered by WHMCompleteSolution