{"id":62,"date":"2026-01-27T15:02:04","date_gmt":"2026-01-27T15:02:04","guid":{"rendered":"https:\/\/farbyte.uk\/new-blog\/?p=62"},"modified":"2026-01-27T15:02:30","modified_gmt":"2026-01-27T15:02:30","slug":"ubuntu-enable-secure-ssh-server","status":"publish","type":"post","link":"https:\/\/farbyte.uk\/blog\/ubuntu-enable-secure-ssh-server\/","title":{"rendered":"Ubuntu &#8211; Enable &amp; Secure SSH Server"},"content":{"rendered":"\n<p>So, you&#8217;ve got a new cloud&nbsp;<a href=\"https:\/\/farbyte.uk\/hosting\/vps\/ubuntu\">Ubuntu&nbsp;VPS<\/a>&nbsp;&amp; need to access it remotely?<\/p>\n\n\n\n<p>The good news is that at Farbyte, SSH is enabled on our template-based\u00a0<a href=\"https:\/\/farbyte.uk\/hosting\/vps\/kvm\">cloud VPS<\/a>\u00a0by default!<\/p>\n\n\n\n<p>If you install Ubuntu from ISO, instead of using a Ubuntu template&nbsp;on our Cloud KVM service, you can choose to also add an SSH server during the OS installation process.<\/p>\n\n\n\n<p>This tutorial will show you how to enable OpenSSH on any Ubuntu 18.04 &amp; 20.04 installation.<\/p>\n\n\n\n<p>Both of these are Long Term Support (LTS) versions of Ubuntu &amp; are thus great for running as servers.<\/p>\n\n\n\n<p>All the administrative commands in this article assume you&#8217;re logged into the Ubuntu server as a user with&nbsp;<strong>sudo<\/strong>&nbsp;access.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Why Do I Need SSH On My Ubuntu Server?<\/h2>\n\n\n\n<p>If you&#8217;re not familiar with SSH, it stands for Secure Shell.<\/p>\n\n\n\n<p>It allows you to make a remote connection to your Ubuntu server, or any other Linux server for that matter, via a very secure &amp;&nbsp;encrypted connection.<\/p>\n\n\n\n<p>Most Linux-based servers, like Ubuntu Server, don&#8217;t usually run a graphical user interface (GUI) like Windows.<\/p>\n\n\n\n<p>For this reason, all administration is done via the command line, which is&nbsp;a bit like Microsoft DOS but much more powerful.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Check If SSH Is Already Running<\/h2>\n\n\n\n<p>It&#8217;s not unusual to already have SSH running on a Linux server, as it&#8217;s by far the most popular way of connecting to a remote server.<\/p>\n\n\n\n<p>You can quickly check if your Ubuntu server is already running SSH by running the following command in a console or terminal window:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ps aux | grep ssh<\/code><\/pre>\n\n\n\n<p>If SSH is already running on your server, you&#8217;ll usually see a few lines of output similar with one of them similar to:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>root       744  0.0  0.5  69956  5456 ?        Ss   Mar06   0:00 \/usr\/sbin\/sshd -D<\/code><\/pre>\n\n\n\n<p>The above line shows that the SSH daemon (server service) is running on the server already from \/usr\/sbin\/sshd.<\/p>\n\n\n\n<p>Another way to quickly check if SSH is already running is to run the following command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>netstat -napt | grep ssh<\/code><\/pre>\n\n\n\n<p>Again, the above command may give you multiple lines of output, but the important line will look similar to:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>tcp        0      0 0.0.0.0:22           0.0.0.0:*               LISTEN      744\/sshd<\/code><\/pre>\n\n\n\n<p>The above line tells us that the SSH daemon is running in a listening state on port 22.<\/p>\n\n\n\n<p>Port 22 is the standard SSH listening port &amp; for security reasons should be changed for any Ubuntu server that is connected to the internet.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Install SSH Server<\/h2>\n\n\n\n<p>So, if you check for SSH using the above command &amp; find that it&#8217;s not running the next step is to either login to the Ubuntu console, or open a terminal if you&#8217;re using a windows environment on your Ubuntu server.<\/p>\n\n\n\n<p><a href=\"https:\/\/www.openssh.com\/\" rel=\"noreferrer noopener\" target=\"_blank\">OpenSSH<\/a>&nbsp;is by far the most popular SSH server available for Linux &amp; is completely free&nbsp;for personal or commercial use.<\/p>\n\n\n\n<p>You can install it with the following command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt install -y openssh-server<\/code><\/pre>\n\n\n\n<p>This will install the SSH service on your Ubuntu server.<\/p>\n\n\n\n<p>To make sure the SSH service is configured to start during system boot run the following command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo systemctl enable sshd.service<\/code><\/pre>\n\n\n\n<p>To make sure the SSH service is running now, use the following command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo systemctl start sshd.service<\/code><\/pre>\n\n\n\n<p>To check the current status of the SSH service run:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo systemctl start sshd.service<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Basic Ubuntu SSH Configuration<\/h2>\n\n\n\n<p>We find&nbsp;<strong>nano<\/strong>&nbsp;to be the easiest editor for working with Linux config files in the console.<\/p>\n\n\n\n<p>To make sure you&#8217;ve got nano installed, run the following command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt install -y nano<\/code><\/pre>\n\n\n\n<p>All the SSH service configurations can be changed by editing the&nbsp;<strong>\/etc\/ssh\/sshd_config<\/strong>&nbsp;file.<\/p>\n\n\n\n<p>You can open this for editing with nano as such:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo nano \/etc\/ssh\/sshd_config<\/code><\/pre>\n\n\n\n<p>Some common settings that Ubuntu administrators usually change are:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Port &#8211; the port number the SSH service (daemon) listens on<\/li>\n\n\n\n<li>PermitRootLogin &#8211; whether to allow root to login via SSH<\/li>\n\n\n\n<li>PasswordAuthentication &#8211; whether to allow password-based authentication<\/li>\n\n\n\n<li>UseDNS &#8211; whether to perform a reverse DNS lookup on the connecting IP<\/li>\n<\/ul>\n\n\n\n<p>There are many more server-side configuration options for OpenSSH.<\/p>\n\n\n\n<p>To see a detailed explanation of each setting you can run the following command in your Ubuntu console:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>man sshd_config<\/code><\/pre>\n\n\n\n<p>Alternatively, you can read the&nbsp;<a href=\"https:\/\/man.openbsd.org\/sshd_config\" rel=\"noreferrer noopener\" target=\"_blank\">sshd_config manual online<\/a>.<\/p>\n\n\n\n<p>Once you&#8217;ve made your changes to the SSH configuration file, you&#8217;ll need to restart the service:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo systemctl restart sshd.service<\/code><\/pre>\n\n\n\n<p>If you&#8217;ve got Uncomplicated Firewall (UFW) running on your Ubuntu server, you&#8217;ll need to open the SSH port in the firewall.<\/p>\n\n\n\n<p>This can be done by running:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo ufw allow 22<\/code><\/pre>\n\n\n\n<p>If you changed the default port number in your SSH config setting, you&#8217;ll need to replace 22 with that port number.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">SSH Security Options<\/h2>\n\n\n\n<p>SSH is a very useful &amp; powerful tool.<\/p>\n\n\n\n<p>It allows you to remotely connect to your server from anywhere in the world.<\/p>\n\n\n\n<p>Unfortunately, because of this, it&#8217;s&nbsp;also a primary target for hackers.<\/p>\n\n\n\n<p>Here are 4 tips that will help secure your Ubuntu SSH service:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Change to a non-default port number.<\/li>\n\n\n\n<li>Require certificate authentication.<\/li>\n\n\n\n<li>Limit access via a firewall.<\/li>\n\n\n\n<li>VPN SSH access.<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\">1 &#8211; Change To A Non-Default Port Number<\/h3>\n\n\n\n<p>The first thing we recommend when enabling SSH is to change the listening port from the default 22 to something else, much higher up the port range.<\/p>\n\n\n\n<p>Choose any port number between 1024 &amp;&nbsp;65535 &amp; you should be OK.<\/p>\n\n\n\n<p>This is security by obscurity &amp; thus is only the first step in securing your SSH service.<\/p>\n\n\n\n<p>It helps to keep your server off the radar of&nbsp;1000&#8217;s of bots running on the internet checking port 22 every day!<\/p>\n\n\n\n<p>This can be done by editing the SSH config file, which is normally located at \/etc\/ssh\/sshd_config, with the following command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo nano \/etc\/ssh\/sshd_config<\/code><\/pre>\n\n\n\n<p>Once the file is open find the&nbsp;<strong>Port<\/strong>&nbsp;setting.<\/p>\n\n\n\n<p>It will often be commented out with the # sign at the beginning of the line.<\/p>\n\n\n\n<p>If so remove the comment &amp; change the port to something you have selected.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><em>#Port 22<\/em><\/code><\/pre>\n\n\n\n<p>Exit nano (Ctrl+x) saving your changes &amp; then restart the SSH service:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo systemctl restart sshd<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">2 &#8211; Require Certificate Authentication<\/h3>\n\n\n\n<p>Now we&#8217;re really getting into the area of making your Ubuntu server SSH secure.<\/p>\n\n\n\n<p>Configuring your SSH service to require SSH certificates from users that are logging in is an excellent way of improving the security of SSH.<\/p>\n\n\n\n<p>It works by asking the connecting user for a certificate prior to allowing them to enter a password.<\/p>\n\n\n\n<p>If the user doesn&#8217;t have the correct certificate for the user account they are trying to connect with, then they never get the opportunity to even enter a password.<\/p>\n\n\n\n<p>Setting up the certificate &amp; configuring SSH can seem overwhelming at first, but it&#8217;s well worth the effort.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">3 &#8211; Limit Access Via A Firewall<\/h3>\n\n\n\n<p>Limiting&nbsp;access to the SSH service using a firewall can be simple, or quite complex depending on the firewall you&#8217;re using.<\/p>\n\n\n\n<p>Limiting access will be dependant on blocking all access to your chosen SSH port based on the IP address of the connecting device.<\/p>\n\n\n\n<p>For example, block all access except for IP address x.x.x.x.<\/p>\n\n\n\n<p>This can be difficult if the remote users IP address changes frequently, as is often the case for residential &amp; mobile connections.<\/p>\n\n\n\n<p>Some firewalls, like pfSense, OPNsense, etc. allow you to specify hostnames in firewall rules, which they automatically &amp;&nbsp;periodically update with the corresponding IP address.<\/p>\n\n\n\n<p>This does, however, mean that you&#8217;ll need to also set up Dynamic DNS (DDNS) for the device or user&nbsp;hostname &amp; ensure it is regularly updated (e.g. every 5 minutes or so).<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">4 &#8211; VPN SSH Access<\/h3>\n\n\n\n<p>This is probably the most secure method for setting up SSH on a Ubuntu server.<\/p>\n\n\n\n<p>The idea is to not expose the SSH service to the internet, but instead only expose it to traffic that is connected to your virtual private network (VPN) network.<\/p>\n\n\n\n<p>Ideally, you&#8217;d also implement some or all of the previously mentioned security tips.<\/p>\n\n\n\n<p>For&nbsp;public-facing servers (e.g. web, email, etc.) using a VPN connection is the best solution for securing SSH access to your Ubuntu server.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>Installing an SSH service on your Ubuntu VPS is a worthwhile &amp; straightforward task.<\/p>\n\n\n\n<p>In many cases, Ubuntu will come installed with an SSH service running by default.<\/p>\n\n\n\n<p>SSH allows you to remotely administer your server from anywhere in the world.<\/p>\n\n\n\n<p>However, with this improved&nbsp;convenience comes increased security threats<\/p>\n\n\n\n<p>Security needs to be considered &amp; measures put in place to restrict access to the SSH service (daemon) running on your Ubuntu server.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>So, you&#8217;ve got a new cloud&nbsp;Ubuntu&nbsp;VPS&nbsp;&amp; need to access it remotely? The good news is that at Farbyte, SSH is enabled on our template-based\u00a0cloud VPS\u00a0by default! If you install Ubuntu from ISO, instead of using a Ubuntu template&nbsp;on our Cloud KVM service, you can choose to also add an SSH server during the OS installation [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":63,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-62","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cloud"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Ubuntu - Enable &amp; Secure SSH Server | Farbyte Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/farbyte.uk\/blog\/ubuntu-enable-secure-ssh-server\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Ubuntu - Enable &amp; Secure SSH Server | Farbyte Blog\" \/>\n<meta property=\"og:description\" content=\"So, you&#8217;ve got a new cloud&nbsp;Ubuntu&nbsp;VPS&nbsp;&amp; need to access it remotely? The good news is that at Farbyte, SSH is enabled on our template-based\u00a0cloud VPS\u00a0by default! If you install Ubuntu from ISO, instead of using a Ubuntu template&nbsp;on our Cloud KVM service, you can choose to also add an SSH server during the OS installation [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/farbyte.uk\/blog\/ubuntu-enable-secure-ssh-server\/\" \/>\n<meta property=\"og:site_name\" content=\"Farbyte Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/Farbyte.UKWebHosting\" \/>\n<meta property=\"article:published_time\" content=\"2026-01-27T15:02:04+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-01-27T15:02:30+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/farbyte.uk\/blog\/wp-content\/uploads\/2026\/01\/ssh-session.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1338\" \/>\n\t<meta property=\"og:image:height\" content=\"906\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Farbyte\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@farbyte\" \/>\n<meta name=\"twitter:site\" content=\"@farbyte\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Farbyte\" \/>\n\t<meta name=\"twitter:label2\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/farbyte.uk\/blog\/ubuntu-enable-secure-ssh-server\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/farbyte.uk\/blog\/ubuntu-enable-secure-ssh-server\/\"},\"author\":{\"name\":\"Farbyte\",\"@id\":\"https:\/\/farbyte.uk\/blog\/#\/schema\/person\/7c5ae8817527f477697a4861c0c9615a\"},\"headline\":\"Ubuntu &#8211; Enable &amp; Secure SSH Server\",\"datePublished\":\"2026-01-27T15:02:04+00:00\",\"dateModified\":\"2026-01-27T15:02:30+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/farbyte.uk\/blog\/ubuntu-enable-secure-ssh-server\/\"},\"wordCount\":1386,\"publisher\":{\"@id\":\"https:\/\/farbyte.uk\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/farbyte.uk\/blog\/ubuntu-enable-secure-ssh-server\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/farbyte.uk\/blog\/wp-content\/uploads\/2026\/01\/ssh-session.jpg\",\"articleSection\":[\"Cloud\"],\"inLanguage\":\"en-GB\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/farbyte.uk\/blog\/ubuntu-enable-secure-ssh-server\/\",\"url\":\"https:\/\/farbyte.uk\/blog\/ubuntu-enable-secure-ssh-server\/\",\"name\":\"Ubuntu - Enable &amp; Secure SSH Server | Farbyte Blog\",\"isPartOf\":{\"@id\":\"https:\/\/farbyte.uk\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/farbyte.uk\/blog\/ubuntu-enable-secure-ssh-server\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/farbyte.uk\/blog\/ubuntu-enable-secure-ssh-server\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/farbyte.uk\/blog\/wp-content\/uploads\/2026\/01\/ssh-session.jpg\",\"datePublished\":\"2026-01-27T15:02:04+00:00\",\"dateModified\":\"2026-01-27T15:02:30+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/farbyte.uk\/blog\/ubuntu-enable-secure-ssh-server\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/farbyte.uk\/blog\/ubuntu-enable-secure-ssh-server\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/farbyte.uk\/blog\/ubuntu-enable-secure-ssh-server\/#primaryimage\",\"url\":\"https:\/\/farbyte.uk\/blog\/wp-content\/uploads\/2026\/01\/ssh-session.jpg\",\"contentUrl\":\"https:\/\/farbyte.uk\/blog\/wp-content\/uploads\/2026\/01\/ssh-session.jpg\",\"width\":1338,\"height\":906,\"caption\":\"SSH session\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/farbyte.uk\/blog\/ubuntu-enable-secure-ssh-server\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Blog\",\"item\":\"https:\/\/farbyte.uk\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Ubuntu &#8211; Enable &amp; Secure SSH Server\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/farbyte.uk\/blog\/#website\",\"url\":\"https:\/\/farbyte.uk\/blog\/\",\"name\":\"Farbyte Blog\",\"description\":\"hosting since 2006\",\"publisher\":{\"@id\":\"https:\/\/farbyte.uk\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/farbyte.uk\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-GB\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/farbyte.uk\/blog\/#organization\",\"name\":\"Farbyte\",\"url\":\"https:\/\/farbyte.uk\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/farbyte.uk\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/farbyte.uk\/blog\/wp-content\/uploads\/2026\/01\/farbyte-logo-outline-small.png\",\"contentUrl\":\"https:\/\/farbyte.uk\/blog\/wp-content\/uploads\/2026\/01\/farbyte-logo-outline-small.png\",\"width\":261,\"height\":38,\"caption\":\"Farbyte\"},\"image\":{\"@id\":\"https:\/\/farbyte.uk\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/Farbyte.UKWebHosting\",\"https:\/\/x.com\/farbyte\",\"https:\/\/www.youtube.com\/channel\/UCEUdkcwAtOwEhIN3aCe-tBQ\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/farbyte.uk\/blog\/#\/schema\/person\/7c5ae8817527f477697a4861c0c9615a\",\"name\":\"Farbyte\",\"sameAs\":[\"https:\/\/farbyte.uk\/blog\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Ubuntu - Enable &amp; Secure SSH Server | Farbyte Blog","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:\/\/farbyte.uk\/blog\/ubuntu-enable-secure-ssh-server\/","og_locale":"en_GB","og_type":"article","og_title":"Ubuntu - Enable &amp; Secure SSH Server | Farbyte Blog","og_description":"So, you&#8217;ve got a new cloud&nbsp;Ubuntu&nbsp;VPS&nbsp;&amp; need to access it remotely? The good news is that at Farbyte, SSH is enabled on our template-based\u00a0cloud VPS\u00a0by default! If you install Ubuntu from ISO, instead of using a Ubuntu template&nbsp;on our Cloud KVM service, you can choose to also add an SSH server during the OS installation [&hellip;]","og_url":"https:\/\/farbyte.uk\/blog\/ubuntu-enable-secure-ssh-server\/","og_site_name":"Farbyte Blog","article_publisher":"https:\/\/www.facebook.com\/Farbyte.UKWebHosting","article_published_time":"2026-01-27T15:02:04+00:00","article_modified_time":"2026-01-27T15:02:30+00:00","og_image":[{"width":1338,"height":906,"url":"https:\/\/farbyte.uk\/blog\/wp-content\/uploads\/2026\/01\/ssh-session.jpg","type":"image\/jpeg"}],"author":"Farbyte","twitter_card":"summary_large_image","twitter_creator":"@farbyte","twitter_site":"@farbyte","twitter_misc":{"Written by":"Farbyte","Estimated reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/farbyte.uk\/blog\/ubuntu-enable-secure-ssh-server\/#article","isPartOf":{"@id":"https:\/\/farbyte.uk\/blog\/ubuntu-enable-secure-ssh-server\/"},"author":{"name":"Farbyte","@id":"https:\/\/farbyte.uk\/blog\/#\/schema\/person\/7c5ae8817527f477697a4861c0c9615a"},"headline":"Ubuntu &#8211; Enable &amp; Secure SSH Server","datePublished":"2026-01-27T15:02:04+00:00","dateModified":"2026-01-27T15:02:30+00:00","mainEntityOfPage":{"@id":"https:\/\/farbyte.uk\/blog\/ubuntu-enable-secure-ssh-server\/"},"wordCount":1386,"publisher":{"@id":"https:\/\/farbyte.uk\/blog\/#organization"},"image":{"@id":"https:\/\/farbyte.uk\/blog\/ubuntu-enable-secure-ssh-server\/#primaryimage"},"thumbnailUrl":"https:\/\/farbyte.uk\/blog\/wp-content\/uploads\/2026\/01\/ssh-session.jpg","articleSection":["Cloud"],"inLanguage":"en-GB"},{"@type":"WebPage","@id":"https:\/\/farbyte.uk\/blog\/ubuntu-enable-secure-ssh-server\/","url":"https:\/\/farbyte.uk\/blog\/ubuntu-enable-secure-ssh-server\/","name":"Ubuntu - Enable &amp; Secure SSH Server | Farbyte Blog","isPartOf":{"@id":"https:\/\/farbyte.uk\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/farbyte.uk\/blog\/ubuntu-enable-secure-ssh-server\/#primaryimage"},"image":{"@id":"https:\/\/farbyte.uk\/blog\/ubuntu-enable-secure-ssh-server\/#primaryimage"},"thumbnailUrl":"https:\/\/farbyte.uk\/blog\/wp-content\/uploads\/2026\/01\/ssh-session.jpg","datePublished":"2026-01-27T15:02:04+00:00","dateModified":"2026-01-27T15:02:30+00:00","breadcrumb":{"@id":"https:\/\/farbyte.uk\/blog\/ubuntu-enable-secure-ssh-server\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/farbyte.uk\/blog\/ubuntu-enable-secure-ssh-server\/"]}]},{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/farbyte.uk\/blog\/ubuntu-enable-secure-ssh-server\/#primaryimage","url":"https:\/\/farbyte.uk\/blog\/wp-content\/uploads\/2026\/01\/ssh-session.jpg","contentUrl":"https:\/\/farbyte.uk\/blog\/wp-content\/uploads\/2026\/01\/ssh-session.jpg","width":1338,"height":906,"caption":"SSH session"},{"@type":"BreadcrumbList","@id":"https:\/\/farbyte.uk\/blog\/ubuntu-enable-secure-ssh-server\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog","item":"https:\/\/farbyte.uk\/blog\/"},{"@type":"ListItem","position":2,"name":"Ubuntu &#8211; Enable &amp; Secure SSH Server"}]},{"@type":"WebSite","@id":"https:\/\/farbyte.uk\/blog\/#website","url":"https:\/\/farbyte.uk\/blog\/","name":"Farbyte Blog","description":"hosting since 2006","publisher":{"@id":"https:\/\/farbyte.uk\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/farbyte.uk\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"},{"@type":"Organization","@id":"https:\/\/farbyte.uk\/blog\/#organization","name":"Farbyte","url":"https:\/\/farbyte.uk\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/farbyte.uk\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/farbyte.uk\/blog\/wp-content\/uploads\/2026\/01\/farbyte-logo-outline-small.png","contentUrl":"https:\/\/farbyte.uk\/blog\/wp-content\/uploads\/2026\/01\/farbyte-logo-outline-small.png","width":261,"height":38,"caption":"Farbyte"},"image":{"@id":"https:\/\/farbyte.uk\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/Farbyte.UKWebHosting","https:\/\/x.com\/farbyte","https:\/\/www.youtube.com\/channel\/UCEUdkcwAtOwEhIN3aCe-tBQ"]},{"@type":"Person","@id":"https:\/\/farbyte.uk\/blog\/#\/schema\/person\/7c5ae8817527f477697a4861c0c9615a","name":"Farbyte","sameAs":["https:\/\/farbyte.uk\/blog"]}]}},"_links":{"self":[{"href":"https:\/\/farbyte.uk\/blog\/wp-json\/wp\/v2\/posts\/62","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/farbyte.uk\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/farbyte.uk\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/farbyte.uk\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/farbyte.uk\/blog\/wp-json\/wp\/v2\/comments?post=62"}],"version-history":[{"count":2,"href":"https:\/\/farbyte.uk\/blog\/wp-json\/wp\/v2\/posts\/62\/revisions"}],"predecessor-version":[{"id":65,"href":"https:\/\/farbyte.uk\/blog\/wp-json\/wp\/v2\/posts\/62\/revisions\/65"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/farbyte.uk\/blog\/wp-json\/wp\/v2\/media\/63"}],"wp:attachment":[{"href":"https:\/\/farbyte.uk\/blog\/wp-json\/wp\/v2\/media?parent=62"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/farbyte.uk\/blog\/wp-json\/wp\/v2\/categories?post=62"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/farbyte.uk\/blog\/wp-json\/wp\/v2\/tags?post=62"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}