Introduction

In some cases, the SSH port on a server may be changed from the default (22) for security reasons. If the custom SSH port is forgotten or inaccessible, Web Host Manager provides a way to restore SSH access to the default configuration.

Prerequisites

Before proceeding, ensure:

  • WHM access via root account
  • Server IP address is reachable
  • Basic understanding of SSH access

Implementation

Step 1: Open Browser

Open any web browser.

Step 2: Access WHM Autofixer URL

Enter the following URL:

http://serverip:2086/scripts2/doautofixer?autofix=safesshrestart

Replace serverip with your actual server IP address.


Step 3: Execute the Fix

  • The script will automatically reset SSH configuration
  • SSH service will restart using default settings

Result

After successful execution:

  • SSH port is reset to default 22
  • You can connect using:
ssh root@serverip

Conclusion

Using the autofixer tool in Web Host Manager, administrators can quickly restore SSH access to the default port when custom configurations cause access issues.

Leave a Reply