{"id":2534,"date":"2026-12-03T04:26:46","date_gmt":"2026-12-03T09:56:46","guid":{"rendered":"https:\/\/rackbank.com\/blog\/?p=2534"},"modified":"2026-12-03T04:26:49","modified_gmt":"2026-12-03T09:56:49","slug":"secure-new-dedicated-server-first-steps","status":"publish","type":"post","link":"https:\/\/rackbank.com\/blog\/secure-new-dedicated-server-first-steps\/","title":{"rendered":"Secure a New Dedicated Server First Steps: Ubuntu 24.04"},"content":{"rendered":"<div>\n<p>&nbsp;<\/p>\n<\/div>\n<figure class=\"wp-block-table\">\n<table>\n<tbody>\n<tr>\n<td><strong>TL;DR<\/strong><\/p>\n<ul>\n<li>The first hour on a fresh Ubuntu Server 24.04 LTS dedicated server, in five ordered steps.<\/li>\n<li>Admin user with an SSH (Secure Shell) key, password and root login off, ufw (Uncomplicated Firewall), fail2ban, then automatic updates.<\/li>\n<li>Every step ends with a check and a rollback.<\/li>\n<li>Needs: the provider&#8217;s first login and a console that does not depend on SSH.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/figure>\n<p>Anyone who has to secure a new dedicated server first steps through its logins, its firewall and its update settings. This run sheet puts those jobs in the order that is safe to run them, each with a check and a way back. It is for small business IT teams, agencies, developers and system administrators who run the server themselves.<\/p>\n<p>The commands target Ubuntu Server 24.04 LTS (long-term support) and come from the official documentation linked in each step. The wider owner jobs, from backups to restore drills, sit in our <a href=\"https:\/\/rackbank.com\/blog\/manage-your-own-dedicated-server-checklist\/\">owner&#8217;s checklist for managing your own dedicated server<\/a>.<\/p>\n<figure class=\"wp-block-table\">\n<table>\n<tbody>\n<tr>\n<td><strong>BEFORE YOU START<\/strong><\/p>\n<ul>\n<li><strong>Access:<\/strong> the provider&#8217;s first login and a KVM (keyboard, video and mouse) console that does not depend on SSH. Does the shipped image allow password or root login over SSH?<\/li>\n<li><strong>Release:<\/strong> a fresh Ubuntu Server 24.04 LTS install with no applications yet. Which versions does apt policy openssh-server ufw fail2ban report?<\/li>\n<li><strong>Free disk:<\/strong> is there room on the root file system for fail2ban and update downloads?<\/li>\n<li><strong>Maintenance window:<\/strong> is an hour booked when nobody else depends on this server?<\/li>\n<li><strong>Backup:<\/strong> which snapshot or backup path does the provider&#8217;s panel offer, and has it been taken?<\/li>\n<li><strong>Rollback<\/strong>: each step names its undo. One SSH session kept open all hour gives a way back.<\/li>\n<li><strong>SAFETY NOTE:<\/strong> these are general steps, written against Ubuntu Server 24.04 LTS with OpenSSH, ufw, fail2ban and unattended-upgrades from the Ubuntu archive. Every server differs in roles, firewall, applications and network, so a technical person who knows this server should review each step before it is run, and try it on a test or non-production server first where one exists.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/figure>\n<figure class=\"wp-block-table\">\n<table>\n<tbody>\n<tr>\n<td><strong>CRITICAL<\/strong><\/p>\n<ul>\n<li>Step 2 can lock you out: run it only after a key login as the new admin user works in a second session.<\/li>\n<li>Step 3 can lock you out: run sudo ufw enable only after the SSH rule is in place.<\/li>\n<li>Step 4 can ban your own address: confirm the out-of-band console works first.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/figure>\n<h2 class=\"wp-block-heading\">Why the Order of the Five Steps Is Fixed<\/h2>\n<p>Three of the five steps can cut off your own access, so the order is fixed. The key login comes before password login goes off, and the SSH rule comes before the firewall goes on.<\/p>\n<p>For every SSH or firewall change, session one stays logged in while a new session two tests it. If session two works, the change stays. If it fails, session one rolls it back.<\/p>\n<h3 class=\"wp-block-heading\">Step 1: Create an Admin User and Install Your SSH Key<\/h3>\n<p>The Ubuntu user management guide says that adding an account to the sudo group <a href=\"https:\/\/ubuntu.com\/server\/docs\/how-to\/security\/user-management\/\">gives that account full root access through sudo<\/a>. After a login with the provider&#8217;s credentials, two commands create the user and add it to that group:<\/p>\n<pre class=\"wp-block-code\"><code>sudo adduser opsadmin\nsudo adduser opsadmin sudo<\/code><\/pre>\n<p>Next, a key pair made on your own computer goes across to the server. The <a href=\"https:\/\/ubuntu.com\/server\/docs\/how-to\/security\/openssh-server\/\">Ubuntu OpenSSH guide recommends the ed25519 algorithm<\/a> for its shorter key size and lower computational requirements.<\/p>\n<pre class=\"wp-block-code\"><code>ssh-keygen -t ed25519\nssh-copy-id opsadmin@203.0.113.10<\/code><\/pre>\n<p><strong>Check:<\/strong> in a second terminal, ssh opsadmin@203.0.113.10 should log in without the account password. A passphrase prompt is expected if the key has one.<\/p>\n<p><strong>Wrong result:<\/strong> a password prompt means the server did not accept the key. The log in sudo journalctl -fu ssh.service shows the reason. As the new user, chmod go-w .ssh\/authorized_keys tightens the file&#8217;s permissions.<\/p>\n<p><strong>Rollback:<\/strong> sudo deluser opsadmin removes the account; the guide notes the home folder stays until you delete it.<\/p>\n<h3 class=\"wp-block-heading\">Step 2: Turn Off Password and Root Login Over SSH<\/h3>\n<p>The <a href=\"https:\/\/man.openbsd.org\/sshd_config\">OpenSSH manual lists yes as the default for PasswordAuthentication<\/a>, so password logins stay open until a setting changes them. A drop-in file, \/etc\/ssh\/sshd_config.d\/01-first-hour.conf, holds three lines:<\/p>\n<pre class=\"wp-block-code\"><code>PasswordAuthentication no\nKbdInteractiveAuthentication no\nPermitRootLogin no<\/code><\/pre>\n<p>The 01 prefix is deliberate. The manual says included files are processed in lexical order, and for most keywords the first value obtained is used.<\/p>\n<p>As in the Ubuntu guide, a syntax test comes before the restart:<\/p>\n<pre class=\"wp-block-code\"><code>sudo sshd -t\nsudo systemctl restart ssh.service<\/code><\/pre>\n<p><strong>Check:<\/strong> with session one still open, a key login as opsadmin from a new terminal should work. A login as root@203.0.113.10 should then be refused.<\/p>\n<p><strong>Wrong result:<\/strong> if sudo sshd -t prints an error, the named line needs fixing before the restart.<\/p>\n<p><strong>Rollback:<\/strong> from session one, sudo rm \/etc\/ssh\/sshd_config.d\/01-first-hour.conf and a restart of ssh.service undo the change.<\/p>\n<h3 class=\"wp-block-heading\">Step 3: Allow SSH in ufw, Then Turn It On<\/h3>\n<p>The <a href=\"https:\/\/ubuntu.com\/server\/docs\/how-to\/security\/firewalls\/\">Ubuntu firewall guide notes that ufw is initially disabled<\/a>. The SSH rule goes in first, and the firewall goes on after it:<\/p>\n<pre class=\"wp-block-code\"><code>sudo ufw allow 22\nsudo ufw enable<\/code><\/pre>\n<p>Connecting from one fixed office or VPN (virtual private network) address? The guide&#8217;s narrower rule, sudo ufw allow proto tcp from 192.168.0.2 to any port 22, takes your address in place of the sample. Once it tests fine, sudo ufw delete allow 22 removes the open rule.<\/p>\n<p><strong>Check:<\/strong> sudo ufw status verbose should show the firewall active with the port 22 rule, and a new SSH session should still connect.<\/p>\n<p><strong>Rollback:<\/strong> sudo ufw disable turns the firewall off again.<\/p>\n<h3 class=\"wp-block-heading\">Step 4: Add fail2ban for the sshd Jail<\/h3>\n<p>The install command is sudo apt install fail2ban. The <a href=\"https:\/\/manpages.ubuntu.com\/manpages\/noble\/man5\/jail.conf.5.html\">Ubuntu 24.04 jail.conf manual recommends leaving .conf files unchanged<\/a> and putting customisations in .local files. Following its example, \/etc\/fail2ban\/jail.local enables the sshd jail with two lines, and a restart loads it:<\/p>\n<pre class=\"wp-block-code\"><code>[sshd]\nenabled = true<\/code><\/pre>\n<pre class=\"wp-block-code\"><code>sudo systemctl restart fail2ban<\/code><\/pre>\n<p><strong>Check:<\/strong> sudo fail2ban-client status sshd should return the jail&#8217;s status, as the Ubuntu 24.04 fail2ban-client manual page describes. An error means the jail did not start.<\/p>\n<p><strong>Wrong result:<\/strong> if your own address is banned, the console still gives a way in. From there, sudo fail2ban-client set sshd unbanip followed by the address lifts the ban.<\/p>\n<p><strong>Rollback:<\/strong> sudo fail2ban-client stop sshd stops the jail. Does the sshd jail start again after a restart, and which file enables it?<\/p>\n<h3 class=\"wp-block-heading\">Step 5: Confirm Automatic Security Updates<\/h3>\n<p>This step installs nothing; it confirms updates are on. The <a href=\"https:\/\/ubuntu.com\/server\/docs\/how-to\/software\/automatic-updates\/\">Ubuntu automatic updates guide says unattended-upgrades is installed by default<\/a> and runs once per day. The file \/etc\/apt\/apt.conf.d\/20auto-upgrades should hold:<\/p>\n<pre class=\"wp-block-code\"><code>APT::Periodic::Update-Package-Lists \"1\";\nAPT::Periodic::Unattended-Upgrade \"1\";<\/code><\/pre>\n<p>Then sudo unattended-upgrade -v &#8211;dry-run shows what it would install without changing anything. Logs of each run sit in \/var\/log\/unattended-upgrades.<\/p>\n<p>Reboots are separate. Automatic-Reboot defaults to false, so an update that needs a reboot waits for you, and \/var\/run\/reboot-required flags it.<\/p>\n<p><strong>Rollback:<\/strong> setting both 20auto-upgrades values to &#8220;0&#8221; disables unattended upgrades.<\/p>\n<hr \/>\n<h3 class=\"wp-block-heading\">What to Check After the First Hour<\/h3>\n<figure class=\"wp-block-table\">\n<table>\n<thead>\n<tr>\n<th>Check<\/th>\n<th>Command<\/th>\n<th>Expected result<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Admin key login<\/td>\n<td>ssh opsadmin@203.0.113.10<\/td>\n<td>Key login, no account password<\/td>\n<\/tr>\n<tr>\n<td>Root login<\/td>\n<td>ssh root@203.0.113.10<\/td>\n<td>Refused<\/td>\n<\/tr>\n<tr>\n<td>Firewall<\/td>\n<td>sudo ufw status verbose<\/td>\n<td>Active, port 22 rule listed<\/td>\n<\/tr>\n<tr>\n<td>fail2ban<\/td>\n<td>sudo fail2ban-client status sshd<\/td>\n<td>sshd jail status returned<\/td>\n<\/tr>\n<tr>\n<td>Updates<\/td>\n<td>sudo unattended-upgrade -v &#8211;dry-run<\/td>\n<td>Allowed origins listed, no errors<\/td>\n<\/tr>\n<tr>\n<td>Pending reboot<\/td>\n<td>ls \/var\/run\/reboot-required<\/td>\n<td>Absent, or a reboot booked<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/figure>\n<p>Sources: Ubuntu Server documentation and Ubuntu 24.04 manual pages.<\/p>\n<p>Any row that does not match points back to its step and its rollback. A dated record of these results is the starting point for a full baseline, which our <a href=\"https:\/\/rackbank.com\/blog\/cis-benchmark-linux-server-hardening-audit\/\">CIS benchmark Linux server hardening audit<\/a> walks through on one server.<\/p>\n<h3 class=\"wp-block-heading\">When to Stop and Hand Over<\/h3>\n<ul class=\"wp-block-list\">\n<li>Is there no console path apart from SSH? Stop before Step 2 and ask the provider for one.<\/li>\n<li>Does cPanel, Plesk or another panel manage SSH and the firewall itself?<\/li>\n<li>Is the server on AlmaLinux or Debian? That distribution&#8217;s documentation gives the equivalent commands.<\/li>\n<li>Will anyone read the update logs and fail2ban status after today? If not, our <a href=\"https:\/\/rackbank.com\/blog\/managed-vs-unmanaged-dedicated-servers-what-to-choose\/\">comparison of managed and unmanaged dedicated servers<\/a> covers handing over.<\/li>\n<\/ul>\n<hr \/>\n<h3 class=\"wp-block-heading\">FAQs<\/h3>\n<p><strong>Should I change the SSH port on a new dedicated server?<\/strong><\/p>\n<p>None of these steps needs it, and Step 3 allows port 22 only. If SSH moves to another port, has the ufw rule for that port been added and the sshd jail port updated before ssh.service is restarted?<\/p>\n<p><strong>How do I get back in after locking myself out of SSH?<\/strong><\/p>\n<p>The out-of-band console is the way back in. From there, the rollback of the step that locked you out undoes it. The step can then run again with two sessions open.<\/p>\n<h2 class=\"wp-block-heading\">Where the Server Stands Now<\/h2>\n<p>After this hour, the server takes key logins from a named admin only, allows SSH through ufw, bans repeat failures and checks for security updates daily.<\/p>\n<figure class=\"wp-block-table\">\n<table>\n<tbody>\n<tr>\n<td><strong>NEXT STEP<\/strong><br \/>\nSizing the next machine you will harden this way? See the configurations on our <a href=\"https:\/\/www.rackbank.com\/datacenter-services\/high-performance-dedicated-servers.html\">dedicated and bare metal servers page<\/a>.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/figure>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; TL;DR The first hour on a fresh Ubuntu Server 24.04 LTS dedicated server, in five ordered steps. Admin user with an SSH (Secure Shell) key, password and root login off, ufw (Uncomplicated Firewall), fail2ban, then automatic updates. Every step ends with a check and a rollback. Needs: the provider&#8217;s first login and a console [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":2506,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[194],"tags":[56,79,148,219],"class_list":["post-2534","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server-administration","tag-dedicated-server","tag-dedicated-servers","tag-linux-hosting","tag-unmanaged-dedicated-server-hosting"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Secure a New Dedicated Server: First Steps | RackBank<\/title>\n<meta name=\"description\" content=\"First steps to secure a new dedicated server on Ubuntu 24.04: SSH keys, password login off, ufw, fail2ban and updates, each with a rollback.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/rackbank.com\/blog\/secure-new-dedicated-server-first-steps\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Secure a New Dedicated Server: First Steps | RackBank\" \/>\n<meta property=\"og:description\" content=\"First steps to secure a new dedicated server on Ubuntu 24.04: SSH keys, password login off, ufw, fail2ban and updates, each with a rollback.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/rackbank.com\/blog\/secure-new-dedicated-server-first-steps\/\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/RackBank\/\" \/>\n<meta property=\"article:published_time\" content=\"2026-12-03T09:56:46+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-12-03T09:56:49+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/rackbank.com\/blog\/wp-content\/uploads\/2026\/11\/rbi-cyber-resilience-payment-operators-hosting-checklist-featured-scaled.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"2560\" \/>\n\t<meta property=\"og:image:height\" content=\"1429\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Tanvi Ausare\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@rackbank\" \/>\n<meta name=\"twitter:site\" content=\"@rackbank\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Tanvi Ausare\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. 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:\\\/\\\/rackbank.com\\\/blog\\\/secure-new-dedicated-server-first-steps\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/rackbank.com\\\/blog\\\/secure-new-dedicated-server-first-steps\\\/\"},\"author\":{\"name\":\"Tanvi Ausare\",\"@id\":\"https:\\\/\\\/rackbank.com\\\/blog\\\/#\\\/schema\\\/person\\\/8e06632331def2e4ee1b5180342b641c\"},\"headline\":\"Secure a New Dedicated Server First Steps: Ubuntu 24.04\",\"datePublished\":\"2026-12-03T09:56:46+00:00\",\"dateModified\":\"2026-12-03T09:56:49+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/rackbank.com\\\/blog\\\/secure-new-dedicated-server-first-steps\\\/\"},\"wordCount\":1454,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/rackbank.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/rackbank.com\\\/blog\\\/secure-new-dedicated-server-first-steps\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/rackbank.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/rbi-cyber-resilience-payment-operators-hosting-checklist-featured-scaled.jpg\",\"keywords\":[\"Dedicated Server\",\"dedicated servers\",\"Linux hosting\",\"Unmanaged Dedicated Server Hosting\"],\"articleSection\":[\"Server Administration\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/rackbank.com\\\/blog\\\/secure-new-dedicated-server-first-steps\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/rackbank.com\\\/blog\\\/secure-new-dedicated-server-first-steps\\\/\",\"url\":\"https:\\\/\\\/rackbank.com\\\/blog\\\/secure-new-dedicated-server-first-steps\\\/\",\"name\":\"Secure a New Dedicated Server: First Steps | RackBank\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/rackbank.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/rackbank.com\\\/blog\\\/secure-new-dedicated-server-first-steps\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/rackbank.com\\\/blog\\\/secure-new-dedicated-server-first-steps\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/rackbank.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/rbi-cyber-resilience-payment-operators-hosting-checklist-featured-scaled.jpg\",\"datePublished\":\"2026-12-03T09:56:46+00:00\",\"dateModified\":\"2026-12-03T09:56:49+00:00\",\"description\":\"First steps to secure a new dedicated server on Ubuntu 24.04: SSH keys, password login off, ufw, fail2ban and updates, each with a rollback.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/rackbank.com\\\/blog\\\/secure-new-dedicated-server-first-steps\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/rackbank.com\\\/blog\\\/secure-new-dedicated-server-first-steps\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/rackbank.com\\\/blog\\\/secure-new-dedicated-server-first-steps\\\/#primaryimage\",\"url\":\"https:\\\/\\\/rackbank.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/rbi-cyber-resilience-payment-operators-hosting-checklist-featured-scaled.jpg\",\"contentUrl\":\"https:\\\/\\\/rackbank.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/rbi-cyber-resilience-payment-operators-hosting-checklist-featured-scaled.jpg\",\"width\":2560,\"height\":1429,\"caption\":\"Generic server rack with payment servers, backup storage and network switch under green accent lighting\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/rackbank.com\\\/blog\\\/secure-new-dedicated-server-first-steps\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/rackbank.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Secure a New Dedicated Server First Steps: Ubuntu 24.04\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/rackbank.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/rackbank.com\\\/blog\\\/\",\"name\":\"rackbank.com\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/rackbank.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/rackbank.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/rackbank.com\\\/blog\\\/#organization\",\"name\":\"RackBank Datacenters pvt ltd\",\"url\":\"https:\\\/\\\/rackbank.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/rackbank.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/rackbank.com\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/09\\\/cropped-rackbank-logo-1.png\",\"contentUrl\":\"https:\\\/\\\/rackbank.com\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/09\\\/cropped-rackbank-logo-1.png\",\"width\":94,\"height\":42,\"caption\":\"RackBank Datacenters pvt ltd\"},\"image\":{\"@id\":\"https:\\\/\\\/rackbank.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/RackBank\\\/\",\"https:\\\/\\\/x.com\\\/rackbank\",\"https:\\\/\\\/in.linkedin.com\\\/company\\\/rackbank\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/rackbank.com\\\/blog\\\/#\\\/schema\\\/person\\\/8e06632331def2e4ee1b5180342b641c\",\"name\":\"Tanvi Ausare\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/fe5feb60fe7f80f01a49352fc22bb3a233db8a5f2ba1582cd6f9157d716102b3?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/fe5feb60fe7f80f01a49352fc22bb3a233db8a5f2ba1582cd6f9157d716102b3?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/fe5feb60fe7f80f01a49352fc22bb3a233db8a5f2ba1582cd6f9157d716102b3?s=96&d=mm&r=g\",\"caption\":\"Tanvi Ausare\"},\"url\":\"https:\\\/\\\/rackbank.com\\\/blog\\\/author\\\/tanvi\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Secure a New Dedicated Server: First Steps | RackBank","description":"First steps to secure a new dedicated server on Ubuntu 24.04: SSH keys, password login off, ufw, fail2ban and updates, each with a rollback.","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:\/\/rackbank.com\/blog\/secure-new-dedicated-server-first-steps\/","og_locale":"en_US","og_type":"article","og_title":"Secure a New Dedicated Server: First Steps | RackBank","og_description":"First steps to secure a new dedicated server on Ubuntu 24.04: SSH keys, password login off, ufw, fail2ban and updates, each with a rollback.","og_url":"https:\/\/rackbank.com\/blog\/secure-new-dedicated-server-first-steps\/","article_publisher":"https:\/\/www.facebook.com\/RackBank\/","article_published_time":"2026-12-03T09:56:46+00:00","article_modified_time":"2026-12-03T09:56:49+00:00","og_image":[{"width":2560,"height":1429,"url":"https:\/\/rackbank.com\/blog\/wp-content\/uploads\/2026\/11\/rbi-cyber-resilience-payment-operators-hosting-checklist-featured-scaled.jpg","type":"image\/jpeg"}],"author":"Tanvi Ausare","twitter_card":"summary_large_image","twitter_creator":"@rackbank","twitter_site":"@rackbank","twitter_misc":{"Written by":"Tanvi Ausare","Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/rackbank.com\/blog\/secure-new-dedicated-server-first-steps\/#article","isPartOf":{"@id":"https:\/\/rackbank.com\/blog\/secure-new-dedicated-server-first-steps\/"},"author":{"name":"Tanvi Ausare","@id":"https:\/\/rackbank.com\/blog\/#\/schema\/person\/8e06632331def2e4ee1b5180342b641c"},"headline":"Secure a New Dedicated Server First Steps: Ubuntu 24.04","datePublished":"2026-12-03T09:56:46+00:00","dateModified":"2026-12-03T09:56:49+00:00","mainEntityOfPage":{"@id":"https:\/\/rackbank.com\/blog\/secure-new-dedicated-server-first-steps\/"},"wordCount":1454,"commentCount":0,"publisher":{"@id":"https:\/\/rackbank.com\/blog\/#organization"},"image":{"@id":"https:\/\/rackbank.com\/blog\/secure-new-dedicated-server-first-steps\/#primaryimage"},"thumbnailUrl":"https:\/\/rackbank.com\/blog\/wp-content\/uploads\/2026\/11\/rbi-cyber-resilience-payment-operators-hosting-checklist-featured-scaled.jpg","keywords":["Dedicated Server","dedicated servers","Linux hosting","Unmanaged Dedicated Server Hosting"],"articleSection":["Server Administration"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/rackbank.com\/blog\/secure-new-dedicated-server-first-steps\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/rackbank.com\/blog\/secure-new-dedicated-server-first-steps\/","url":"https:\/\/rackbank.com\/blog\/secure-new-dedicated-server-first-steps\/","name":"Secure a New Dedicated Server: First Steps | RackBank","isPartOf":{"@id":"https:\/\/rackbank.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/rackbank.com\/blog\/secure-new-dedicated-server-first-steps\/#primaryimage"},"image":{"@id":"https:\/\/rackbank.com\/blog\/secure-new-dedicated-server-first-steps\/#primaryimage"},"thumbnailUrl":"https:\/\/rackbank.com\/blog\/wp-content\/uploads\/2026\/11\/rbi-cyber-resilience-payment-operators-hosting-checklist-featured-scaled.jpg","datePublished":"2026-12-03T09:56:46+00:00","dateModified":"2026-12-03T09:56:49+00:00","description":"First steps to secure a new dedicated server on Ubuntu 24.04: SSH keys, password login off, ufw, fail2ban and updates, each with a rollback.","breadcrumb":{"@id":"https:\/\/rackbank.com\/blog\/secure-new-dedicated-server-first-steps\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/rackbank.com\/blog\/secure-new-dedicated-server-first-steps\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/rackbank.com\/blog\/secure-new-dedicated-server-first-steps\/#primaryimage","url":"https:\/\/rackbank.com\/blog\/wp-content\/uploads\/2026\/11\/rbi-cyber-resilience-payment-operators-hosting-checklist-featured-scaled.jpg","contentUrl":"https:\/\/rackbank.com\/blog\/wp-content\/uploads\/2026\/11\/rbi-cyber-resilience-payment-operators-hosting-checklist-featured-scaled.jpg","width":2560,"height":1429,"caption":"Generic server rack with payment servers, backup storage and network switch under green accent lighting"},{"@type":"BreadcrumbList","@id":"https:\/\/rackbank.com\/blog\/secure-new-dedicated-server-first-steps\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/rackbank.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Secure a New Dedicated Server First Steps: Ubuntu 24.04"}]},{"@type":"WebSite","@id":"https:\/\/rackbank.com\/blog\/#website","url":"https:\/\/rackbank.com\/blog\/","name":"rackbank.com","description":"","publisher":{"@id":"https:\/\/rackbank.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/rackbank.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/rackbank.com\/blog\/#organization","name":"RackBank Datacenters pvt ltd","url":"https:\/\/rackbank.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/rackbank.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/rackbank.com\/blog\/wp-content\/uploads\/2025\/09\/cropped-rackbank-logo-1.png","contentUrl":"https:\/\/rackbank.com\/blog\/wp-content\/uploads\/2025\/09\/cropped-rackbank-logo-1.png","width":94,"height":42,"caption":"RackBank Datacenters pvt ltd"},"image":{"@id":"https:\/\/rackbank.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/RackBank\/","https:\/\/x.com\/rackbank","https:\/\/in.linkedin.com\/company\/rackbank"]},{"@type":"Person","@id":"https:\/\/rackbank.com\/blog\/#\/schema\/person\/8e06632331def2e4ee1b5180342b641c","name":"Tanvi Ausare","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/fe5feb60fe7f80f01a49352fc22bb3a233db8a5f2ba1582cd6f9157d716102b3?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/fe5feb60fe7f80f01a49352fc22bb3a233db8a5f2ba1582cd6f9157d716102b3?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/fe5feb60fe7f80f01a49352fc22bb3a233db8a5f2ba1582cd6f9157d716102b3?s=96&d=mm&r=g","caption":"Tanvi Ausare"},"url":"https:\/\/rackbank.com\/blog\/author\/tanvi\/"}]}},"_links":{"self":[{"href":"https:\/\/rackbank.com\/blog\/wp-json\/wp\/v2\/posts\/2534","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rackbank.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rackbank.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rackbank.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/rackbank.com\/blog\/wp-json\/wp\/v2\/comments?post=2534"}],"version-history":[{"count":1,"href":"https:\/\/rackbank.com\/blog\/wp-json\/wp\/v2\/posts\/2534\/revisions"}],"predecessor-version":[{"id":2537,"href":"https:\/\/rackbank.com\/blog\/wp-json\/wp\/v2\/posts\/2534\/revisions\/2537"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/rackbank.com\/blog\/wp-json\/wp\/v2\/media\/2506"}],"wp:attachment":[{"href":"https:\/\/rackbank.com\/blog\/wp-json\/wp\/v2\/media?parent=2534"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rackbank.com\/blog\/wp-json\/wp\/v2\/categories?post=2534"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rackbank.com\/blog\/wp-json\/wp\/v2\/tags?post=2534"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}