When utilizing the Terminal feature within cPanel, you may encounter an error message that reads "Error: The WebSocket handshake failed." This issue often arises if you're accessing cPanel through a proxy sub-domain, such as https://cpanel.yourdomain.com.

To resolve this, we recommend the following methods to access the cPanel -> Terminal:

  1. Directly using your server's IP address: https://$ipaddress:2083
  2. Accessing cPanel through your domain: https://$domain.tld/cpanel
  3. Using the cPanel sub-domain format: https://cpanel.$domain.tld

If you're still facing difficulties after trying these links, consider disconnecting from any proxy servers or VPNs, as these can sometimes interfere with the connection. Additionally, testing the Terminal feature in different web browsers may help to isolate the issue.