{"id":18017,"date":"2026-09-13T07:11:56","date_gmt":"2026-09-13T07:11:56","guid":{"rendered":"https:\/\/greenwebpage.com\/community\/?p=18017"},"modified":"2026-09-13T07:11:59","modified_gmt":"2026-09-13T07:11:59","slug":"hardening-and-securing-ubuntu-26-04-lts-server","status":"publish","type":"post","link":"https:\/\/greenwebpage.com\/community\/hardening-and-securing-ubuntu-26-04-lts-server\/","title":{"rendered":"Hardening and Securing Ubuntu 26.04 LTS Server"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Are you new to the recently launched <a href=\"https:\/\/greenwebpage.com\/community\/what-is-ubuntu-understanding-linux-distribution\/\">Ubuntu 26.04 LTS<\/a>, also known as Resolute Raccoon? It was released on April 23, 2026, and it will restart the 5-year clock for standard maintenance and security updates. Although every Linux distribution comes with default security, it&#8217;s never enough; it always requires more. We can make it more secure for better performance and safety.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\n  Similarly, Ubuntu 26.04 comes with many default secure settings, but it\u2019s not hardened enough; it doesn\u2019t have firewall rules or intrusion monitoring. \n<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\n  This article takes you through some important steps to harden and secure your Ubuntu 26.04 LTS server. \n<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><a id=\"post-18017-_8zf8du9npct9\"><\/a><strong>What is Server Hardening?<\/strong><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\n  Server hardening is the process of improving a system&#8217;s security by cutting its attack surface and restricting opportunities for unauthorized access. Hardening the server involves adding, removing, or modifying system settings or components based on the user&#8217;s requirements. We\u2019ll be applying various security measures for hardening and securing our Ubuntu LTS 26.04 server.\n<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><a id=\"post-18017-_bsknzy3unsjv\"><\/a><strong>System Updates and Security Updates<\/strong><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\n  First, we\u2019ll enable automatic updates and upgrades and remove unwanted system packages.\n<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><a id=\"post-18017-_btq5rzpaufpr\"><\/a><strong>Update and Upgrade Ubuntu<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\n  The first and most essential step for hardening is to update and upgrade the Ubuntu server:\n<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th><p>\n  $ sudo apt update &amp;&amp; sudo apt upgrade -y\n<\/p><\/th><\/tr><\/thead><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1019\" height=\"169\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/09\/word-image-18017-1.png\" alt=\"updating and upgrading the packages\" class=\"wp-image-18018\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/09\/word-image-18017-1.png 1019w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/09\/word-image-18017-1-300x50.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/09\/word-image-18017-1-768x127.png 768w\" sizes=\"(max-width: 1019px) 100vw, 1019px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\n  Ubuntu is now updated and upgraded and ready to use for further cleaning.\n<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><a id=\"post-18017-_qoo5oexl6255\"><\/a><strong>Clean the Unnecessary Packages:<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\n  Now, run the autoremove and autoclean commands to remove unnecessary\/unused packages and remove obsolete package files from the cache:\n<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th><p><br>  $ sudo apt autoremove -y  <br>  $ sudo apt autoclean<br><\/p><\/th><\/tr><\/thead><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\"><strong><figure><img decoding=\"async\" width=\"1107\" height=\"71\" class=\"wp-image-18019\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/09\/word-image-18017-2.png\" style=\"\" alt=\"cleaning unnecessary packages\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/09\/word-image-18017-2.png 1107w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/09\/word-image-18017-2-300x19.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/09\/word-image-18017-2-1024x66.png 1024w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/09\/word-image-18017-2-768x49.png 768w\" sizes=\"(max-width: 1107px) 100vw, 1107px\" \/><\/figure><\/strong><\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">\n  All the unnecessary packages are removed.\n<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><a id=\"post-18017-_dd0hdo8xe2xm\"><\/a><strong>Configure Automatic Security Updates<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\n  Next, we\u2019ll upgrade and install automatic security updates:\n<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th><p><br>  $ sudo apt install -y unattended-upgrades  <br>  $ sudo dpkg-reconfigure -plow unattended-upgrades<br><\/p><\/th><\/tr><\/thead><\/table><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>sudo apt install -y unattended-upgrades \u2192<\/strong> Installs the package that automatically applies security updates.<br>  <\/li>\n\n\n\n<li><strong>sudo dpkg-reconfigure -plow unattended-upgrades \u2192<\/strong> Configures and enables automatic updates.<br>  <\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" width=\"1136\" height=\"185\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/09\/word-image-18017-3.png\" alt=\"configuring automatic security updates\" class=\"wp-image-18020\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/09\/word-image-18017-3.png 1136w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/09\/word-image-18017-3-300x49.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/09\/word-image-18017-3-1024x167.png 1024w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/09\/word-image-18017-3-768x125.png 768w\" sizes=\"(max-width: 1136px) 100vw, 1136px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\n  Press yes to continue:\n<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1093\" height=\"399\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/09\/word-image-18017-4.png\" alt=\"allow to automatically download and install stable updates\" class=\"wp-image-18021\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/09\/word-image-18017-4.png 1093w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/09\/word-image-18017-4-300x110.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/09\/word-image-18017-4-1024x374.png 1024w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/09\/word-image-18017-4-768x280.png 768w\" sizes=\"(max-width: 1093px) 100vw, 1093px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><a id=\"post-18017-_5m4kb4omc4of\"><\/a><strong>User and Sudo Security<\/strong><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\n  Secondly, we\u2019ll check if we have a sudo user or a normal user because we need proper user management and admin permissions for hardening and securing the Ubuntu 26.04 LTS server.\n<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\n  To check your user privilege level and verify it, run the following whoami and groups commands:\n<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th><p><br>  $ Whoami  $ groups<br><\/p><\/th><\/tr><\/thead><\/table><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>whoami \u2192 <\/strong>It shows the current user.<br>  <\/li>\n\n\n\n<li><strong>groups \u2192 <\/strong>It shows user groups.<br>  <\/li>\n\n\n\n<li><strong>sudo -v \u2192 <\/strong>It verifies sudo access.<br>  <\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1125\" height=\"181\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/09\/word-image-18017-5.png\" alt=\"checking currently logged in user\" class=\"wp-image-18022\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/09\/word-image-18017-5.png 1125w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/09\/word-image-18017-5-300x48.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/09\/word-image-18017-5-1024x165.png 1024w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/09\/word-image-18017-5-768x124.png 768w\" sizes=\"(max-width: 1125px) 100vw, 1125px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\n  A sudo user gives administrative privileges without demanding direct root login, reducing excessive exposure of the root account. \n<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\n  In our case, we have the user named &#8216;muser,&#8217; which already belongs to the sudo group, so there\u2019s no need to create a new account or add it to the sudo group. \n<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\n  You can add your existing account to sudo by running the following commands:\n<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th><p><br>  $ id username  <br>  $ sudo usermod -aG sudo username<br>  $ groups username<br><\/p><\/th><\/tr><\/thead><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\n  Or, you can also create a new one and then add it to the sudo group:\n<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th><p><br>  $ sudo adduser username<br>  $ sudo usermod -aG sudo username<br><\/p><\/th><\/tr><\/thead><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><a id=\"post-18017-_5cf284sez9aj\"><\/a><strong>SSH Hardening<\/strong><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\n  Now, we\u2019ll move forward to our next step of hardening our server. SSH hardening is a method of securing SSH to prevent unwanted remote access from unauthorized users. Moreover, it reduces the risk of attacks such as brute force, MITM, and DOS.\n<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\n  Let\u2019s begin the process of SSH hardening step-by-step:\n<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><a id=\"post-18017-_dbb2wpyau0c8\"><\/a><strong>Step 1: Create SSH Hardening Configuration File<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\n  Firstly, we\u2019ll create a new separate file for SSH settings. By running the command below, the nano file editor will open:\n<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th><p>\n  $ sudo nano \/etc\/ssh\/sshd_config.d\/99-hardening.conf\n<\/p><\/th><\/tr><\/thead><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\n  Write down the following lines in the file:\n<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th><p><br>  PermitRootLogin no<br>  PasswordAuthentication no<br>  KbdInteractiveAuthentication no  <br>  PubkeyAuthentication yes  <br>  MaxAuthTries 3<br>  X11Forwarding no<br><\/p><\/th><\/tr><\/thead><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\n  Now, save the file and close it:\n<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1119\" height=\"282\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/09\/word-image-18017-6.png\" alt=\"ssh configuration file\" class=\"wp-image-18023\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/09\/word-image-18017-6.png 1119w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/09\/word-image-18017-6-300x76.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/09\/word-image-18017-6-1024x258.png 1024w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/09\/word-image-18017-6-768x194.png 768w\" sizes=\"(max-width: 1119px) 100vw, 1119px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><a id=\"post-18017-_wyitm2ush4x5\"><\/a><strong>Step 2: Test SSH Configuration<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\n  Now, test if the configuration was right by the following sshd command:\n<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th><p>\n  $ sudo sshd -t\n<\/p><\/th><\/tr><\/thead><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\n  If the command returns no output, it means there was no error in the file:\n<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1119\" height=\"110\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/09\/word-image-18017-7.png\" alt=\"testing ssh configuration\" class=\"wp-image-18024\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/09\/word-image-18017-7.png 1119w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/09\/word-image-18017-7-300x29.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/09\/word-image-18017-7-1024x101.png 1024w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/09\/word-image-18017-7-768x75.png 768w\" sizes=\"(max-width: 1119px) 100vw, 1119px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><a id=\"post-18017-_o0rqnwjntrb3\"><\/a><strong>Step 3: Apply the Changes<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\n  Next, apply the changes by running the reload command:\n<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th><p>\n  $ sudo systemctl reload ssh\n<\/p><\/th><\/tr><\/thead><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><a id=\"post-18017-_lgti95w5fwy4\"><\/a><strong>Step 4: Verify SSH Settings<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\n  Lastly, check if the configuration was successful:\n<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th><p>\n  $ sudo sshd -T | grep -E       &#8216;permitrootlogin|passwordauthentication|kbdinteractiveauthentication|pubkeyauthentication|maxauthtries|x11forwarding&#8217;\n<\/p><\/th><\/tr><\/thead><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\n  The output below shows the changed settings:\n<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1151\" height=\"249\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/09\/word-image-18017-8.png\" alt=\"verifying ssh settings\" class=\"wp-image-18025\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/09\/word-image-18017-8.png 1151w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/09\/word-image-18017-8-300x65.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/09\/word-image-18017-8-1024x222.png 1024w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/09\/word-image-18017-8-768x166.png 768w\" sizes=\"(max-width: 1151px) 100vw, 1151px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><a id=\"post-18017-_9p15pfbvbr9h\"><\/a><strong>Firewall Configuration with UFW<\/strong><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">In this section, we\u2019ll <a href=\"https:\/\/greenwebpage.com\/community\/how-to-install-ufw-on-ubuntu-22-04\/\">configure the firewall with UFW (Uncomplicated Firewall)<\/a>. It&#8217;s a firewall tool in Ubuntu that controls incoming and outgoing network traffic.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\n  It actively checks live traffic and filters out unwanted or anonymous traffic, allowing only what the server actually needs.\n<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><a id=\"post-18017-_w7y1p166htdn\"><\/a><strong>Step 1: Set Default Firewall Rules<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\n  Firstly, we\u2019ll block incoming traffic, allow outgoing traffic, and we\u2019ll also enable SSH connections: \n<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th><p><br>  $ sudo ufw default deny incoming<br>  $ sudo ufw default allow outgoing <br>  $ sudo ufw allow OpenSSH<br><\/p><\/th><\/tr><\/thead><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><a id=\"post-18017-_ownzrm8ebld4\"><\/a><strong>Step 2: Enable UFW and Verify Firewall Status<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\n  Moving forward, we\u2019ll enable UFW, and after that we\u2019ll check its status:\n<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th><p><br>  $ sudo ufw enable  <br>  $ sudo ufw status verbose<br><\/p><\/th><\/tr><\/thead><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><strong><figure><img loading=\"lazy\" decoding=\"async\" width=\"1136\" height=\"405\" class=\"wp-image-18026\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/09\/word-image-18017-9.png\" style=\"\" alt=\"enable ufw\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/09\/word-image-18017-9.png 1136w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/09\/word-image-18017-9-300x107.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/09\/word-image-18017-9-1024x365.png 1024w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/09\/word-image-18017-9-768x274.png 768w\" sizes=\"(max-width: 1136px) 100vw, 1136px\" \/><\/figure><\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\n  Our screenshot above shows that our firewall is active.\n<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><a id=\"post-18017-_afit96dn1pl5\"><\/a><strong>Step 3: Check Firewall Rules<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\n  After that, we\u2019ll check the configured firewall rules in a numbered format:\n<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th><p>\n  $ sudo ufw status numbered\n<\/p><\/th><\/tr><\/thead><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><strong><figure><img loading=\"lazy\" decoding=\"async\" width=\"1133\" height=\"235\" class=\"wp-image-18027\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/09\/word-image-18017-10.png\" style=\"\" alt=\"checking firewall rules\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/09\/word-image-18017-10.png 1133w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/09\/word-image-18017-10-300x62.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/09\/word-image-18017-10-1024x212.png 1024w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/09\/word-image-18017-10-768x159.png 768w\" sizes=\"(max-width: 1133px) 100vw, 1133px\" \/><\/figure><\/strong><\/h3>\n\n\n\n<h2 class=\"wp-block-heading\"><a id=\"post-18017-_m1ortd2gqqu7\"><\/a><strong>Fail2Ban Configuration<\/strong><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Let\u2019s now discuss what Fail2Ban is, what it does, and <a href=\"https:\/\/greenwebpage.com\/community\/how-to-install-and-configure-fail2ban-on-debian-12\/\">how to install it<\/a> and enable its services. Fail2Ban is a security tool that monitors login attempts and temporarily blocks IP addresses that show repeated suspicious or failed authentication attempts.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\n  It prevents attacks like brute force. Now, we\u2019ll install and enable it step-by-step.\n<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><a id=\"post-18017-_dq9j14km1qa8\"><\/a><strong>Step 1: Install Fail2Ban<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\n  Run the following command to install Fail2Ban:\n<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th><p>\n  $ sudo apt install fail2ban -y\n<\/p><\/th><\/tr><\/thead><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1124\" height=\"898\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/09\/word-image-18017-11.png\" alt=\"installing fail2ban\" class=\"wp-image-18028\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/09\/word-image-18017-11.png 1124w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/09\/word-image-18017-11-300x240.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/09\/word-image-18017-11-1024x818.png 1024w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/09\/word-image-18017-11-768x614.png 768w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/09\/word-image-18017-11-220x175.png 220w\" sizes=\"(max-width: 1124px) 100vw, 1124px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><a id=\"post-18017-_lu1e0txw21td\"><\/a><strong>Step 2: Enable and Start Fail2Ban<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\n  After installing Fail2Ban, we\u2019ll enable it and start it, using the following systemctl command:\n<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th><p>\n  $ sudo systemctl enable &#8211;now fail2ban\n<\/p><\/th><\/tr><\/thead><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\n  The output below shows that Fail2Ban is active:\n  <img loading=\"lazy\" decoding=\"async\" width=\"1128\" height=\"609\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/09\/word-image-18017-12.png\" class=\"wp-image-18029\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/09\/word-image-18017-12.png 1128w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/09\/word-image-18017-12-300x162.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/09\/word-image-18017-12-1024x553.png 1024w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/09\/word-image-18017-12-768x415.png 768w\" sizes=\"(max-width: 1128px) 100vw, 1128px\" \/>\n<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><a id=\"post-18017-_yngup3a187xu\"><\/a><strong>Step 3: Check Active Fail2Ban Jails<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\n  After starting Fail2Ban, we checked the active security jails using:\n<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th><p>\n  $ sudo fail2ban-client status\n<\/p><\/th><\/tr><\/thead><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\n  The output shows the active protection jails: \n  <img loading=\"lazy\" decoding=\"async\" width=\"1128\" height=\"149\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/09\/word-image-18017-13.png\" class=\"wp-image-18030\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/09\/word-image-18017-13.png 1128w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/09\/word-image-18017-13-300x40.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/09\/word-image-18017-13-1024x135.png 1024w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/09\/word-image-18017-13-768x101.png 768w\" sizes=\"(max-width: 1128px) 100vw, 1128px\" \/>\n<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\n  It shows 1 active jail named sshd.\n<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><a id=\"post-18017-_21tg4hghcqbx\"><\/a><strong>Security Auditing with Lynis<\/strong><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\n  Moving onward, we\u2019ll install Lynis and audit our server with it. Lynis is a security auditing tool that scans a Linux system for vulnerabilities and provides hardening recommendations.\n<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><a id=\"post-18017-_tw46zsk0lwdb\"><\/a><strong>Step 1: Install Lynis<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\n  First, we\u2019ll install Lynis on our server: \n<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th><p>\n  $ sudo apt install lynis -y\n<\/p><\/th><\/tr><\/thead><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><a id=\"post-18017-_ukzu1z1wp0wd\"><\/a><strong>Step 2: Run a Security Audit<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\n  After installing, let\u2019s run a security audit:\n<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th><p>\n  $ sudo lynis audit system\n<\/p><\/th><\/tr><\/thead><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><strong><figure><img loading=\"lazy\" decoding=\"async\" width=\"1122\" height=\"1000\" class=\"wp-image-18031\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/09\/word-image-18017-14.png\" style=\"\" alt=\"run lynis audit tool\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/09\/word-image-18017-14.png 1122w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/09\/word-image-18017-14-300x267.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/09\/word-image-18017-14-1024x913.png 1024w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/09\/word-image-18017-14-768x684.png 768w\" sizes=\"(max-width: 1122px) 100vw, 1122px\" \/><\/figure><\/strong><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\n  The screenshot above shows the audit; it may take a few minutes to complete. Lastly, it\u2019ll provide recommendations to harden your Ubuntu 26.04.\n<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><a id=\"post-18017-_pnkyp0kd0oho\"><\/a><strong>Conclusion<\/strong><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\n  All in all, like every other distribution, Ubuntu 26.04 LTS server also comes with some security shortcomings. In this guide, we discussed various methods and tools that can be used to make our server more secure. \n<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The process included system updates and automatic security updates, user and sudo security, SSH hardening, <a href=\"https:\/\/greenwebpage.com\/community\/how-to-install-ufw-on-ubuntu-22-04\/\">UFW firewall configuration<\/a>, Fail2Ban, and Lynis security auditing. These methods reduce the risk of unnecessary exposure and protect against repeated login attempts.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\n  In simple words, we successfully hardened and secured the Ubuntu 26.04 LTS server.\n<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n    <div class=\"xs_social_share_widget xs_share_url after_content \t\tmain_content  wslu-style-1 wslu-share-box-shaped wslu-fill-colored wslu-none wslu-share-horizontal wslu-theme-font-no wslu-main_content\">\n\n\t\t\n        <ul>\n\t\t\t        <\/ul>\n    <\/div> \n","protected":false},"excerpt":{"rendered":"<p>Are you new to the recently launched Ubuntu 26.04 LTS, also known as Resolute Raccoon? It was released on April 23, 2026, and it will restart the 5-year clock for standard maintenance and security updates. Although every Linux distribution comes with default security, it&#8217;s never enough; it always requires more. We can make it more [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":18043,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[43],"tags":[409,322,1094,1093,260,266,1054],"class_list":["post-18017","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials","tag-automatic-updates","tag-firewalld","tag-hardening-ubuntu-26-04","tag-securing-ubuntu-26-04","tag-security","tag-ssh","tag-ubuntu-26-04"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Hardening and Securing Ubuntu 26.04 LTS Server - Greenwebpage Community<\/title>\n<meta name=\"description\" content=\"This article takes you through some important steps to harden and secure your Ubuntu 26.04 LTS server.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/greenwebpage.com\/community\/hardening-and-securing-ubuntu-26-04-lts-server\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Hardening and Securing Ubuntu 26.04 LTS Server - Greenwebpage Community\" \/>\n<meta property=\"og:description\" content=\"This article takes you through some important steps to harden and secure your Ubuntu 26.04 LTS server.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/greenwebpage.com\/community\/hardening-and-securing-ubuntu-26-04-lts-server\/\" \/>\n<meta property=\"og:site_name\" content=\"Greenwebpage Community\" \/>\n<meta property=\"article:published_time\" content=\"2026-09-13T07:11:56+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-09-13T07:11:59+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/09\/hardening-and-securing-ubuntu-26.04-lts-server.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1020\" \/>\n\t<meta property=\"og:image:height\" content=\"600\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Karim Buzdar\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Karim Buzdar\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"8 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/greenwebpage.com\/community\/hardening-and-securing-ubuntu-26-04-lts-server\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/hardening-and-securing-ubuntu-26-04-lts-server\/\"},\"author\":{\"name\":\"Karim Buzdar\",\"@id\":\"https:\/\/greenwebpage.com\/community\/#\/schema\/person\/467c100c1d017bc081473ee0440680c8\"},\"headline\":\"Hardening and Securing Ubuntu 26.04 LTS Server\",\"datePublished\":\"2026-09-13T07:11:56+00:00\",\"dateModified\":\"2026-09-13T07:11:59+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/hardening-and-securing-ubuntu-26-04-lts-server\/\"},\"wordCount\":1140,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/#organization\"},\"image\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/hardening-and-securing-ubuntu-26-04-lts-server\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/09\/hardening-and-securing-ubuntu-26.04-lts-server.jpg\",\"keywords\":[\"Automatic Updates\",\"Firewalld\",\"Hardening Ubuntu 26.04\",\"Securing Ubuntu 26.04\",\"Security\",\"SSH\",\"Ubuntu 26.04\"],\"articleSection\":[\"Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/greenwebpage.com\/community\/hardening-and-securing-ubuntu-26-04-lts-server\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/greenwebpage.com\/community\/hardening-and-securing-ubuntu-26-04-lts-server\/\",\"url\":\"https:\/\/greenwebpage.com\/community\/hardening-and-securing-ubuntu-26-04-lts-server\/\",\"name\":\"Hardening and Securing Ubuntu 26.04 LTS Server - Greenwebpage Community\",\"isPartOf\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/hardening-and-securing-ubuntu-26-04-lts-server\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/hardening-and-securing-ubuntu-26-04-lts-server\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/09\/hardening-and-securing-ubuntu-26.04-lts-server.jpg\",\"datePublished\":\"2026-09-13T07:11:56+00:00\",\"dateModified\":\"2026-09-13T07:11:59+00:00\",\"description\":\"This article takes you through some important steps to harden and secure your Ubuntu 26.04 LTS server.\",\"breadcrumb\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/hardening-and-securing-ubuntu-26-04-lts-server\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/greenwebpage.com\/community\/hardening-and-securing-ubuntu-26-04-lts-server\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/greenwebpage.com\/community\/hardening-and-securing-ubuntu-26-04-lts-server\/#primaryimage\",\"url\":\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/09\/hardening-and-securing-ubuntu-26.04-lts-server.jpg\",\"contentUrl\":\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/09\/hardening-and-securing-ubuntu-26.04-lts-server.jpg\",\"width\":1020,\"height\":600,\"caption\":\"secure and harden ubuntu 26.04\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/greenwebpage.com\/community\/hardening-and-securing-ubuntu-26-04-lts-server\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/greenwebpage.com\/community\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Hardening and Securing Ubuntu 26.04 LTS Server\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/greenwebpage.com\/community\/#website\",\"url\":\"https:\/\/greenwebpage.com\/community\/\",\"name\":\"Greenwebpage Community\",\"description\":\"Get online in three steps with our wide range of web hosting solutions. Choose from professional business to enterprise options designed to meet your needs.\",\"publisher\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/greenwebpage.com\/community\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/greenwebpage.com\/community\/#organization\",\"name\":\"Greenwebpage Community\",\"url\":\"https:\/\/greenwebpage.com\/community\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/greenwebpage.com\/community\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/10\/cropped-logomic.png\",\"contentUrl\":\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/10\/cropped-logomic.png\",\"width\":512,\"height\":512,\"caption\":\"Greenwebpage Community\"},\"image\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/greenwebpage.com\/community\/#\/schema\/person\/467c100c1d017bc081473ee0440680c8\",\"name\":\"Karim Buzdar\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/greenwebpage.com\/community\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/0628fcbcddd9bc5486245d2cf4a904dbcdeac9ad6c3098f49237094e9d513d0c?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/0628fcbcddd9bc5486245d2cf4a904dbcdeac9ad6c3098f49237094e9d513d0c?s=96&d=mm&r=g\",\"caption\":\"Karim Buzdar\"},\"sameAs\":[\"https:\/\/greenwebpage.com\"],\"url\":\"https:\/\/greenwebpage.com\/community\/author\/karim\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Hardening and Securing Ubuntu 26.04 LTS Server - Greenwebpage Community","description":"This article takes you through some important steps to harden and secure your Ubuntu 26.04 LTS server.","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:\/\/greenwebpage.com\/community\/hardening-and-securing-ubuntu-26-04-lts-server\/","og_locale":"en_US","og_type":"article","og_title":"Hardening and Securing Ubuntu 26.04 LTS Server - Greenwebpage Community","og_description":"This article takes you through some important steps to harden and secure your Ubuntu 26.04 LTS server.","og_url":"https:\/\/greenwebpage.com\/community\/hardening-and-securing-ubuntu-26-04-lts-server\/","og_site_name":"Greenwebpage Community","article_published_time":"2026-09-13T07:11:56+00:00","article_modified_time":"2026-09-13T07:11:59+00:00","og_image":[{"width":1020,"height":600,"url":"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/09\/hardening-and-securing-ubuntu-26.04-lts-server.jpg","type":"image\/jpeg"}],"author":"Karim Buzdar","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Karim Buzdar","Est. reading time":"8 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/greenwebpage.com\/community\/hardening-and-securing-ubuntu-26-04-lts-server\/#article","isPartOf":{"@id":"https:\/\/greenwebpage.com\/community\/hardening-and-securing-ubuntu-26-04-lts-server\/"},"author":{"name":"Karim Buzdar","@id":"https:\/\/greenwebpage.com\/community\/#\/schema\/person\/467c100c1d017bc081473ee0440680c8"},"headline":"Hardening and Securing Ubuntu 26.04 LTS Server","datePublished":"2026-09-13T07:11:56+00:00","dateModified":"2026-09-13T07:11:59+00:00","mainEntityOfPage":{"@id":"https:\/\/greenwebpage.com\/community\/hardening-and-securing-ubuntu-26-04-lts-server\/"},"wordCount":1140,"commentCount":0,"publisher":{"@id":"https:\/\/greenwebpage.com\/community\/#organization"},"image":{"@id":"https:\/\/greenwebpage.com\/community\/hardening-and-securing-ubuntu-26-04-lts-server\/#primaryimage"},"thumbnailUrl":"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/09\/hardening-and-securing-ubuntu-26.04-lts-server.jpg","keywords":["Automatic Updates","Firewalld","Hardening Ubuntu 26.04","Securing Ubuntu 26.04","Security","SSH","Ubuntu 26.04"],"articleSection":["Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/greenwebpage.com\/community\/hardening-and-securing-ubuntu-26-04-lts-server\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/greenwebpage.com\/community\/hardening-and-securing-ubuntu-26-04-lts-server\/","url":"https:\/\/greenwebpage.com\/community\/hardening-and-securing-ubuntu-26-04-lts-server\/","name":"Hardening and Securing Ubuntu 26.04 LTS Server - Greenwebpage Community","isPartOf":{"@id":"https:\/\/greenwebpage.com\/community\/#website"},"primaryImageOfPage":{"@id":"https:\/\/greenwebpage.com\/community\/hardening-and-securing-ubuntu-26-04-lts-server\/#primaryimage"},"image":{"@id":"https:\/\/greenwebpage.com\/community\/hardening-and-securing-ubuntu-26-04-lts-server\/#primaryimage"},"thumbnailUrl":"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/09\/hardening-and-securing-ubuntu-26.04-lts-server.jpg","datePublished":"2026-09-13T07:11:56+00:00","dateModified":"2026-09-13T07:11:59+00:00","description":"This article takes you through some important steps to harden and secure your Ubuntu 26.04 LTS server.","breadcrumb":{"@id":"https:\/\/greenwebpage.com\/community\/hardening-and-securing-ubuntu-26-04-lts-server\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/greenwebpage.com\/community\/hardening-and-securing-ubuntu-26-04-lts-server\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/greenwebpage.com\/community\/hardening-and-securing-ubuntu-26-04-lts-server\/#primaryimage","url":"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/09\/hardening-and-securing-ubuntu-26.04-lts-server.jpg","contentUrl":"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/09\/hardening-and-securing-ubuntu-26.04-lts-server.jpg","width":1020,"height":600,"caption":"secure and harden ubuntu 26.04"},{"@type":"BreadcrumbList","@id":"https:\/\/greenwebpage.com\/community\/hardening-and-securing-ubuntu-26-04-lts-server\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/greenwebpage.com\/community\/"},{"@type":"ListItem","position":2,"name":"Hardening and Securing Ubuntu 26.04 LTS Server"}]},{"@type":"WebSite","@id":"https:\/\/greenwebpage.com\/community\/#website","url":"https:\/\/greenwebpage.com\/community\/","name":"Greenwebpage Community","description":"Get online in three steps with our wide range of web hosting solutions. Choose from professional business to enterprise options designed to meet your needs.","publisher":{"@id":"https:\/\/greenwebpage.com\/community\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/greenwebpage.com\/community\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/greenwebpage.com\/community\/#organization","name":"Greenwebpage Community","url":"https:\/\/greenwebpage.com\/community\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/greenwebpage.com\/community\/#\/schema\/logo\/image\/","url":"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/10\/cropped-logomic.png","contentUrl":"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/10\/cropped-logomic.png","width":512,"height":512,"caption":"Greenwebpage Community"},"image":{"@id":"https:\/\/greenwebpage.com\/community\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/greenwebpage.com\/community\/#\/schema\/person\/467c100c1d017bc081473ee0440680c8","name":"Karim Buzdar","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/greenwebpage.com\/community\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/0628fcbcddd9bc5486245d2cf4a904dbcdeac9ad6c3098f49237094e9d513d0c?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0628fcbcddd9bc5486245d2cf4a904dbcdeac9ad6c3098f49237094e9d513d0c?s=96&d=mm&r=g","caption":"Karim Buzdar"},"sameAs":["https:\/\/greenwebpage.com"],"url":"https:\/\/greenwebpage.com\/community\/author\/karim\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/posts\/18017","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/comments?post=18017"}],"version-history":[{"count":10,"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/posts\/18017\/revisions"}],"predecessor-version":[{"id":18042,"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/posts\/18017\/revisions\/18042"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/media\/18043"}],"wp:attachment":[{"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/media?parent=18017"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/categories?post=18017"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/tags?post=18017"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}