{"id":3372,"date":"2024-04-05T14:02:37","date_gmt":"2024-04-05T14:02:37","guid":{"rendered":"https:\/\/platinumsupport.in\/blog\/?p=3372"},"modified":"2024-09-21T04:36:04","modified_gmt":"2024-09-21T04:36:04","slug":"boost-server-security-enhance-ssh-port-linux","status":"publish","type":"post","link":"https:\/\/platinumsupport.in\/blog\/boost-server-security-enhance-ssh-port-linux\/","title":{"rendered":"Enhancing SSH Security: Changing the Default SSH Port on Linux"},"content":{"rendered":"\n<div class=\"wp-block-stackable-heading stk-block-heading stk-block-heading--v2 stk-block stk-e6d8cbd\" id=\"check-why-and-how-to-change-default-ssh-port\" data-block-id=\"e6d8cbd\"><h6 class=\"stk-block-heading__text\">Check why and how to change default SSH port ?<\/h6><\/div>\n\n\n\n<p>In today&#8217;s interconnected digital landscape, safeguarding remote server access holds critical importance. Among the prevalent methods for remote access is the Secure Shell (SSH) protocol, furnishing encrypted communication sessions across unsecured networks to facilitate secure remote administration and file transfers.<\/p>\n\n\n\n<p>However, despite its robust security features, SSH remains susceptible to attacks. Malicious actors continually probe networks for vulnerabilities, often targeting SSH on its default port 22. Altering this default port can serve as a simple yet effective tactic to bolster system security.<\/p>\n\n\n\n<p><strong>Understanding SSH Port Security<\/strong><\/p>\n\n\n\n<p>SSH typically operates on port 22 by default, providing attackers with a direct target for exploitation. This standardized port simplifies the task for malicious entities, who frequently launch brute-force attacks attempting to gain unauthorized access by testing common username-password combinations. Changing the default port introduces an additional layer of complexity, complicating attackers&#8217; efforts to identify and exploit SSH services.<\/p>\n\n\n\n<p><strong>Steps to Modify the SSH Port<\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li style=\"margin-top:var(--wp--preset--spacing--40);margin-right:0;margin-bottom:var(--wp--preset--spacing--40);margin-left:0\"><strong>Select a New Port:<\/strong> Choose a port number between 1024 and 65535, avoiding commonly used ports to minimize conflicts with other services.<\/li>\n\n\n\n<li style=\"margin-top:var(--wp--preset--spacing--40);margin-right:0;margin-bottom:var(--wp--preset--spacing--40);margin-left:0\"><strong>Edit SSH Configuration File: <\/strong>Utilize a text editor such as nano or vi to open the SSH configuration file, typically located at <span style=\"color: #f701d6;\" class=\"stk-highlight\">\/etc\/ssh\/sshd_config<\/span><\/li>\n\n\n\n<li style=\"margin-top:var(--wp--preset--spacing--40);margin-right:0;margin-bottom:var(--wp--preset--spacing--40);margin-left:0\"><strong>Locate the Port Directive:<\/strong> Identify the line starting with Port, which designates the port on which SSH listens for incoming connections.<\/li>\n\n\n\n<li style=\"margin-top:var(--wp--preset--spacing--40);margin-right:0;margin-bottom:var(--wp--preset--spacing--40);margin-left:0\"><strong>Update the Port Number: <\/strong>Replace the default port number (22) with the chosen port number.<\/li>\n\n\n\n<li style=\"margin-top:var(--wp--preset--spacing--40);margin-right:0;margin-bottom:var(--wp--preset--spacing--40);margin-left:0\"><strong>Save and Close the File: <\/strong>Save your modifications and exit the text editor.<\/li>\n\n\n\n<li style=\"margin-top:var(--wp--preset--spacing--40);margin-right:0;margin-bottom:var(--wp--preset--spacing--40);margin-left:0\"><strong>Restart SSH Service: <\/strong>To implement the changes, restart the SSH service using the command:<\/li>\n\n\n\n<li style=\"margin-top:var(--wp--preset--spacing--40);margin-right:0;margin-bottom:var(--wp--preset--spacing--40);margin-left:0\"><strong>Open new SSH port in Firewall:<\/strong> Make sure your open the new SSH in server firewall<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo systemctl restart sshd<\/code><\/pre>\n\n\n\n<p><strong>Advantages of Port Modification<\/strong><\/p>\n\n\n\n<p><strong>Changing the default SSH port offers several benefits:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li style=\"margin-top:var(--wp--preset--spacing--30);margin-bottom:var(--wp--preset--spacing--30)\"><strong>Reduced Exposure: <\/strong>Altering the SSH service port diminishes the susceptibility to automated attacks by obscuring its presence.<\/li>\n\n\n\n<li style=\"margin-top:var(--wp--preset--spacing--30);margin-bottom:var(--wp--preset--spacing--30)\"><strong>Brute-Force Attack Mitigation: <\/strong>Attackers often target default ports for brute-force attacks. Changing the port disrupts these automated attempts, necessitating additional reconnaissance efforts to discover the new port.<\/li>\n\n\n\n<li style=\"margin-top:var(--wp--preset--spacing--30);margin-bottom:var(--wp--preset--spacing--30)\"><strong>Enhanced Security Through Obscurity:<\/strong> While not a standalone security solution, leveraging security through obscurity complements existing security measures, adding an extra layer of protection.<\/li>\n<\/ul>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p><strong>For Technical Assistance,<\/strong>&nbsp;Contact&nbsp;<a href=\"https:\/\/platinumsupport.in\/submitticket.php\">PlatinumSupport<\/a>:<\/p>\n\n\n\n<p><strong>WhatsApp<\/strong>: +91 9922950127<br><strong>Email<\/strong>: esupport@platinumsupport.in<\/p>\n\n\n\n<p><a href=\"https:\/\/platinumsupport.in\/\">PlatinumSupport\u00a0<\/a>is here to provide expert guidance and technical support.<\/p>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>Check why and how to change default SSH port ? In today&#8217;s interconnected digital landscape, safeguarding remote server access holds critical importance. Among the prevalent methods for remote access is the Secure Shell (SSH) protocol, furnishing encrypted communication sessions across unsecured networks to facilitate secure remote administration and file transfers. However, despite its robust security [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,21],"tags":[],"class_list":["post-3372","post","type-post","status-publish","format-standard","hentry","category-cpanel-whm-technical-support-solutions","category-linux-security"],"blocksy_meta":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v20.13 (Yoast SEO v26.9) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Enhancing SSH Security: Changing the Default SSH Port on Linux - Knowledge Base<\/title>\n<meta name=\"description\" content=\"Enhance server security: Change SSH port on Linux to thwart cyber threats, reduce vulnerabilities, and fortify defenses.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/platinumsupport.in\/blog\/boost-server-security-enhance-ssh-port-linux\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Enhancing SSH Security: Changing the Default SSH Port on Linux\" \/>\n<meta property=\"og:description\" content=\"Enhance server security: Change SSH port on Linux to thwart cyber threats, reduce vulnerabilities, and fortify defenses.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/platinumsupport.in\/blog\/boost-server-security-enhance-ssh-port-linux\/\" \/>\n<meta property=\"og:site_name\" content=\"Knowledge Base\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/facebook.com\/platinumsupport.in\" \/>\n<meta property=\"article:published_time\" content=\"2024-04-05T14:02:37+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-09-21T04:36:04+00:00\" \/>\n<meta name=\"author\" content=\"Aarti More\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Aarti More\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/platinumsupport.in\/blog\/boost-server-security-enhance-ssh-port-linux\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/platinumsupport.in\/blog\/boost-server-security-enhance-ssh-port-linux\/\"},\"author\":{\"name\":\"Aarti More\",\"@id\":\"https:\/\/platinumsupport.in\/blog\/#\/schema\/person\/9cfecb26b3efa22d1973dfdc530efc25\"},\"headline\":\"Enhancing SSH Security: Changing the Default SSH Port on Linux\",\"datePublished\":\"2024-04-05T14:02:37+00:00\",\"dateModified\":\"2024-09-21T04:36:04+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/platinumsupport.in\/blog\/boost-server-security-enhance-ssh-port-linux\/\"},\"wordCount\":395,\"publisher\":{\"@id\":\"https:\/\/platinumsupport.in\/blog\/#organization\"},\"articleSection\":[\"cPanel\/WHM\",\"Security\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/platinumsupport.in\/blog\/boost-server-security-enhance-ssh-port-linux\/\",\"url\":\"https:\/\/platinumsupport.in\/blog\/boost-server-security-enhance-ssh-port-linux\/\",\"name\":\"Enhancing SSH Security: Changing the Default SSH Port on Linux - Knowledge Base\",\"isPartOf\":{\"@id\":\"https:\/\/platinumsupport.in\/blog\/#website\"},\"datePublished\":\"2024-04-05T14:02:37+00:00\",\"dateModified\":\"2024-09-21T04:36:04+00:00\",\"description\":\"Enhance server security: Change SSH port on Linux to thwart cyber threats, reduce vulnerabilities, and fortify defenses.\",\"breadcrumb\":{\"@id\":\"https:\/\/platinumsupport.in\/blog\/boost-server-security-enhance-ssh-port-linux\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/platinumsupport.in\/blog\/boost-server-security-enhance-ssh-port-linux\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/platinumsupport.in\/blog\/boost-server-security-enhance-ssh-port-linux\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/platinumsupport.in\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Enhancing SSH Security: Changing the Default SSH Port on Linux\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/platinumsupport.in\/blog\/#website\",\"url\":\"https:\/\/platinumsupport.in\/blog\/\",\"name\":\"PlatinumSupport.in\",\"description\":\"Discover Success through Expert Guidance: Dive into the PlatinumSupport Blog for Solutions and Empowerment!\",\"publisher\":{\"@id\":\"https:\/\/platinumsupport.in\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/platinumsupport.in\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/platinumsupport.in\/blog\/#organization\",\"name\":\"Tech Savy Systems\",\"url\":\"https:\/\/platinumsupport.in\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/platinumsupport.in\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/platinumsupport.in\/blog\/wp-content\/uploads\/2024\/02\/psm-blog.png\",\"contentUrl\":\"https:\/\/platinumsupport.in\/blog\/wp-content\/uploads\/2024\/02\/psm-blog.png\",\"width\":250,\"height\":75,\"caption\":\"Tech Savy Systems\"},\"image\":{\"@id\":\"https:\/\/platinumsupport.in\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/facebook.com\/platinumsupport.in\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/platinumsupport.in\/blog\/#\/schema\/person\/9cfecb26b3efa22d1973dfdc530efc25\",\"name\":\"Aarti More\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/platinumsupport.in\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/d27840ba8071c00a5d048c6512e560886cec2bc10e531c050041dc7fe3af4839?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/d27840ba8071c00a5d048c6512e560886cec2bc10e531c050041dc7fe3af4839?s=96&d=mm&r=g\",\"caption\":\"Aarti More\"},\"url\":\"https:\/\/platinumsupport.in\/blog\/author\/aarti-m\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Enhancing SSH Security: Changing the Default SSH Port on Linux - Knowledge Base","description":"Enhance server security: Change SSH port on Linux to thwart cyber threats, reduce vulnerabilities, and fortify defenses.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/platinumsupport.in\/blog\/boost-server-security-enhance-ssh-port-linux\/","og_locale":"en_US","og_type":"article","og_title":"Enhancing SSH Security: Changing the Default SSH Port on Linux","og_description":"Enhance server security: Change SSH port on Linux to thwart cyber threats, reduce vulnerabilities, and fortify defenses.","og_url":"https:\/\/platinumsupport.in\/blog\/boost-server-security-enhance-ssh-port-linux\/","og_site_name":"Knowledge Base","article_publisher":"https:\/\/facebook.com\/platinumsupport.in","article_published_time":"2024-04-05T14:02:37+00:00","article_modified_time":"2024-09-21T04:36:04+00:00","author":"Aarti More","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Aarti More","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/platinumsupport.in\/blog\/boost-server-security-enhance-ssh-port-linux\/#article","isPartOf":{"@id":"https:\/\/platinumsupport.in\/blog\/boost-server-security-enhance-ssh-port-linux\/"},"author":{"name":"Aarti More","@id":"https:\/\/platinumsupport.in\/blog\/#\/schema\/person\/9cfecb26b3efa22d1973dfdc530efc25"},"headline":"Enhancing SSH Security: Changing the Default SSH Port on Linux","datePublished":"2024-04-05T14:02:37+00:00","dateModified":"2024-09-21T04:36:04+00:00","mainEntityOfPage":{"@id":"https:\/\/platinumsupport.in\/blog\/boost-server-security-enhance-ssh-port-linux\/"},"wordCount":395,"publisher":{"@id":"https:\/\/platinumsupport.in\/blog\/#organization"},"articleSection":["cPanel\/WHM","Security"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/platinumsupport.in\/blog\/boost-server-security-enhance-ssh-port-linux\/","url":"https:\/\/platinumsupport.in\/blog\/boost-server-security-enhance-ssh-port-linux\/","name":"Enhancing SSH Security: Changing the Default SSH Port on Linux - Knowledge Base","isPartOf":{"@id":"https:\/\/platinumsupport.in\/blog\/#website"},"datePublished":"2024-04-05T14:02:37+00:00","dateModified":"2024-09-21T04:36:04+00:00","description":"Enhance server security: Change SSH port on Linux to thwart cyber threats, reduce vulnerabilities, and fortify defenses.","breadcrumb":{"@id":"https:\/\/platinumsupport.in\/blog\/boost-server-security-enhance-ssh-port-linux\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/platinumsupport.in\/blog\/boost-server-security-enhance-ssh-port-linux\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/platinumsupport.in\/blog\/boost-server-security-enhance-ssh-port-linux\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/platinumsupport.in\/blog\/"},{"@type":"ListItem","position":2,"name":"Enhancing SSH Security: Changing the Default SSH Port on Linux"}]},{"@type":"WebSite","@id":"https:\/\/platinumsupport.in\/blog\/#website","url":"https:\/\/platinumsupport.in\/blog\/","name":"PlatinumSupport.in","description":"Discover Success through Expert Guidance: Dive into the PlatinumSupport Blog for Solutions and Empowerment!","publisher":{"@id":"https:\/\/platinumsupport.in\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/platinumsupport.in\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/platinumsupport.in\/blog\/#organization","name":"Tech Savy Systems","url":"https:\/\/platinumsupport.in\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/platinumsupport.in\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/platinumsupport.in\/blog\/wp-content\/uploads\/2024\/02\/psm-blog.png","contentUrl":"https:\/\/platinumsupport.in\/blog\/wp-content\/uploads\/2024\/02\/psm-blog.png","width":250,"height":75,"caption":"Tech Savy Systems"},"image":{"@id":"https:\/\/platinumsupport.in\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/facebook.com\/platinumsupport.in"]},{"@type":"Person","@id":"https:\/\/platinumsupport.in\/blog\/#\/schema\/person\/9cfecb26b3efa22d1973dfdc530efc25","name":"Aarti More","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/platinumsupport.in\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/d27840ba8071c00a5d048c6512e560886cec2bc10e531c050041dc7fe3af4839?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/d27840ba8071c00a5d048c6512e560886cec2bc10e531c050041dc7fe3af4839?s=96&d=mm&r=g","caption":"Aarti More"},"url":"https:\/\/platinumsupport.in\/blog\/author\/aarti-m\/"}]}},"_links":{"self":[{"href":"https:\/\/platinumsupport.in\/blog\/wp-json\/wp\/v2\/posts\/3372","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/platinumsupport.in\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/platinumsupport.in\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/platinumsupport.in\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/platinumsupport.in\/blog\/wp-json\/wp\/v2\/comments?post=3372"}],"version-history":[{"count":4,"href":"https:\/\/platinumsupport.in\/blog\/wp-json\/wp\/v2\/posts\/3372\/revisions"}],"predecessor-version":[{"id":3379,"href":"https:\/\/platinumsupport.in\/blog\/wp-json\/wp\/v2\/posts\/3372\/revisions\/3379"}],"wp:attachment":[{"href":"https:\/\/platinumsupport.in\/blog\/wp-json\/wp\/v2\/media?parent=3372"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/platinumsupport.in\/blog\/wp-json\/wp\/v2\/categories?post=3372"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/platinumsupport.in\/blog\/wp-json\/wp\/v2\/tags?post=3372"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}