{"id":735,"date":"2024-11-07T21:21:03","date_gmt":"2024-11-07T21:21:03","guid":{"rendered":"https:\/\/parke-r.com\/?page_id=735"},"modified":"2024-11-08T16:30:30","modified_gmt":"2024-11-08T16:30:30","slug":"changing-ssh-port","status":"publish","type":"page","link":"https:\/\/parke-r.com\/?page_id=735","title":{"rendered":"Changing SSH Port"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"735\" class=\"elementor elementor-735\">\n\t\t\t\t<div class=\"elementor-element elementor-element-efa10d6 e-flex e-con-boxed e-con e-parent\" data-id=\"efa10d6\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-fee7d98 elementor-widget elementor-widget-spacer\" data-id=\"fee7d98\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"spacer.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-spacer\">\n\t\t\t<div class=\"elementor-spacer-inner\"><\/div>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-c121657 e-flex e-con-boxed e-con e-parent\" data-id=\"c121657\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-bd47ec9 elementor-widget elementor-widget-heading\" data-id=\"bd47ec9\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Changing SSH Port<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-d2bfe72 elementor-widget elementor-widget-text-editor\" data-id=\"d2bfe72\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<h3>Notes:<\/h3><ul><li>Port 2000 will be used during this guide as an example<\/li><li>You may choose any port greater than 1024<ul><li>This is to avoid conflicts with most other services<\/li><li>Always double-check your exposed ports before proceeding<\/li><\/ul><\/li><\/ul>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-286f859 elementor-widget-divider--view-line elementor-widget elementor-widget-divider\" data-id=\"286f859\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"divider.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-divider\">\n\t\t\t<span class=\"elementor-divider-separator\">\n\t\t\t\t\t\t<\/span>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-007173e elementor-widget elementor-widget-text-editor\" data-id=\"007173e\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<h3>Setting Up Your Oracle Cloud Environment<\/h3><h4>Login to Oracle Cloud:<\/h4><ul><li>Access your instance and select the subnet under the Primary VNIC<\/li><li>Choose the Default Security List<\/li><\/ul><h4>\u00a0<\/h4><h4>Add Ingress Rule:<\/h4><ul><li>Add SSH connection<ul><li>Source CIDR: 0.0.0.0\/0<\/li><li>Protocol: TCP<\/li><li>Destination Port Range: 2000<\/li><\/ul><\/li><\/ul>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-627ff41 elementor-widget-divider--view-line elementor-widget elementor-widget-divider\" data-id=\"627ff41\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"divider.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-divider\">\n\t\t\t<span class=\"elementor-divider-separator\">\n\t\t\t\t\t\t<\/span>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-8213436 elementor-widget elementor-widget-text-editor\" data-id=\"8213436\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<h3>Accessing Your Web Server<\/h3><ul><li>SSH into your web server<\/li><li>Use your private key to connect securely<\/li><\/ul>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-45e8ab6 elementor-widget-divider--view-line elementor-widget elementor-widget-divider\" data-id=\"45e8ab6\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"divider.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-divider\">\n\t\t\t<span class=\"elementor-divider-separator\">\n\t\t\t\t\t\t<\/span>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-2173de6 elementor-widget elementor-widget-text-editor\" data-id=\"2173de6\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<h3>Check the Status of Firewalld<\/h3><ul><li>This command checks if the firewalld service is active and running<\/li><li>systemctl is the system management tool used to control system services, and status shows whether the service is running, inactive, or failed<\/li><\/ul>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-16de16e elementor-widget elementor-widget-html\" data-id=\"16de16e\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<style>\n  .code-block {\n    background-color: #000; \/* Black background *\/\n    color: #FFFFFF; \/* White text *\/\n    padding: 10px;\n    border: 1px solid #ccc;\n    border-radius: 4px;\n    font-family: 'Red Hat Text', sans-serif;\n    white-space: nowrap; \/* Prevent text wrapping *\/\n    margin: 10px 0; \/* Spacing between blocks *\/\n    position: relative; \/* For button positioning *\/\n    display: flex; \/* Flex container to align content horizontally *\/\n    align-items: center; \/* Vertically center the content *\/\n    overflow-x: hidden; \/* Hide horizontal overflow by default *\/\n    transition: padding-bottom 0.3s ease; \/* Smooth transition for padding *\/\n  }\n\n  \/* When the horizontal scrollbar appears, increase the height of the container *\/\n  .code-block.scrollable {\n    padding-bottom: 30px; \/* Extra padding for the scrollbar *\/\n  }\n\n  .copy-button {\n    background-color: #007bff;\n    color: white;\n    border: none;\n    padding: 10px 15px;\n    border-radius: 4px;\n    cursor: pointer;\n    transition: background-color 0.3s; \/* Smooth transition *\/\n    margin-left: 10px; \/* Space between text and button *\/\n  }\n\n  .copy-button:hover {\n    background-color: #0056b3;\n  }\n\n  .copied {\n    background-color: #28a745; \/* Change to green when copied *\/\n  }\n\n  .command {\n    flex-grow: 1; \/* Allow command to take up available space *\/\n    text-align: left; \/* Left-align the text *\/\n    overflow-x: auto; \/* Allow horizontal scrolling if needed *\/\n  }\n\n  \/* Media query for smaller screens (mobile devices) *\/\n  @media (max-width: 600px) {\n    .code-block {\n      padding-right: 70px; \/* Make space for button if needed *\/\n    }\n\n    .copy-button {\n      margin-left: 10px; \/* Ensure button stays properly spaced *\/\n    }\n  }\n<\/style>\n\n<div class=\"code-block\" id=\"codeBlock2\">\n  <code class=\"command\">sudo systemctl status firewalld<\/code>\n  <button class=\"copy-button\" id=\"copyButton2\" onclick=\"copyToClipboard('sudo systemctl status firewalld', 'copyButton2')\">Copy<\/button>\n<\/div>\n\n<script>\n  \/\/ Function to detect if the content overflows and add scrollable class\n  function checkOverflow() {\n    const codeBlock = document.getElementById('codeBlock2');\n    if (codeBlock.scrollWidth > codeBlock.clientWidth) {\n      codeBlock.classList.add('scrollable');\n    } else {\n      codeBlock.classList.remove('scrollable');\n    }\n  }\n\n  \/\/ Run the checkOverflow function on page load and resize\n  window.onload = checkOverflow;\n  window.onresize = checkOverflow;\n\n  function copyToClipboard(command, copyButtonId) {\n    navigator.clipboard.writeText(command).then(() => {\n      const copyButton = document.getElementById(copyButtonId);\n      copyButton.textContent = 'Copied';\n      copyButton.classList.add('copied');\n      \n      \/\/ Reset button text and color after a short delay\n      setTimeout(() => {\n        copyButton.textContent = 'Copy';\n        copyButton.classList.remove('copied');\n      }, 2000);\n    });\n  }\n<\/script>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-147a649 elementor-widget-divider--view-line elementor-widget elementor-widget-divider\" data-id=\"147a649\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"divider.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-divider\">\n\t\t\t<span class=\"elementor-divider-separator\">\n\t\t\t\t\t\t<\/span>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-64814fd elementor-widget elementor-widget-text-editor\" data-id=\"64814fd\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<h3>Start Firewalld <em>(if not started)<\/em><\/h3><ul><li>This command checks if the firewalld service is active and running<\/li><li>systemctl is the system management tool used to control system services, and status shows whether the service is running, inactive, or failed<\/li><\/ul>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-cc34669 elementor-widget elementor-widget-html\" data-id=\"cc34669\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<style>\n  .code-block {\n    background-color: #000; \/* Black background *\/\n    color: #FFFFFF; \/* White text *\/\n    padding: 10px;\n    border: 1px solid #ccc;\n    border-radius: 4px;\n    font-family: 'Red Hat Text', sans-serif;\n    white-space: nowrap; \/* Prevent wrapping *\/\n    margin: 10px 0; \/* Spacing between blocks *\/\n    display: flex; \/* Use flexbox for alignment *\/\n    align-items: center; \/* Center items vertically *\/\n    justify-content: space-between; \/* Space between items *\/\n  }\n\n  .copy-button {\n    background-color: #007bff;\n    color: white;\n    border: none;\n    padding: 10px 15px;\n    border-radius: 4px;\n    cursor: pointer;\n    transition: background-color 0.3s; \/* Smooth transition *\/\n  }\n\n  .copy-button:hover {\n    background-color: #0056b3;\n  }\n\n  .copied {\n    background-color: #28a745; \/* Change to green when copied *\/\n  }\n\n  .command {\n    flex-grow: 1; \/* Allow command to take up available space *\/\n    text-align: left; \/* Left-align the text *\/\n  }\n<\/style>\n\n<!-- Command Block for `sudo systemctl start firewalld` -->\n<div class=\"code-block\" id=\"codeBlock1\">\n  <code class=\"command\">sudo systemctl start firewalld<\/code>\n  <button class=\"copy-button\" id=\"copyButton1\" onclick=\"copyToClipboard1()\">Copy<\/button>\n<\/div>\n\n<script>\n  \/\/ Function for the `sudo systemctl start firewalld` command\n  function copyToClipboard1() {\n    const command = 'sudo systemctl start firewalld';\n    navigator.clipboard.writeText(command).then(() => {\n      const copyButton = document.getElementById('copyButton1');\n      copyButton.textContent = 'Copied';\n      copyButton.classList.add('copied');\n      \n      \/\/ Reset button text and color after a short delay\n      setTimeout(() => {\n        copyButton.textContent = 'Copy';\n        copyButton.classList.remove('copied');\n      }, 2000);\n    });\n  }\n<\/script>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-d3d6a97 elementor-widget-divider--view-line elementor-widget elementor-widget-divider\" data-id=\"d3d6a97\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"divider.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-divider\">\n\t\t\t<span class=\"elementor-divider-separator\">\n\t\t\t\t\t\t<\/span>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-c11720b elementor-widget elementor-widget-text-editor\" data-id=\"c11720b\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<h3>Enable Firewalld to Start on Boot <em>(if not enabled)<\/em><\/h3><ul><li>This command ensures that the firewalld service starts automatically when the system boots. This is useful for ensuring the firewall remains active across reboots<\/li><li>By enabling firewalld to start on boot, you ensure that firewall rules are applied consistently when the server reboots<\/li><\/ul>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-c300a95 elementor-widget elementor-widget-html\" data-id=\"c300a95\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<style>\n  .code-block {\n    background-color: #000; \/* Black background *\/\n    color: #FFFFFF; \/* White text *\/\n    padding: 10px;\n    border: 1px solid #ccc;\n    border-radius: 4px;\n    font-family: 'Red Hat Text', sans-serif;\n    white-space: nowrap; \/* Prevent wrapping *\/\n    margin: 10px 0; \/* Spacing between blocks *\/\n    display: flex; \/* Use flexbox for alignment *\/\n    align-items: center; \/* Center items vertically *\/\n    justify-content: space-between; \/* Space between items *\/\n  }\n\n  .copy-button {\n    background-color: #007bff;\n    color: white;\n    border: none;\n    padding: 10px 15px;\n    border-radius: 4px;\n    cursor: pointer;\n    transition: background-color 0.3s; \/* Smooth transition *\/\n  }\n\n  .copy-button:hover {\n    background-color: #0056b3;\n  }\n\n  .copied {\n    background-color: #28a745; \/* Change to green when copied *\/\n  }\n\n  .command {\n    flex-grow: 1; \/* Allow command to take up available space *\/\n    text-align: left; \/* Left-align the text *\/\n  }\n<\/style>\n\n<!-- Command Block for `sudo systemctl enable firewalld` -->\n<div class=\"code-block\" id=\"codeBlock3\">\n  <code class=\"command\">sudo systemctl enable firewalld<\/code>\n  <button class=\"copy-button\" id=\"copyButton3\" onclick=\"copyToClipboard3()\">Copy<\/button>\n<\/div>\n\n<script>\n  \/\/ Function for the `sudo systemctl enable firewalld` command\n  function copyToClipboard3() {\n    const command = 'sudo systemctl enable firewalld';\n    navigator.clipboard.writeText(command).then(() => {\n      const copyButton = document.getElementById('copyButton3');\n      copyButton.textContent = 'Copied';\n      copyButton.classList.add('copied');\n      \n      \/\/ Reset button text and color after a short delay\n      setTimeout(() => {\n        copyButton.textContent = 'Copy';\n        copyButton.classList.remove('copied');\n      }, 2000);\n    });\n  }\n<\/script>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-d78050f elementor-widget-divider--view-line elementor-widget elementor-widget-divider\" data-id=\"d78050f\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"divider.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-divider\">\n\t\t\t<span class=\"elementor-divider-separator\">\n\t\t\t\t\t\t<\/span>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-ff416bb elementor-widget elementor-widget-text-editor\" data-id=\"ff416bb\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<h3>Add a New Port to Firewalld<\/h3><ul><li>This command adds port 2000 to the list of allowed ports in the public zone of firewalld<\/li><li>Without adding port 2000 to firewalld, the firewall would block SSH access on this new port<\/li><\/ul>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-8bda440 elementor-widget elementor-widget-html\" data-id=\"8bda440\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<style>\n  .code-block {\n    background-color: #000; \/* Black background *\/\n    color: #FFFFFF; \/* White text *\/\n    padding: 10px;\n    border: 1px solid #ccc;\n    border-radius: 4px;\n    font-family: 'Red Hat Text', sans-serif;\n    white-space: nowrap; \/* Prevent wrapping *\/\n    margin: 10px 0; \/* Spacing between blocks *\/\n    display: flex; \/* Use flexbox for alignment *\/\n    align-items: center; \/* Center items vertically *\/\n    justify-content: space-between; \/* Space between items *\/\n  }\n\n  .copy-button {\n    background-color: #007bff;\n    color: white;\n    border: none;\n    padding: 10px 15px;\n    border-radius: 4px;\n    cursor: pointer;\n    transition: background-color 0.3s; \/* Smooth transition *\/\n  }\n\n  .copy-button:hover {\n    background-color: #0056b3;\n  }\n\n  .copied {\n    background-color: #28a745; \/* Change to green when copied *\/\n  }\n\n  .command {\n    flex-grow: 1; \/* Allow command to take up available space *\/\n    text-align: left; \/* Left-align the text *\/\n  }\n<\/style>\n\n<!-- Command Block for `sudo firewall-cmd --zone=public --add-port=2000\/tcp --permanent` -->\n<div class=\"code-block\" id=\"codeBlock5\">\n  <code class=\"command\">sudo firewall-cmd --zone=public --add-port=2000\/tcp --permanent<\/code>\n  <button class=\"copy-button\" id=\"copyButton5\" onclick=\"copyToClipboard5()\">Copy<\/button>\n<\/div>\n\n<script>\n  \/\/ Function for the `sudo firewall-cmd --zone=public --add-port=2000\/tcp --permanent` command\n  function copyToClipboard5() {\n    const command = 'sudo firewall-cmd --zone=public --add-port=2000\/tcp --permanent';\n    navigator.clipboard.writeText(command).then(() => {\n      const copyButton = document.getElementById('copyButton5');\n      copyButton.textContent = 'Copied';\n      copyButton.classList.add('copied');\n      \n      \/\/ Reset button text and color after a short delay\n      setTimeout(() => {\n        copyButton.textContent = 'Copy';\n        copyButton.classList.remove('copied');\n      }, 2000);\n    });\n  }\n<\/script>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-8fa97e5 elementor-widget-divider--view-line elementor-widget elementor-widget-divider\" data-id=\"8fa97e5\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"divider.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-divider\">\n\t\t\t<span class=\"elementor-divider-separator\">\n\t\t\t\t\t\t<\/span>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-1d816a6 elementor-widget elementor-widget-text-editor\" data-id=\"1d816a6\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<h3>Reload Firewalld to Apply Changes<\/h3><ul><li>After making changes to the firewall configuration (such as adding or removing ports), reloading firewalld is necessary for the changes to take effect<\/li><\/ul>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-de62f13 elementor-widget elementor-widget-html\" data-id=\"de62f13\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<style>\n  .code-block {\n    background-color: #000; \/* Black background *\/\n    color: #FFFFFF; \/* White text *\/\n    padding: 10px;\n    border: 1px solid #ccc;\n    border-radius: 4px;\n    font-family: 'Red Hat Text', sans-serif;\n    white-space: nowrap; \/* Prevent wrapping *\/\n    margin: 10px 0; \/* Spacing between blocks *\/\n    display: flex; \/* Use flexbox for alignment *\/\n    align-items: center; \/* Center items vertically *\/\n    justify-content: space-between; \/* Space between items *\/\n  }\n\n  .copy-button {\n    background-color: #007bff;\n    color: white;\n    border: none;\n    padding: 10px 15px;\n    border-radius: 4px;\n    cursor: pointer;\n    transition: background-color 0.3s; \/* Smooth transition *\/\n  }\n\n  .copy-button:hover {\n    background-color: #0056b3;\n  }\n\n  .copied {\n    background-color: #28a745; \/* Change to green when copied *\/\n  }\n\n  .command {\n    flex-grow: 1; \/* Allow command to take up available space *\/\n    text-align: left; \/* Left-align the text *\/\n  }\n<\/style>\n\n<!-- Command Block for `sudo firewall-cmd --reload` -->\n<div class=\"code-block\" id=\"codeBlock6\">\n  <code class=\"command\">sudo firewall-cmd --reload<\/code>\n  <button class=\"copy-button\" id=\"copyButton6\" onclick=\"copyToClipboard6()\">Copy<\/button>\n<\/div>\n\n<script>\n  \/\/ Function for the `sudo firewall-cmd --reload` command\n  function copyToClipboard6() {\n    const command = 'sudo firewall-cmd --reload';\n    navigator.clipboard.writeText(command).then(() => {\n      const copyButton = document.getElementById('copyButton6');\n      copyButton.textContent = 'Copied';\n      copyButton.classList.add('copied');\n      \n      \/\/ Reset button text and color after a short delay\n      setTimeout(() => {\n        copyButton.textContent = 'Copy';\n        copyButton.classList.remove('copied');\n      }, 2000);\n    });\n  }\n<\/script>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-aacfbfb elementor-widget-divider--view-line elementor-widget elementor-widget-divider\" data-id=\"aacfbfb\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"divider.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-divider\">\n\t\t\t<span class=\"elementor-divider-separator\">\n\t\t\t\t\t\t<\/span>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-fca7ab8 elementor-widget elementor-widget-text-editor\" data-id=\"fca7ab8\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<h3>List All Open Ports in Firewalld<\/h3><ul><li>Verify that port 2000 is indeed open and accessible for SSH<\/li><\/ul>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-4ef4a33 elementor-widget elementor-widget-html\" data-id=\"4ef4a33\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<style>\n  .code-block {\n    background-color: #000; \/* Black background *\/\n    color: #FFFFFF; \/* White text *\/\n    padding: 10px;\n    border: 1px solid #ccc;\n    border-radius: 4px;\n    font-family: 'Red Hat Text', sans-serif;\n    white-space: nowrap; \/* Prevent wrapping *\/\n    margin: 10px 0; \/* Spacing between blocks *\/\n    display: flex; \/* Use flexbox for alignment *\/\n    align-items: center; \/* Center items vertically *\/\n    justify-content: space-between; \/* Space between items *\/\n  }\n\n  .copy-button {\n    background-color: #007bff;\n    color: white;\n    border: none;\n    padding: 10px 15px;\n    border-radius: 4px;\n    cursor: pointer;\n    transition: background-color 0.3s; \/* Smooth transition *\/\n  }\n\n  .copy-button:hover {\n    background-color: #0056b3;\n  }\n\n  .copied {\n    background-color: #28a745; \/* Change to green when copied *\/\n  }\n\n  .command {\n    flex-grow: 1; \/* Allow command to take up available space *\/\n    text-align: left; \/* Left-align the text *\/\n  }\n<\/style>\n\n<!-- Command Block for `sudo firewall-cmd --list-ports` -->\n<div class=\"code-block\" id=\"codeBlock7\">\n  <code class=\"command\">sudo firewall-cmd --list-ports<\/code>\n  <button class=\"copy-button\" id=\"copyButton7\" onclick=\"copyToClipboard7()\">Copy<\/button>\n<\/div>\n\n<script>\n  \/\/ Function for the `sudo firewall-cmd --list-ports` command\n  function copyToClipboard7() {\n    const command = 'sudo firewall-cmd --list-ports';\n    navigator.clipboard.writeText(command).then(() => {\n      const copyButton = document.getElementById('copyButton7');\n      copyButton.textContent = 'Copied';\n      copyButton.classList.add('copied');\n      \n      \/\/ Reset button text and color after a short delay\n      setTimeout(() => {\n        copyButton.textContent = 'Copy';\n        copyButton.classList.remove('copied');\n      }, 2000);\n    });\n  }\n<\/script>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-0bb3ee4 elementor-widget-divider--view-line elementor-widget elementor-widget-divider\" data-id=\"0bb3ee4\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"divider.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-divider\">\n\t\t\t<span class=\"elementor-divider-separator\">\n\t\t\t\t\t\t<\/span>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-8f09441 elementor-widget elementor-widget-text-editor\" data-id=\"8f09441\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<h3>Add Port 2000 in iptables <em>(direct rule)<\/em><\/h3><ul><li>This iptables command directly inserts a rule into the INPUT chain to accept incoming TCP traffic on port 2000<\/li><li>This rule allows SSH traffic on the custom port 2000 through the iptables firewall<\/li><\/ul>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-6464d85 elementor-widget elementor-widget-html\" data-id=\"6464d85\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<style>\n  .code-block {\n    background-color: #000; \/* Black background *\/\n    color: #FFFFFF; \/* White text *\/\n    padding: 10px;\n    border: 1px solid #ccc;\n    border-radius: 4px;\n    font-family: 'Red Hat Text', sans-serif;\n    white-space: nowrap; \/* Prevent wrapping *\/\n    margin: 10px 0; \/* Spacing between blocks *\/\n    display: flex; \/* Use flexbox for alignment *\/\n    align-items: center; \/* Center items vertically *\/\n    justify-content: space-between; \/* Space between items *\/\n  }\n\n  .copy-button {\n    background-color: #007bff;\n    color: white;\n    border: none;\n    padding: 10px 15px;\n    border-radius: 4px;\n    cursor: pointer;\n    transition: background-color 0.3s; \/* Smooth transition *\/\n  }\n\n  .copy-button:hover {\n    background-color: #0056b3;\n  }\n\n  .copied {\n    background-color: #28a745; \/* Change to green when copied *\/\n  }\n\n  .command {\n    flex-grow: 1; \/* Allow command to take up available space *\/\n    text-align: left; \/* Left-align the text *\/\n  }\n<\/style>\n\n<!-- Command Block for `sudo iptables -I INPUT 6 -m state --state NEW -p tcp --dport 2000 -j ACCEPT` -->\n<div class=\"code-block\" id=\"codeBlock8\">\n  <code class=\"command\">sudo iptables -I INPUT 6 -m state --state NEW -p tcp --dport 2000 -j ACCEPT<\/code>\n  <button class=\"copy-button\" id=\"copyButton8\" onclick=\"copyToClipboard8()\">Copy<\/button>\n<\/div>\n\n<script>\n  \/\/ Function for the `sudo iptables -I INPUT 6 -m state --state NEW -p tcp --dport 2000 -j ACCEPT` command\n  function copyToClipboard8() {\n    const command = 'sudo iptables -I INPUT 6 -m state --state NEW -p tcp --dport 2000 -j ACCEPT';\n    navigator.clipboard.writeText(command).then(() => {\n      const copyButton = document.getElementById('copyButton8');\n      copyButton.textContent = 'Copied';\n      copyButton.classList.add('copied');\n      \n      \/\/ Reset button text and color after a short delay\n      setTimeout(() => {\n        copyButton.textContent = 'Copy';\n        copyButton.classList.remove('copied');\n      }, 2000);\n    });\n  }\n<\/script>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-cf8a000 elementor-widget-divider--view-line elementor-widget elementor-widget-divider\" data-id=\"cf8a000\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"divider.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-divider\">\n\t\t\t<span class=\"elementor-divider-separator\">\n\t\t\t\t\t\t<\/span>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-f27c11a elementor-widget elementor-widget-text-editor\" data-id=\"f27c11a\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<h3>Save iptables Rules <em>(persistent rules)<\/em><\/h3><ul><li>This command saves the current iptables rules so they persist after a reboot. The netfilter-persistent tool ensures the rules are loaded again when the system starts<\/li><li>Without saving the iptables configuration, any rules you add will be lost after a reboot<\/li><\/ul>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-b049bee elementor-widget elementor-widget-html\" data-id=\"b049bee\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<style>\n  .code-block {\n    background-color: #000; \/* Black background *\/\n    color: #FFFFFF; \/* White text *\/\n    padding: 10px;\n    border: 1px solid #ccc;\n    border-radius: 4px;\n    font-family: 'Red Hat Text', sans-serif;\n    white-space: nowrap; \/* Prevent wrapping *\/\n    margin: 10px 0; \/* Spacing between blocks *\/\n    display: flex; \/* Use flexbox for alignment *\/\n    align-items: center; \/* Center items vertically *\/\n    justify-content: space-between; \/* Space between items *\/\n  }\n\n  .copy-button {\n    background-color: #007bff;\n    color: white;\n    border: none;\n    padding: 10px 15px;\n    border-radius: 4px;\n    cursor: pointer;\n    transition: background-color 0.3s; \/* Smooth transition *\/\n  }\n\n  .copy-button:hover {\n    background-color: #0056b3;\n  }\n\n  .copied {\n    background-color: #28a745; \/* Change to green when copied *\/\n  }\n\n  .command {\n    flex-grow: 1; \/* Allow command to take up available space *\/\n    text-align: left; \/* Left-align the text *\/\n  }\n<\/style>\n\n<!-- Command Block for `sudo netfilter-persistent save` -->\n<div class=\"code-block\" id=\"codeBlock9\">\n  <code class=\"command\">sudo netfilter-persistent save<\/code>\n  <button class=\"copy-button\" id=\"copyButton9\" onclick=\"copyToClipboard9()\">Copy<\/button>\n<\/div>\n\n<script>\n  \/\/ Function for the `sudo netfilter-persistent save` command\n  function copyToClipboard9() {\n    const command = 'sudo netfilter-persistent save';\n    navigator.clipboard.writeText(command).then(() => {\n      const copyButton = document.getElementById('copyButton9');\n      copyButton.textContent = 'Copied';\n      copyButton.classList.add('copied');\n      \n      \/\/ Reset button text and color after a short delay\n      setTimeout(() => {\n        copyButton.textContent = 'Copy';\n        copyButton.classList.remove('copied');\n      }, 2000);\n    });\n  }\n<\/script>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-79874a5 elementor-widget-divider--view-line elementor-widget elementor-widget-divider\" data-id=\"79874a5\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"divider.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-divider\">\n\t\t\t<span class=\"elementor-divider-separator\">\n\t\t\t\t\t\t<\/span>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-9a8f1db elementor-widget elementor-widget-text-editor\" data-id=\"9a8f1db\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<h3>List Current iptables Rules<\/h3><ul><li>This command lists all the current iptables rules in the INPUT, OUTPUT, and FORWARD chains. It shows which ports are open and how traffic is being handled<\/li><li><p>It helps you verify that the rule for port 2000 has been added successfully<\/p><\/li><\/ul>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-b413c3b elementor-widget elementor-widget-html\" data-id=\"b413c3b\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<style>\n  .code-block {\n    background-color: #000; \/* Black background *\/\n    color: #FFFFFF; \/* White text *\/\n    padding: 10px;\n    border: 1px solid #ccc;\n    border-radius: 4px;\n    font-family: 'Red Hat Text', sans-serif;\n    white-space: nowrap; \/* Prevent wrapping *\/\n    margin: 10px 0; \/* Spacing between blocks *\/\n    display: flex; \/* Use flexbox for alignment *\/\n    align-items: center; \/* Center items vertically *\/\n    justify-content: space-between; \/* Space between items *\/\n  }\n\n  .copy-button {\n    background-color: #007bff;\n    color: white;\n    border: none;\n    padding: 10px 15px;\n    border-radius: 4px;\n    cursor: pointer;\n    transition: background-color 0.3s; \/* Smooth transition *\/\n  }\n\n  .copy-button:hover {\n    background-color: #0056b3;\n  }\n\n  .copied {\n    background-color: #28a745; \/* Change to green when copied *\/\n  }\n\n  .command {\n    flex-grow: 1; \/* Allow command to take up available space *\/\n    text-align: left; \/* Left-align the text *\/\n  }\n<\/style>\n\n<!-- Command Block for `sudo iptables -L` -->\n<div class=\"code-block\" id=\"codeBlock10\">\n  <code class=\"command\">sudo iptables -L<\/code>\n  <button class=\"copy-button\" id=\"copyButton10\" onclick=\"copyToClipboard10()\">Copy<\/button>\n<\/div>\n\n<script>\n  \/\/ Function for the `sudo iptables -L` command\n  function copyToClipboard10() {\n    const command = 'sudo iptables -L';\n    navigator.clipboard.writeText(command).then(() => {\n      const copyButton = document.getElementById('copyButton10');\n      copyButton.textContent = 'Copied';\n      copyButton.classList.add('copied');\n      \n      \/\/ Reset button text and color after a short delay\n      setTimeout(() => {\n        copyButton.textContent = 'Copy';\n        copyButton.classList.remove('copied');\n      }, 2000);\n    });\n  }\n<\/script>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-c00d899 elementor-widget-divider--view-line elementor-widget elementor-widget-divider\" data-id=\"c00d899\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"divider.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-divider\">\n\t\t\t<span class=\"elementor-divider-separator\">\n\t\t\t\t\t\t<\/span>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-a9b6618 elementor-widget elementor-widget-text-editor\" data-id=\"a9b6618\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<h3>Backup the sshd_config File<\/h3><ul><li>This command creates a backup of the SSH configuration file (\/etc\/ssh\/sshd_config) before making any changes to it<\/li><li>Creating a backup allows you to revert to the original configuration if something goes wrong<\/li><\/ul>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-8650975 elementor-widget elementor-widget-html\" data-id=\"8650975\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<style>\n  .code-block {\n    background-color: #000; \/* Black background *\/\n    color: #FFFFFF; \/* White text *\/\n    padding: 10px;\n    border: 1px solid #ccc;\n    border-radius: 4px;\n    font-family: 'Red Hat Text', sans-serif;\n    white-space: nowrap; \/* Prevent wrapping *\/\n    margin: 10px 0; \/* Spacing between blocks *\/\n    display: flex; \/* Use flexbox for alignment *\/\n    align-items: center; \/* Center items vertically *\/\n    justify-content: space-between; \/* Space between items *\/\n  }\n\n  .copy-button {\n    background-color: #007bff;\n    color: white;\n    border: none;\n    padding: 10px 15px;\n    border-radius: 4px;\n    cursor: pointer;\n    transition: background-color 0.3s; \/* Smooth transition *\/\n  }\n\n  .copy-button:hover {\n    background-color: #0056b3;\n  }\n\n  .copied {\n    background-color: #28a745; \/* Change to green when copied *\/\n  }\n\n  .command {\n    flex-grow: 1; \/* Allow command to take up available space *\/\n    text-align: left; \/* Left-align the text *\/\n  }\n<\/style>\n\n<!-- Command Block for `sudo cp \/etc\/ssh\/sshd_config \/etc\/ssh\/sshd_config.backup` -->\n<div class=\"code-block\" id=\"codeBlock11\">\n  <code class=\"command\">sudo cp \/etc\/ssh\/sshd_config \/etc\/ssh\/sshd_config.backup<\/code>\n  <button class=\"copy-button\" id=\"copyButton11\" onclick=\"copyToClipboard11()\">Copy<\/button>\n<\/div>\n\n<script>\n  \/\/ Function for the `sudo cp \/etc\/ssh\/sshd_config \/etc\/ssh\/sshd_config.backup` command\n  function copyToClipboard11() {\n    const command = 'sudo cp \/etc\/ssh\/sshd_config \/etc\/ssh\/sshd_config.backup';\n    navigator.clipboard.writeText(command).then(() => {\n      const copyButton = document.getElementById('copyButton11');\n      copyButton.textContent = 'Copied';\n      copyButton.classList.add('copied');\n      \n      \/\/ Reset button text and color after a short delay\n      setTimeout(() => {\n        copyButton.textContent = 'Copy';\n        copyButton.classList.remove('copied');\n      }, 2000);\n    });\n  }\n<\/script>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-4bdc7a1 elementor-widget-divider--view-line elementor-widget elementor-widget-divider\" data-id=\"4bdc7a1\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"divider.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-divider\">\n\t\t\t<span class=\"elementor-divider-separator\">\n\t\t\t\t\t\t<\/span>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-347cfd9 elementor-widget elementor-widget-text-editor\" data-id=\"347cfd9\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<h3>Edit the sshd_config File to Change the Port<\/h3><ul><li>Opens the SSH daemon configuration file in the nano text editor. You&#8217;ll modify this file to change the default SSH port from 22 to 2000. You may need to uncomment the line the port is listed on<\/li><li>You need to specify that SSH should listen on port 2000 instead of the default port 22. This allows SSH connections on the new port<\/li><\/ul>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-db11224 elementor-widget elementor-widget-html\" data-id=\"db11224\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<style>\n  .code-block {\n    background-color: #000; \/* Black background *\/\n    color: #FFFFFF; \/* White text *\/\n    padding: 10px;\n    border: 1px solid #ccc;\n    border-radius: 4px;\n    font-family: 'Red Hat Text', sans-serif;\n    white-space: nowrap; \/* Prevent wrapping *\/\n    margin: 10px 0; \/* Spacing between blocks *\/\n    display: flex; \/* Use flexbox for alignment *\/\n    align-items: center; \/* Center items vertically *\/\n    justify-content: space-between; \/* Space between items *\/\n  }\n\n  .copy-button {\n    background-color: #007bff;\n    color: white;\n    border: none;\n    padding: 10px 15px;\n    border-radius: 4px;\n    cursor: pointer;\n    transition: background-color 0.3s; \/* Smooth transition *\/\n  }\n\n  .copy-button:hover {\n    background-color: #0056b3;\n  }\n\n  .copied {\n    background-color: #28a745; \/* Change to green when copied *\/\n  }\n\n  .command {\n    flex-grow: 1; \/* Allow command to take up available space *\/\n    text-align: left; \/* Left-align the text *\/\n  }\n<\/style>\n\n<!-- Command Block for `sudo nano \/etc\/ssh\/sshd_config` -->\n<div class=\"code-block\" id=\"codeBlock12\">\n  <code class=\"command\">sudo nano \/etc\/ssh\/sshd_config<\/code>\n  <button class=\"copy-button\" id=\"copyButton12\" onclick=\"copyToClipboard12()\">Copy<\/button>\n<\/div>\n\n<script>\n  \/\/ Function for the `sudo nano \/etc\/ssh\/sshd_config` command\n  function copyToClipboard12() {\n    const command = 'sudo nano \/etc\/ssh\/sshd_config';\n    navigator.clipboard.writeText(command).then(() => {\n      const copyButton = document.getElementById('copyButton12');\n      copyButton.textContent = 'Copied';\n      copyButton.classList.add('copied');\n      \n      \/\/ Reset button text and color after a short delay\n      setTimeout(() => {\n        copyButton.textContent = 'Copy';\n        copyButton.classList.remove('copied');\n      }, 2000);\n    });\n  }\n<\/script>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-19114c2 elementor-widget-divider--view-line elementor-widget elementor-widget-divider\" data-id=\"19114c2\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"divider.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-divider\">\n\t\t\t<span class=\"elementor-divider-separator\">\n\t\t\t\t\t\t<\/span>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-83eaa56 elementor-widget elementor-widget-text-editor\" data-id=\"83eaa56\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<h3>Restart the SSH Service to Apply the Changes<\/h3><ul><li>Restarting the SSH service applies your new settings, allowing SSH to start listening on port 2000<\/li><\/ul>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-7c2e3bc elementor-widget elementor-widget-html\" data-id=\"7c2e3bc\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<style>\n  .code-block {\n    background-color: #000; \/* Black background *\/\n    color: #FFFFFF; \/* White text *\/\n    padding: 10px;\n    border: 1px solid #ccc;\n    border-radius: 4px;\n    font-family: 'Red Hat Text', sans-serif;\n    white-space: nowrap; \/* Prevent wrapping *\/\n    margin: 10px 0; \/* Spacing between blocks *\/\n    display: flex; \/* Use flexbox for alignment *\/\n    align-items: center; \/* Center items vertically *\/\n    justify-content: space-between; \/* Space between items *\/\n  }\n\n  .copy-button {\n    background-color: #007bff;\n    color: white;\n    border: none;\n    padding: 10px 15px;\n    border-radius: 4px;\n    cursor: pointer;\n    transition: background-color 0.3s; \/* Smooth transition *\/\n  }\n\n  .copy-button:hover {\n    background-color: #0056b3;\n  }\n\n  .copied {\n    background-color: #28a745; \/* Change to green when copied *\/\n  }\n\n  .command {\n    flex-grow: 1; \/* Allow command to take up available space *\/\n    text-align: left; \/* Left-align the text *\/\n  }\n<\/style>\n\n<!-- Command Block for `sudo systemctl restart ssh` -->\n<div class=\"code-block\" id=\"codeBlock13\">\n  <code class=\"command\">sudo systemctl restart ssh<\/code>\n  <button class=\"copy-button\" id=\"copyButton13\" onclick=\"copyToClipboard13()\">Copy<\/button>\n<\/div>\n\n<script>\n  \/\/ Function for the `sudo systemctl restart ssh` command\n  function copyToClipboard13() {\n    const command = 'sudo systemctl restart ssh';\n    navigator.clipboard.writeText(command).then(() => {\n      const copyButton = document.getElementById('copyButton13');\n      copyButton.textContent = 'Copied';\n      copyButton.classList.add('copied');\n      \n      \/\/ Reset button text and color after a short delay\n      setTimeout(() => {\n        copyButton.textContent = 'Copy';\n        copyButton.classList.remove('copied');\n      }, 2000);\n    });\n  }\n<\/script>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-b9664fd elementor-widget-divider--view-line elementor-widget elementor-widget-divider\" data-id=\"b9664fd\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"divider.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-divider\">\n\t\t\t<span class=\"elementor-divider-separator\">\n\t\t\t\t\t\t<\/span>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-3b3c5fc elementor-widget elementor-widget-text-editor\" data-id=\"3b3c5fc\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<h3>Remove Port 22 from Firewalld <em>(block SSH on default port)<\/em><\/h3><ul><li>Since you&#8217;re no longer using port 22 for SSH, you need to block it to prevent unauthorized access via the default port<\/li><\/ul>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-3abb753 elementor-widget elementor-widget-html\" data-id=\"3abb753\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<style>\n  .code-block {\n    background-color: #000; \/* Black background *\/\n    color: #FFFFFF; \/* White text *\/\n    padding: 10px;\n    border: 1px solid #ccc;\n    border-radius: 4px;\n    font-family: 'Red Hat Text', sans-serif;\n    white-space: nowrap; \/* Prevent wrapping *\/\n    margin: 10px 0; \/* Spacing between blocks *\/\n    display: flex; \/* Use flexbox for alignment *\/\n    align-items: center; \/* Center items vertically *\/\n    justify-content: space-between; \/* Space between items *\/\n  }\n\n  .copy-button {\n    background-color: #007bff;\n    color: white;\n    border: none;\n    padding: 10px 15px;\n    border-radius: 4px;\n    cursor: pointer;\n    transition: background-color 0.3s; \/* Smooth transition *\/\n  }\n\n  .copy-button:hover {\n    background-color: #0056b3;\n  }\n\n  .copied {\n    background-color: #28a745; \/* Change to green when copied *\/\n  }\n\n  .command {\n    flex-grow: 1; \/* Allow command to take up available space *\/\n    text-align: left; \/* Left-align the text *\/\n  }\n<\/style>\n\n<!-- Command Block for `sudo firewall-cmd --zone=public --remove-port=22\/tcp --permanent` -->\n<div class=\"code-block\" id=\"codeBlock14\">\n  <code class=\"command\">sudo firewall-cmd --zone=public --remove-port=22\/tcp --permanent<\/code>\n  <button class=\"copy-button\" id=\"copyButton14\" onclick=\"copyToClipboard14()\">Copy<\/button>\n<\/div>\n\n<script>\n  \/\/ Function for the `sudo firewall-cmd --zone=public --remove-port=22\/tcp --permanent` command\n  function copyToClipboard14() {\n    const command = 'sudo firewall-cmd --zone=public --remove-port=22\/tcp --permanent';\n    navigator.clipboard.writeText(command).then(() => {\n      const copyButton = document.getElementById('copyButton14');\n      copyButton.textContent = 'Copied';\n      copyButton.classList.add('copied');\n      \n      \/\/ Reset button text and color after a short delay\n      setTimeout(() => {\n        copyButton.textContent = 'Copy';\n        copyButton.classList.remove('copied');\n      }, 2000);\n    });\n  }\n<\/script>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-4ea97b7 elementor-widget-divider--view-line elementor-widget elementor-widget-divider\" data-id=\"4ea97b7\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"divider.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-divider\">\n\t\t\t<span class=\"elementor-divider-separator\">\n\t\t\t\t\t\t<\/span>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-c86d435 elementor-widget elementor-widget-text-editor\" data-id=\"c86d435\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<h3>Reload Firewalld to Apply Changes<\/h3><ul><li>This reloads firewalld to apply the changes (removing port 22) made to the configuration<\/li><\/ul>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-26c2a77 elementor-widget elementor-widget-html\" data-id=\"26c2a77\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<style>\n  .code-block {\n    background-color: #000; \/* Black background *\/\n    color: #FFFFFF; \/* White text *\/\n    padding: 10px;\n    border: 1px solid #ccc;\n    border-radius: 4px;\n    font-family: 'Red Hat Text', sans-serif;\n    white-space: nowrap; \/* Prevent wrapping *\/\n    margin: 10px 0; \/* Spacing between blocks *\/\n    display: flex; \/* Use flexbox for alignment *\/\n    align-items: center; \/* Center items vertically *\/\n    justify-content: space-between; \/* Space between items *\/\n  }\n\n  .copy-button {\n    background-color: #007bff;\n    color: white;\n    border: none;\n    padding: 10px 15px;\n    border-radius: 4px;\n    cursor: pointer;\n    transition: background-color 0.3s; \/* Smooth transition *\/\n  }\n\n  .copy-button:hover {\n    background-color: #0056b3;\n  }\n\n  .copied {\n    background-color: #28a745; \/* Change to green when copied *\/\n  }\n\n  .command {\n    flex-grow: 1; \/* Allow command to take up available space *\/\n    text-align: left; \/* Left-align the text *\/\n  }\n<\/style>\n\n<!-- Command Block for `sudo firewall-cmd --reload` -->\n<div class=\"code-block\" id=\"codeBlock15\">\n  <code class=\"command\">sudo firewall-cmd --reload<\/code>\n  <button class=\"copy-button\" id=\"copyButton15\" onclick=\"copyToClipboard15()\">Copy<\/button>\n<\/div>\n\n<script>\n  \/\/ Function for the `sudo firewall-cmd --reload` command\n  function copyToClipboard15() {\n    const command = 'sudo firewall-cmd --reload';\n    navigator.clipboard.writeText(command).then(() => {\n      const copyButton = document.getElementById('copyButton15');\n      copyButton.textContent = 'Copied';\n      copyButton.classList.add('copied');\n      \n      \/\/ Reset button text and color after a short delay\n      setTimeout(() => {\n        copyButton.textContent = 'Copy';\n        copyButton.classList.remove('copied');\n      }, 2000);\n    });\n  }\n<\/script>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-d1cee28 elementor-widget-divider--view-line elementor-widget elementor-widget-divider\" data-id=\"d1cee28\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"divider.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-divider\">\n\t\t\t<span class=\"elementor-divider-separator\">\n\t\t\t\t\t\t<\/span>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-d4eb16d elementor-widget elementor-widget-text-editor\" data-id=\"d4eb16d\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<h3>Verify Open Ports in Firewalld<\/h3><ul><li>It helps you confirm that port 22 has been successfully closed and port 2000 is the only open port for SSH<\/li><\/ul>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-a0a9705 elementor-widget elementor-widget-html\" data-id=\"a0a9705\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<style>\n  .code-block {\n    background-color: #000; \/* Black background *\/\n    color: #FFFFFF; \/* White text *\/\n    padding: 10px;\n    border: 1px solid #ccc;\n    border-radius: 4px;\n    font-family: 'Red Hat Text', sans-serif;\n    white-space: nowrap; \/* Prevent wrapping *\/\n    margin: 10px 0; \/* Spacing between blocks *\/\n    display: flex; \/* Use flexbox for alignment *\/\n    align-items: center; \/* Center items vertically *\/\n    justify-content: space-between; \/* Space between items *\/\n  }\n\n  .copy-button {\n    background-color: #007bff;\n    color: white;\n    border: none;\n    padding: 10px 15px;\n    border-radius: 4px;\n    cursor: pointer;\n    transition: background-color 0.3s; \/* Smooth transition *\/\n  }\n\n  .copy-button:hover {\n    background-color: #0056b3;\n  }\n\n  .copied {\n    background-color: #28a745; \/* Change to green when copied *\/\n  }\n\n  .command {\n    flex-grow: 1; \/* Allow command to take up available space *\/\n    text-align: left; \/* Left-align the text *\/\n  }\n<\/style>\n\n<!-- Command Block for `sudo firewall-cmd --list-ports` -->\n<div class=\"code-block\" id=\"codeBlock16\">\n  <code class=\"command\">sudo firewall-cmd --list-ports<\/code>\n  <button class=\"copy-button\" id=\"copyButton16\" onclick=\"copyToClipboard16()\">Copy<\/button>\n<\/div>\n\n<script>\n  \/\/ Function for the `sudo firewall-cmd --list-ports` command\n  function copyToClipboard16() {\n    const command = 'sudo firewall-cmd --list-ports';\n    navigator.clipboard.writeText(command).then(() => {\n      const copyButton = document.getElementById('copyButton16');\n      copyButton.textContent = 'Copied';\n      copyButton.classList.add('copied');\n      \n      \/\/ Reset button text and color after a short delay\n      setTimeout(() => {\n        copyButton.textContent = 'Copy';\n        copyButton.classList.remove('copied');\n      }, 2000);\n    });\n  }\n<\/script>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-889dbf9 elementor-widget-divider--view-line elementor-widget elementor-widget-divider\" data-id=\"889dbf9\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"divider.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-divider\">\n\t\t\t<span class=\"elementor-divider-separator\">\n\t\t\t\t\t\t<\/span>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-9be9a75 elementor-widget elementor-widget-text-editor\" data-id=\"9be9a75\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<h3>Block Incoming Connections on Port 22 via iptables<\/h3><ul><li>This step ensures that even if the firewall doesn&#8217;t block port 22, iptables will reject any incoming connections on port 22, adding an extra layer of protection<\/li><\/ul>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-aa79496 elementor-widget elementor-widget-html\" data-id=\"aa79496\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<style>\n  .code-block {\n    background-color: #000; \/* Black background *\/\n    color: #FFFFFF; \/* White text *\/\n    padding: 10px;\n    border: 1px solid #ccc;\n    border-radius: 4px;\n    font-family: 'Red Hat Text', sans-serif;\n    white-space: nowrap; \/* Prevent wrapping *\/\n    margin: 10px 0; \/* Spacing between blocks *\/\n    display: flex; \/* Use flexbox for alignment *\/\n    align-items: center; \/* Center items vertically *\/\n    justify-content: space-between; \/* Space between items *\/\n  }\n\n  .copy-button {\n    background-color: #007bff;\n    color: white;\n    border: none;\n    padding: 10px 15px;\n    border-radius: 4px;\n    cursor: pointer;\n    transition: background-color 0.3s; \/* Smooth transition *\/\n  }\n\n  .copy-button:hover {\n    background-color: #0056b3;\n  }\n\n  .copied {\n    background-color: #28a745; \/* Change to green when copied *\/\n  }\n\n  .command {\n    flex-grow: 1; \/* Allow command to take up available space *\/\n    text-align: left; \/* Left-align the text *\/\n  }\n<\/style>\n\n<!-- Command Block for `sudo iptables -A INPUT -p tcp --dport 22 -j REJECT` -->\n<div class=\"code-block\" id=\"codeBlock17\">\n  <code class=\"command\">sudo iptables -A INPUT -p tcp --dport 22 -j REJECT<\/code>\n  <button class=\"copy-button\" id=\"copyButton17\" onclick=\"copyToClipboard17()\">Copy<\/button>\n<\/div>\n\n<script>\n  \/\/ Function for the `sudo iptables -A INPUT -p tcp --dport 22 -j REJECT` command\n  function copyToClipboard17() {\n    const command = 'sudo iptables -A INPUT -p tcp --dport 22 -j REJECT';\n    navigator.clipboard.writeText(command).then(() => {\n      const copyButton = document.getElementById('copyButton17');\n      copyButton.textContent = 'Copied';\n      copyButton.classList.add('copied');\n      \n      \/\/ Reset button text and color after a short delay\n      setTimeout(() => {\n        copyButton.textContent = 'Copy';\n        copyButton.classList.remove('copied');\n      }, 2000);\n    });\n  }\n<\/script>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-da3f8b8 elementor-widget-divider--view-line elementor-widget elementor-widget-divider\" data-id=\"da3f8b8\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"divider.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-divider\">\n\t\t\t<span class=\"elementor-divider-separator\">\n\t\t\t\t\t\t<\/span>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-945a25e elementor-widget elementor-widget-text-editor\" data-id=\"945a25e\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<h3>Save iptables Rules Again<\/h3><ul><li>This command saves the updated iptables configuration (including the rule to reject port 22) so it persists after reboot<\/li><\/ul>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-25dc0bc elementor-widget elementor-widget-html\" data-id=\"25dc0bc\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<style>\n  .code-block {\n    background-color: #000; \/* Black background *\/\n    color: #FFFFFF; \/* White text *\/\n    padding: 10px;\n    border: 1px solid #ccc;\n    border-radius: 4px;\n    font-family: 'Red Hat Text', sans-serif;\n    white-space: nowrap; \/* Prevent wrapping *\/\n    margin: 10px 0; \/* Spacing between blocks *\/\n    display: flex; \/* Use flexbox for alignment *\/\n    align-items: center; \/* Center items vertically *\/\n    justify-content: space-between; \/* Space between items *\/\n  }\n\n  .copy-button {\n    background-color: #007bff;\n    color: white;\n    border: none;\n    padding: 10px 15px;\n    border-radius: 4px;\n    cursor: pointer;\n    transition: background-color 0.3s; \/* Smooth transition *\/\n  }\n\n  .copy-button:hover {\n    background-color: #0056b3;\n  }\n\n  .copied {\n    background-color: #28a745; \/* Change to green when copied *\/\n  }\n\n  .command {\n    flex-grow: 1; \/* Allow command to take up available space *\/\n    text-align: left; \/* Left-align the text *\/\n  }\n<\/style>\n\n<!-- Command Block for `sudo netfilter-persistent save` -->\n<div class=\"code-block\" id=\"codeBlock18\">\n  <code class=\"command\">sudo netfilter-persistent save<\/code>\n  <button class=\"copy-button\" id=\"copyButton18\" onclick=\"copyToClipboard18()\">Copy<\/button>\n<\/div>\n\n<script>\n  \/\/ Function for the `sudo netfilter-persistent save` command\n  function copyToClipboard18() {\n    const command = 'sudo netfilter-persistent save';\n    navigator.clipboard.writeText(command).then(() => {\n      const copyButton = document.getElementById('copyButton18');\n      copyButton.textContent = 'Copied';\n      copyButton.classList.add('copied');\n      \n      \/\/ Reset button text and color after a short delay\n      setTimeout(() => {\n        copyButton.textContent = 'Copy';\n        copyButton.classList.remove('copied');\n      }, 2000);\n    });\n  }\n<\/script>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-5f58760 elementor-widget-divider--view-line elementor-widget elementor-widget-divider\" data-id=\"5f58760\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"divider.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-divider\">\n\t\t\t<span class=\"elementor-divider-separator\">\n\t\t\t\t\t\t<\/span>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-be424b0 elementor-widget elementor-widget-text-editor\" data-id=\"be424b0\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<h3>List Current iptables Rules Again<\/h3><ul><li>It provides a final check to verify that your firewall and iptables settings are correctly applied.<\/li><\/ul>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-86144ed elementor-widget elementor-widget-html\" data-id=\"86144ed\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<style>\n  .code-block {\n    background-color: #000; \/* Black background *\/\n    color: #FFFFFF; \/* White text *\/\n    padding: 10px;\n    border: 1px solid #ccc;\n    border-radius: 4px;\n    font-family: 'Red Hat Text', sans-serif;\n    white-space: nowrap; \/* Prevent wrapping *\/\n    margin: 10px 0; \/* Spacing between blocks *\/\n    display: flex; \/* Use flexbox for alignment *\/\n    align-items: center; \/* Center items vertically *\/\n    justify-content: space-between; \/* Space between items *\/\n  }\n\n  .copy-button {\n    background-color: #007bff;\n    color: white;\n    border: none;\n    padding: 10px 15px;\n    border-radius: 4px;\n    cursor: pointer;\n    transition: background-color 0.3s; \/* Smooth transition *\/\n  }\n\n  .copy-button:hover {\n    background-color: #0056b3;\n  }\n\n  .copied {\n    background-color: #28a745; \/* Change to green when copied *\/\n  }\n\n  .command {\n    flex-grow: 1; \/* Allow command to take up available space *\/\n    text-align: left; \/* Left-align the text *\/\n  }\n<\/style>\n\n<!-- Command Block for `sudo iptables -L` -->\n<div class=\"code-block\" id=\"codeBlock19\">\n  <code class=\"command\">sudo iptables -L<\/code>\n  <button class=\"copy-button\" id=\"copyButton19\" onclick=\"copyToClipboard19()\">Copy<\/button>\n<\/div>\n\n<script>\n  \/\/ Function for the `sudo iptables -L` command\n  function copyToClipboard19() {\n    const command = 'sudo iptables -L';\n    navigator.clipboard.writeText(command).then(() => {\n      const copyButton = document.getElementById('copyButton19');\n      copyButton.textContent = 'Copied';\n      copyButton.classList.add('copied');\n      \n      \/\/ Reset button text and color after a short delay\n      setTimeout(() => {\n        copyButton.textContent = 'Copy';\n        copyButton.classList.remove('copied');\n      }, 2000);\n    });\n  }\n<\/script>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-be91fb4 elementor-widget-divider--view-line elementor-widget elementor-widget-divider\" data-id=\"be91fb4\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"divider.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-divider\">\n\t\t\t<span class=\"elementor-divider-separator\">\n\t\t\t\t\t\t<\/span>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-694e3c9 elementor-widget elementor-widget-text-editor\" data-id=\"694e3c9\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<h2>Final Thoughts<\/h2><p>This guide offers a detailed approach to securing SSH access and configuring firewall rules for optimal server security. By following each step, SSH access is successfully moved to a custom port, and port 22 is closed to reduce exposure. The firewall is configured to allow only the new port while blocking the default SSH port. Ensure all changes are tested and saved for persistence across reboots. Stay secure and configure with confidence!<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-0351136 e-flex e-con-boxed e-con e-parent\" data-id=\"0351136\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-f3ed2e2 elementor-widget elementor-widget-spacer\" data-id=\"f3ed2e2\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"spacer.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-spacer\">\n\t\t\t<div class=\"elementor-spacer-inner\"><\/div>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>Changing SSH Port Notes: Port 2000 will be used during this guide as an example You may choose any port [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"site-sidebar-layout":"no-sidebar","site-content-layout":"","ast-site-content-layout":"full-width-container","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"disabled","ast-breadcrumbs-content":"","ast-featured-img":"disabled","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"class_list":["post-735","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/parke-r.com\/index.php?rest_route=\/wp\/v2\/pages\/735","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/parke-r.com\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/parke-r.com\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/parke-r.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/parke-r.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=735"}],"version-history":[{"count":68,"href":"https:\/\/parke-r.com\/index.php?rest_route=\/wp\/v2\/pages\/735\/revisions"}],"predecessor-version":[{"id":813,"href":"https:\/\/parke-r.com\/index.php?rest_route=\/wp\/v2\/pages\/735\/revisions\/813"}],"wp:attachment":[{"href":"https:\/\/parke-r.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=735"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}