{"id":874,"date":"2022-02-08T17:13:55","date_gmt":"2022-02-08T11:13:55","guid":{"rendered":"https:\/\/mellowhost.com\/blog\/?p=874"},"modified":"2022-02-08T17:13:55","modified_gmt":"2022-02-08T11:13:55","slug":"error-the-websocket-handshake-failed-at-pm-cpanel-terminal","status":"publish","type":"post","link":"https:\/\/mellowhost.com\/blog\/error-the-websocket-handshake-failed-at-pm-cpanel-terminal.html","title":{"rendered":"Error: The websocket handshake failed at PM &#8211; Cpanel Terminal"},"content":{"rendered":"\n<p><strong>Error:<\/strong><\/p>\n\n\n\n<p>When you try to open the terminal from Cpanel, it shows you an error in the red screen like the following:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"1024\" height=\"146\" src=\"https:\/\/mellowhost.com\/blog\/wp-content\/uploads\/sites\/3\/2022\/02\/handshake-error-1024x146.png\" alt=\"\" class=\"wp-image-875\" srcset=\"https:\/\/mellowhost.com\/blog\/wp-content\/uploads\/sites\/3\/2022\/02\/handshake-error-1024x146.png 1024w, https:\/\/mellowhost.com\/blog\/wp-content\/uploads\/sites\/3\/2022\/02\/handshake-error-300x43.png 300w, https:\/\/mellowhost.com\/blog\/wp-content\/uploads\/sites\/3\/2022\/02\/handshake-error-768x110.png 768w, https:\/\/mellowhost.com\/blog\/wp-content\/uploads\/sites\/3\/2022\/02\/handshake-error-1200x171.png 1200w, https:\/\/mellowhost.com\/blog\/wp-content\/uploads\/sites\/3\/2022\/02\/handshake-error.png 1211w\" sizes=\"(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/figure>\n\n\n\n<p>The WebSocket handshake failed at 1:34:27 PM.<\/p>\n\n\n\n<p><strong>Solution<\/strong><\/p>\n\n\n\n<p>The error is appearing because Cpanel uses a socket to create a terminal window for you from the Cpanel. But this verifies the origin of your URL. If you are behind a proxy, then Cpanel won&#8217;t let the socket establish. <\/p>\n\n\n\n<p>Most of the time, I have seen the user using Cloudflare behind the domain and using the same domain to access the Cpanel. Unfortunately, Cloudflare&#8217;s proxied IP won&#8217;t be able to create the websocket. Hence, you must use a domain or hostname or the server IP to access the Cpanel, to use Terminal. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Error: When you try to open the terminal from Cpanel, it shows you an error in the red screen like the following: The WebSocket handshake failed at 1:34:27 PM. Solution The error is appearing because Cpanel uses a socket to create a terminal window for you from the Cpanel. But this verifies the origin of &hellip; <a href=\"https:\/\/mellowhost.com\/blog\/error-the-websocket-handshake-failed-at-pm-cpanel-terminal.html\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Error: The websocket handshake failed at PM &#8211; Cpanel Terminal&#8221;<\/span><\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[6,26],"tags":[46,530,660,661],"_links":{"self":[{"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/posts\/874"}],"collection":[{"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/comments?post=874"}],"version-history":[{"count":1,"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/posts\/874\/revisions"}],"predecessor-version":[{"id":876,"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/posts\/874\/revisions\/876"}],"wp:attachment":[{"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/media?parent=874"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/categories?post=874"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/tags?post=874"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}