{"id":2144,"date":"2024-05-30T12:30:00","date_gmt":"2024-05-30T17:30:00","guid":{"rendered":"https:\/\/www.linuxcloudvps.com\/blog\/?p=2144"},"modified":"2024-04-23T03:03:45","modified_gmt":"2024-04-23T08:03:45","slug":"how-to-change-ssh-listening-port-on-ubuntu-24-04","status":"publish","type":"post","link":"https:\/\/www.linuxcloudvps.com\/blog\/how-to-change-ssh-listening-port-on-ubuntu-24-04\/","title":{"rendered":"How to Change SSH Listening Port on Ubuntu 24.04"},"content":{"rendered":"\n<p>Secure Shell or SSH is a network protocol that allows users to access servers remotely. This protocol also encrypts communication between servers to make it even more secure. Unfortunately, using standard Transmission Control Protocol (TCP) port 22 for SSH may be risky as it is vulnerable to various cyber attacks, especially brute-force attacks. Brute-force attacks are methods hackers use to gain access to encrypted confidential data. So, it&#8217;s best to change the default SSH port because this is a method to protect your SSH server. This article will teach you how to change SSH listening port on <a href=\"https:\/\/ubuntu.com\/\" target=\"_blank\" rel=\"noreferrer noopener\">Ubuntu<\/a> 24.04.<\/p>\n\n\n\n<!--more-->\n\n\n\n<h2 class=\"wp-block-heading\">Prerequisites<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>An Ubuntu 24.04 VPS<\/li>\n\n\n\n<li>SSH root access or user with sudo privileges<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Conventions<\/h2>\n\n\n\n<pre class=\"wp-block-preformatted\"># \u2013 given commands should be executed with root privileges either directly as a root user or by use of sudo command\n$ \u2013 given commands should be executed as a regular user<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Step 1. Login to the server<\/h2>\n\n\n\n<p>First, log in to your Ubuntu 24.04 server through SSH as the root user:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">ssh root@IP_Address -p Port_number<\/pre>\n\n\n\n<p>You will need to replace \u2018IP_Address\u2018 and \u2018Port_number\u2018 with your server\u2019s respective IP address and SSH port number. Additionally, replace \u2018root\u2019 with the username of the system user with sudo privileges.<\/p>\n\n\n\n<p>You can check whether you have the proper Ubuntu version installed on your server with the following command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># lsb_release -a<\/pre>\n\n\n\n<p>You should get this output:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">No LSB modules are available.<br>Distributor ID: Ubuntu<br>Description: Ubuntu Noble Numbat<br>Release: 24.04<br>Codename: noble<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Step 2. Modify Firewall<\/h2>\n\n\n\n<p>This is the most important thing you need to do to change the SSH port on your Ubuntu server. Failing to do this will cost you a lot. You will be locked out of your system and unable to connect to it through SSH. Let&#8217;s first open the firewall for the port we are going to use.<\/p>\n\n\n\n<p>If you use UFW (Uncomplicated Firewall), you can run this command below to open the port.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ sudo ufw allow 2022\/tcp comment 'Allow SSH'<\/pre>\n\n\n\n<p>Or, if you are using iptables, you can execute this command instead.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ sudo iptables -I INPUT -p tcp --dport 2022 -j ACCEPT<\/pre>\n\n\n\n<p>Make sure to use -I option to insert the rule on top of the list, and not -A option as this will place it on the bottom.<\/p>\n\n\n\n<p>To save the new firewall rule, run this command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ sudo iptables-save &gt; \/etc\/iptables\/rules.v4<\/pre>\n\n\n\n<p>The command above will permanently save iptables firewall rules; the newly added rules will not be lost after you reboot your server.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Step 3. Change SSH Port<\/h2>\n\n\n\n<p>By default, SSH is listening on port 22. Your <a href=\"https:\/\/www.linuxcloudvps.com\/\" target=\"_blank\" rel=\"noreferrer noopener\">web hosting company<\/a> may change your SSH port already, but you can change it to your desired port number. Let&#8217;s change the SSH port now.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ sudo nano \/etc\/ssh\/sshd_config<\/pre>\n\n\n\n<p>In this editor, find this line:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">#Port 22<\/pre>\n\n\n\n<p>Uncomment it and replace 22 with 2022 or another number you want to be the new port.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">Port 2022<\/pre>\n\n\n\n<p>Save the file, then exit the editor.<\/p>\n\n\n\n<p>Please note if you already see this line<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">Port 22<\/pre>\n\n\n\n<p>Replace the number with the one you want to set as the new SSH port, then save the changes.<\/p>\n\n\n\n<p>We need to restart the SSH service every time we change the \/etc\/ssh\/sshd_config file.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ sudo systemctl restart sshd<\/pre>\n\n\n\n<p>Congratulations! You have successfully changed the SSH listening port on Ubuntu 24.04.<\/p>\n\n\n\n<p>If you liked this post on how to change SSH listening port on Ubuntu 24.04, please share it with your friends or leave a comment in the comments section.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Secure Shell or SSH is a network protocol that allows users to access servers remotely. This protocol also encrypts communication between servers to make it even more secure. Unfortunately, using standard Transmission Control Protocol (TCP) port 22 for SSH may be risky as it is vulnerable to various cyber attacks, especially brute-force attacks. Brute-force attacks &#8230; <a title=\"How to Change SSH Listening Port on Ubuntu 24.04\" class=\"read-more\" href=\"https:\/\/www.linuxcloudvps.com\/blog\/how-to-change-ssh-listening-port-on-ubuntu-24-04\/\" aria-label=\"More on How to Change SSH Listening Port on Ubuntu 24.04\">Read more<\/a><\/p>\n","protected":false},"author":2,"featured_media":2163,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[204,13,208],"tags":[301,27,121,302],"class_list":["post-2144","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-openssh","category-tutorials","category-ubuntu","tag-change-ssh-listening-port","tag-linux","tag-ssh","tag-ubuntu24-04"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Change SSH Listening Port on Ubuntu 24.04 | LinuxCloudVPS Blog<\/title>\n<meta name=\"description\" content=\"Learn how to change SSH listening port on Ubuntu 24.04 in three steps using our simple step-by-step guide.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.linuxcloudvps.com\/blog\/how-to-change-ssh-listening-port-on-ubuntu-24-04\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Change SSH Listening Port on Ubuntu 24.04 | LinuxCloudVPS Blog\" \/>\n<meta property=\"og:description\" content=\"Learn how to change SSH listening port on Ubuntu 24.04 in three steps using our simple step-by-step guide.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.linuxcloudvps.com\/blog\/how-to-change-ssh-listening-port-on-ubuntu-24-04\/\" \/>\n<meta property=\"og:site_name\" content=\"LinuxCloudVPS Blog\" \/>\n<meta property=\"article:publisher\" content=\"http:\/\/www.facebook.com\/LinuxCloudVPS\" \/>\n<meta property=\"article:published_time\" content=\"2024-05-30T17:30:00+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2024\/05\/how-to-change-ssh-listening-port-on-ubuntu24-04.webp\" \/>\n\t<meta property=\"og:image:width\" content=\"742\" \/>\n\t<meta property=\"og:image:height\" content=\"410\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/webp\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@LinuxCloudVPS\" \/>\n<meta name=\"twitter:site\" content=\"@LinuxCloudVPS\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/how-to-change-ssh-listening-port-on-ubuntu-24-04\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/how-to-change-ssh-listening-port-on-ubuntu-24-04\\\/\"},\"author\":{\"name\":\"admin\",\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/#\\\/schema\\\/person\\\/ed907227ee7d151c617e6d0fe74f531a\"},\"headline\":\"How to Change SSH Listening Port on Ubuntu 24.04\",\"datePublished\":\"2024-05-30T17:30:00+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/how-to-change-ssh-listening-port-on-ubuntu-24-04\\\/\"},\"wordCount\":490,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/how-to-change-ssh-listening-port-on-ubuntu-24-04\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/05\\\/how-to-change-ssh-listening-port-on-ubuntu24-04.webp\",\"keywords\":[\"change ssh listening port\",\"linux\",\"ssh\",\"ubuntu24.04\"],\"articleSection\":[\"OpenSSH\",\"Tutorials\",\"Ubuntu\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/how-to-change-ssh-listening-port-on-ubuntu-24-04\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/how-to-change-ssh-listening-port-on-ubuntu-24-04\\\/\",\"url\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/how-to-change-ssh-listening-port-on-ubuntu-24-04\\\/\",\"name\":\"How to Change SSH Listening Port on Ubuntu 24.04 | LinuxCloudVPS Blog\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/how-to-change-ssh-listening-port-on-ubuntu-24-04\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/how-to-change-ssh-listening-port-on-ubuntu-24-04\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/05\\\/how-to-change-ssh-listening-port-on-ubuntu24-04.webp\",\"datePublished\":\"2024-05-30T17:30:00+00:00\",\"description\":\"Learn how to change SSH listening port on Ubuntu 24.04 in three steps using our simple step-by-step guide.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/how-to-change-ssh-listening-port-on-ubuntu-24-04\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/how-to-change-ssh-listening-port-on-ubuntu-24-04\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/how-to-change-ssh-listening-port-on-ubuntu-24-04\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/05\\\/how-to-change-ssh-listening-port-on-ubuntu24-04.webp\",\"contentUrl\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/05\\\/how-to-change-ssh-listening-port-on-ubuntu24-04.webp\",\"width\":742,\"height\":410,\"caption\":\"How to Change SSH Listening Port on Ubuntu 24.04\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/how-to-change-ssh-listening-port-on-ubuntu-24-04\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Change SSH Listening Port on Ubuntu 24.04\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/\",\"name\":\"LinuxCloudVPS\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/#organization\",\"name\":\"LinuxCloudVPS\",\"url\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/08\\\/logo.png\",\"contentUrl\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/08\\\/logo.png\",\"width\":217,\"height\":25,\"caption\":\"LinuxCloudVPS\"},\"image\":{\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"http:\\\/\\\/www.facebook.com\\\/LinuxCloudVPS\",\"https:\\\/\\\/x.com\\\/LinuxCloudVPS\",\"http:\\\/\\\/www.linkedin.com\\\/company\\\/linuxcloudvps-com\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/#\\\/schema\\\/person\\\/ed907227ee7d151c617e6d0fe74f531a\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/?s=96&d=mm&r=g\",\"caption\":\"admin\"},\"sameAs\":[\"http:\\\/\\\/www.linuxcloudvps.com\\\/\"],\"url\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/author\\\/r0s3admin\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Change SSH Listening Port on Ubuntu 24.04 | LinuxCloudVPS Blog","description":"Learn how to change SSH listening port on Ubuntu 24.04 in three steps using our simple step-by-step guide.","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:\/\/www.linuxcloudvps.com\/blog\/how-to-change-ssh-listening-port-on-ubuntu-24-04\/","og_locale":"en_US","og_type":"article","og_title":"How to Change SSH Listening Port on Ubuntu 24.04 | LinuxCloudVPS Blog","og_description":"Learn how to change SSH listening port on Ubuntu 24.04 in three steps using our simple step-by-step guide.","og_url":"https:\/\/www.linuxcloudvps.com\/blog\/how-to-change-ssh-listening-port-on-ubuntu-24-04\/","og_site_name":"LinuxCloudVPS Blog","article_publisher":"http:\/\/www.facebook.com\/LinuxCloudVPS","article_published_time":"2024-05-30T17:30:00+00:00","og_image":[{"width":742,"height":410,"url":"https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2024\/05\/how-to-change-ssh-listening-port-on-ubuntu24-04.webp","type":"image\/webp"}],"author":"admin","twitter_card":"summary_large_image","twitter_creator":"@LinuxCloudVPS","twitter_site":"@LinuxCloudVPS","twitter_misc":{"Written by":"admin","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.linuxcloudvps.com\/blog\/how-to-change-ssh-listening-port-on-ubuntu-24-04\/#article","isPartOf":{"@id":"https:\/\/www.linuxcloudvps.com\/blog\/how-to-change-ssh-listening-port-on-ubuntu-24-04\/"},"author":{"name":"admin","@id":"https:\/\/www.linuxcloudvps.com\/blog\/#\/schema\/person\/ed907227ee7d151c617e6d0fe74f531a"},"headline":"How to Change SSH Listening Port on Ubuntu 24.04","datePublished":"2024-05-30T17:30:00+00:00","mainEntityOfPage":{"@id":"https:\/\/www.linuxcloudvps.com\/blog\/how-to-change-ssh-listening-port-on-ubuntu-24-04\/"},"wordCount":490,"commentCount":0,"publisher":{"@id":"https:\/\/www.linuxcloudvps.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.linuxcloudvps.com\/blog\/how-to-change-ssh-listening-port-on-ubuntu-24-04\/#primaryimage"},"thumbnailUrl":"https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2024\/05\/how-to-change-ssh-listening-port-on-ubuntu24-04.webp","keywords":["change ssh listening port","linux","ssh","ubuntu24.04"],"articleSection":["OpenSSH","Tutorials","Ubuntu"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.linuxcloudvps.com\/blog\/how-to-change-ssh-listening-port-on-ubuntu-24-04\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.linuxcloudvps.com\/blog\/how-to-change-ssh-listening-port-on-ubuntu-24-04\/","url":"https:\/\/www.linuxcloudvps.com\/blog\/how-to-change-ssh-listening-port-on-ubuntu-24-04\/","name":"How to Change SSH Listening Port on Ubuntu 24.04 | LinuxCloudVPS Blog","isPartOf":{"@id":"https:\/\/www.linuxcloudvps.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.linuxcloudvps.com\/blog\/how-to-change-ssh-listening-port-on-ubuntu-24-04\/#primaryimage"},"image":{"@id":"https:\/\/www.linuxcloudvps.com\/blog\/how-to-change-ssh-listening-port-on-ubuntu-24-04\/#primaryimage"},"thumbnailUrl":"https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2024\/05\/how-to-change-ssh-listening-port-on-ubuntu24-04.webp","datePublished":"2024-05-30T17:30:00+00:00","description":"Learn how to change SSH listening port on Ubuntu 24.04 in three steps using our simple step-by-step guide.","breadcrumb":{"@id":"https:\/\/www.linuxcloudvps.com\/blog\/how-to-change-ssh-listening-port-on-ubuntu-24-04\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.linuxcloudvps.com\/blog\/how-to-change-ssh-listening-port-on-ubuntu-24-04\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.linuxcloudvps.com\/blog\/how-to-change-ssh-listening-port-on-ubuntu-24-04\/#primaryimage","url":"https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2024\/05\/how-to-change-ssh-listening-port-on-ubuntu24-04.webp","contentUrl":"https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2024\/05\/how-to-change-ssh-listening-port-on-ubuntu24-04.webp","width":742,"height":410,"caption":"How to Change SSH Listening Port on Ubuntu 24.04"},{"@type":"BreadcrumbList","@id":"https:\/\/www.linuxcloudvps.com\/blog\/how-to-change-ssh-listening-port-on-ubuntu-24-04\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.linuxcloudvps.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Change SSH Listening Port on Ubuntu 24.04"}]},{"@type":"WebSite","@id":"https:\/\/www.linuxcloudvps.com\/blog\/#website","url":"https:\/\/www.linuxcloudvps.com\/blog\/","name":"LinuxCloudVPS","description":"","publisher":{"@id":"https:\/\/www.linuxcloudvps.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.linuxcloudvps.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.linuxcloudvps.com\/blog\/#organization","name":"LinuxCloudVPS","url":"https:\/\/www.linuxcloudvps.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.linuxcloudvps.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2023\/08\/logo.png","contentUrl":"https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2023\/08\/logo.png","width":217,"height":25,"caption":"LinuxCloudVPS"},"image":{"@id":"https:\/\/www.linuxcloudvps.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["http:\/\/www.facebook.com\/LinuxCloudVPS","https:\/\/x.com\/LinuxCloudVPS","http:\/\/www.linkedin.com\/company\/linuxcloudvps-com"]},{"@type":"Person","@id":"https:\/\/www.linuxcloudvps.com\/blog\/#\/schema\/person\/ed907227ee7d151c617e6d0fe74f531a","name":"admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g","caption":"admin"},"sameAs":["http:\/\/www.linuxcloudvps.com\/"],"url":"https:\/\/www.linuxcloudvps.com\/blog\/author\/r0s3admin\/"}]}},"_links":{"self":[{"href":"https:\/\/www.linuxcloudvps.com\/blog\/wp-json\/wp\/v2\/posts\/2144","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.linuxcloudvps.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxcloudvps.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxcloudvps.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxcloudvps.com\/blog\/wp-json\/wp\/v2\/comments?post=2144"}],"version-history":[{"count":3,"href":"https:\/\/www.linuxcloudvps.com\/blog\/wp-json\/wp\/v2\/posts\/2144\/revisions"}],"predecessor-version":[{"id":2149,"href":"https:\/\/www.linuxcloudvps.com\/blog\/wp-json\/wp\/v2\/posts\/2144\/revisions\/2149"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.linuxcloudvps.com\/blog\/wp-json\/wp\/v2\/media\/2163"}],"wp:attachment":[{"href":"https:\/\/www.linuxcloudvps.com\/blog\/wp-json\/wp\/v2\/media?parent=2144"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcloudvps.com\/blog\/wp-json\/wp\/v2\/categories?post=2144"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcloudvps.com\/blog\/wp-json\/wp\/v2\/tags?post=2144"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}