{"id":1940,"date":"2026-08-15T03:49:52","date_gmt":"2026-08-14T22:19:52","guid":{"rendered":"https:\/\/kwikserver.com\/tutorials\/basic-setup-guide-for-fresh-ubuntu-server\/"},"modified":"2026-08-15T03:49:52","modified_gmt":"2026-08-14T22:19:52","slug":"basic-setup-guide-for-fresh-ubuntu-server","status":"publish","type":"post","link":"https:\/\/kwikserver.com\/tutorials\/basic-setup-guide-for-fresh-ubuntu-server\/","title":{"rendered":"Basic Setup Guide for a Fresh Ubuntu Server"},"content":{"rendered":"<p>Spinning up a new Ubuntu server is only the first step &mdash; a few basic configuration tasks up front will make your server more secure and easier to manage long-term. Here&#8217;s a straightforward walkthrough for getting a fresh Ubuntu VPS ready for real use.<\/p>\n<h2>1. Log In as Root<\/h2>\n<p>Connect to your server over SSH using its public IP address and your root password or private key:<\/p>\n<pre><code>ssh root@your_server_ip<\/code><\/pre>\n<p>Accept the host authenticity prompt if it appears, then authenticate with your password or SSH key.<\/p>\n<p>The root account has unrestricted privileges on the system, which also makes it dangerous for everyday use &mdash; a single mistyped command can cause serious damage. The next step is to set up a regular user account for day-to-day work.<\/p>\n<h2>2. Create a New User<\/h2>\n<p>While logged in as root, create a new user account (replace <code>sammy<\/code> with whatever username you prefer):<\/p>\n<pre><code>adduser sammy<\/code><\/pre>\n<p>You&#8217;ll be prompted to set a password and, optionally, fill in a few extra details &mdash; feel free to leave those blank.<\/p>\n<h2>3. Grant Administrative (sudo) Privileges<\/h2>\n<p>Rather than switching back and forth between your new user and root, add the new account to the <code>sudo<\/code> group so it can run privileged commands when needed:<\/p>\n<pre><code>usermod -aG sudo sammy<\/code><\/pre>\n<p>From now on, prefixing a command with <code>sudo<\/code> runs it with administrative rights.<\/p>\n<h2>4. Set Up a Basic Firewall<\/h2>\n<p>Ubuntu ships with UFW (Uncomplicated Firewall), which makes it easy to restrict incoming connections to just the services you actually need. Check which application profiles are registered:<\/p>\n<pre><code>ufw app list<\/code><\/pre>\n<p>Make sure SSH stays allowed before you enable the firewall, or you&#8217;ll lock yourself out:<\/p>\n<pre><code>ufw allow OpenSSH\nufw enable<\/code><\/pre>\n<p>Confirm the rule is active:<\/p>\n<pre><code>ufw status<\/code><\/pre>\n<p>Any additional services you install later (a web server, a database, etc.) will need their own <code>ufw allow<\/code> rule before traffic can reach them.<\/p>\n<h2>5. Enable SSH Access for Your New User<\/h2>\n<p>Stay logged in as root until you&#8217;ve confirmed the new account works &mdash; that way you can troubleshoot from root if something goes wrong.<\/p>\n<p><strong>If your root account uses password login<\/strong>, just SSH in with the new username from a separate terminal session:<\/p>\n<pre><code>ssh sammy@your_server_ip<\/code><\/pre>\n<p>Run <code>sudo<\/code> before any command that needs elevated privileges; you&#8217;ll be prompted for your regular user&#8217;s password. For better security long-term, consider switching to SSH key authentication instead of passwords.<\/p>\n<p><strong>If your root account uses SSH keys<\/strong>, copy the authorized keys into the new user&#8217;s home directory so key-based login works for them too:<\/p>\n<pre><code>rsync --archive --chown=sammy:sammy ~\/.ssh \/home\/sammy<\/code><\/pre>\n<p>Be careful not to add a trailing slash after <code>~\/.ssh<\/code> &mdash; that changes what rsync copies. Once done, you should be able to log in as the new user without a password:<\/p>\n<pre><code>ssh sammy@your_server_ip<\/code><\/pre>\n<h2>Where to Go From Here<\/h2>\n<p>With a non-root user, sudo access, and a basic firewall in place, your server has a solid foundation. From here you&#8217;re ready to install whatever software your project needs.<\/p>\n<p>Need somewhere to practice this? KwikServer&#8217;s <a href=\"https:\/\/kwikserver.com\/linux-vps.php\">Linux VPS plans<\/a> give you full root access on a fresh Ubuntu image.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A first-boot checklist for a new Ubuntu VPS: creating a sudo user, locking down SSH, and enabling a basic firewall.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_monsterinsights_skip_tracking":false,"footnotes":"","_yoast_wpseo_title":"","_yoast_wpseo_metadesc":"","_yoast_wpseo_focuskw":"","rank_math_title":"","rank_math_description":"","rank_math_focus_keyword":""},"categories":[20],"tags":[],"class_list":["post-1940","post","type-post","status-publish","format-standard","hentry","category-linux"],"acf":[],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.0.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"A first-boot checklist for a new Ubuntu VPS: creating a sudo user, locking down SSH, and enabling a basic firewall.\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Kwik Server\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/kwikserver.com\/tutorials\/basic-setup-guide-for-fresh-ubuntu-server\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.0.1\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Tutorials Kwik Server -\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Basic Setup Guide for a Fresh Ubuntu Server - Tutorials Kwik Server\" \/>\n\t\t<meta property=\"og:description\" content=\"A first-boot checklist for a new Ubuntu VPS: creating a sudo user, locking down SSH, and enabling a basic firewall.\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/kwikserver.com\/tutorials\/basic-setup-guide-for-fresh-ubuntu-server\/\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2026-08-14T22:19:52+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2026-08-14T22:19:52+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Basic Setup Guide for a Fresh Ubuntu Server - Tutorials Kwik Server\" \/>\n\t\t<meta name=\"twitter:description\" content=\"A first-boot checklist for a new Ubuntu VPS: creating a sudo user, locking down SSH, and enabling a basic firewall.\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"BlogPosting\",\"@id\":\"https:\\\/\\\/kwikserver.com\\\/tutorials\\\/basic-setup-guide-for-fresh-ubuntu-server\\\/#blogposting\",\"name\":\"Basic Setup Guide for a Fresh Ubuntu Server - Tutorials Kwik Server\",\"headline\":\"Basic Setup Guide for a Fresh Ubuntu Server\",\"author\":{\"@id\":\"https:\\\/\\\/kwikserver.com\\\/tutorials\\\/author\\\/server2202kwik\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/kwikserver.com\\\/tutorials\\\/#organization\"},\"datePublished\":\"2026-08-15T03:49:52+05:30\",\"dateModified\":\"2026-08-15T03:49:52+05:30\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/kwikserver.com\\\/tutorials\\\/basic-setup-guide-for-fresh-ubuntu-server\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/kwikserver.com\\\/tutorials\\\/basic-setup-guide-for-fresh-ubuntu-server\\\/#webpage\"},\"articleSection\":\"Linux\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/kwikserver.com\\\/tutorials\\\/basic-setup-guide-for-fresh-ubuntu-server\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/kwikserver.com\\\/tutorials#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/kwikserver.com\\\/tutorials\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/kwikserver.com\\\/tutorials\\\/category\\\/linux\\\/#listItem\",\"name\":\"Linux\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/kwikserver.com\\\/tutorials\\\/category\\\/linux\\\/#listItem\",\"position\":2,\"name\":\"Linux\",\"item\":\"https:\\\/\\\/kwikserver.com\\\/tutorials\\\/category\\\/linux\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/kwikserver.com\\\/tutorials\\\/basic-setup-guide-for-fresh-ubuntu-server\\\/#listItem\",\"name\":\"Basic Setup Guide for a Fresh Ubuntu Server\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/kwikserver.com\\\/tutorials#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/kwikserver.com\\\/tutorials\\\/basic-setup-guide-for-fresh-ubuntu-server\\\/#listItem\",\"position\":3,\"name\":\"Basic Setup Guide for a Fresh Ubuntu Server\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/kwikserver.com\\\/tutorials\\\/category\\\/linux\\\/#listItem\",\"name\":\"Linux\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/kwikserver.com\\\/tutorials\\\/#organization\",\"name\":\"Tutorials Kwik Server\",\"url\":\"https:\\\/\\\/kwikserver.com\\\/tutorials\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/kwikserver.com\\\/tutorials\\\/author\\\/server2202kwik\\\/#author\",\"url\":\"https:\\\/\\\/kwikserver.com\\\/tutorials\\\/author\\\/server2202kwik\\\/\",\"name\":\"Kwik Server\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/kwikserver.com\\\/tutorials\\\/basic-setup-guide-for-fresh-ubuntu-server\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/b0b10492ce76cec12cc2303f4951f725e776449ce91e8fff43130c3174c94d70?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Kwik Server\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/kwikserver.com\\\/tutorials\\\/basic-setup-guide-for-fresh-ubuntu-server\\\/#webpage\",\"url\":\"https:\\\/\\\/kwikserver.com\\\/tutorials\\\/basic-setup-guide-for-fresh-ubuntu-server\\\/\",\"name\":\"Basic Setup Guide for a Fresh Ubuntu Server - Tutorials Kwik Server\",\"description\":\"A first-boot checklist for a new Ubuntu VPS: creating a sudo user, locking down SSH, and enabling a basic firewall.\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/kwikserver.com\\\/tutorials\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/kwikserver.com\\\/tutorials\\\/basic-setup-guide-for-fresh-ubuntu-server\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/kwikserver.com\\\/tutorials\\\/author\\\/server2202kwik\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/kwikserver.com\\\/tutorials\\\/author\\\/server2202kwik\\\/#author\"},\"datePublished\":\"2026-08-15T03:49:52+05:30\",\"dateModified\":\"2026-08-15T03:49:52+05:30\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/kwikserver.com\\\/tutorials\\\/#website\",\"url\":\"https:\\\/\\\/kwikserver.com\\\/tutorials\\\/\",\"name\":\"Tutorials Kwik Server\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/kwikserver.com\\\/tutorials\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Basic Setup Guide for a Fresh Ubuntu Server - Tutorials Kwik Server","description":"A first-boot checklist for a new Ubuntu VPS: creating a sudo user, locking down SSH, and enabling a basic firewall.","canonical_url":"https:\/\/kwikserver.com\/tutorials\/basic-setup-guide-for-fresh-ubuntu-server\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BlogPosting","@id":"https:\/\/kwikserver.com\/tutorials\/basic-setup-guide-for-fresh-ubuntu-server\/#blogposting","name":"Basic Setup Guide for a Fresh Ubuntu Server - Tutorials Kwik Server","headline":"Basic Setup Guide for a Fresh Ubuntu Server","author":{"@id":"https:\/\/kwikserver.com\/tutorials\/author\/server2202kwik\/#author"},"publisher":{"@id":"https:\/\/kwikserver.com\/tutorials\/#organization"},"datePublished":"2026-08-15T03:49:52+05:30","dateModified":"2026-08-15T03:49:52+05:30","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/kwikserver.com\/tutorials\/basic-setup-guide-for-fresh-ubuntu-server\/#webpage"},"isPartOf":{"@id":"https:\/\/kwikserver.com\/tutorials\/basic-setup-guide-for-fresh-ubuntu-server\/#webpage"},"articleSection":"Linux"},{"@type":"BreadcrumbList","@id":"https:\/\/kwikserver.com\/tutorials\/basic-setup-guide-for-fresh-ubuntu-server\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/kwikserver.com\/tutorials#listItem","position":1,"name":"Home","item":"https:\/\/kwikserver.com\/tutorials","nextItem":{"@type":"ListItem","@id":"https:\/\/kwikserver.com\/tutorials\/category\/linux\/#listItem","name":"Linux"}},{"@type":"ListItem","@id":"https:\/\/kwikserver.com\/tutorials\/category\/linux\/#listItem","position":2,"name":"Linux","item":"https:\/\/kwikserver.com\/tutorials\/category\/linux\/","nextItem":{"@type":"ListItem","@id":"https:\/\/kwikserver.com\/tutorials\/basic-setup-guide-for-fresh-ubuntu-server\/#listItem","name":"Basic Setup Guide for a Fresh Ubuntu Server"},"previousItem":{"@type":"ListItem","@id":"https:\/\/kwikserver.com\/tutorials#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/kwikserver.com\/tutorials\/basic-setup-guide-for-fresh-ubuntu-server\/#listItem","position":3,"name":"Basic Setup Guide for a Fresh Ubuntu Server","previousItem":{"@type":"ListItem","@id":"https:\/\/kwikserver.com\/tutorials\/category\/linux\/#listItem","name":"Linux"}}]},{"@type":"Organization","@id":"https:\/\/kwikserver.com\/tutorials\/#organization","name":"Tutorials Kwik Server","url":"https:\/\/kwikserver.com\/tutorials\/"},{"@type":"Person","@id":"https:\/\/kwikserver.com\/tutorials\/author\/server2202kwik\/#author","url":"https:\/\/kwikserver.com\/tutorials\/author\/server2202kwik\/","name":"Kwik Server","image":{"@type":"ImageObject","@id":"https:\/\/kwikserver.com\/tutorials\/basic-setup-guide-for-fresh-ubuntu-server\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/b0b10492ce76cec12cc2303f4951f725e776449ce91e8fff43130c3174c94d70?s=96&d=mm&r=g","width":96,"height":96,"caption":"Kwik Server"}},{"@type":"WebPage","@id":"https:\/\/kwikserver.com\/tutorials\/basic-setup-guide-for-fresh-ubuntu-server\/#webpage","url":"https:\/\/kwikserver.com\/tutorials\/basic-setup-guide-for-fresh-ubuntu-server\/","name":"Basic Setup Guide for a Fresh Ubuntu Server - Tutorials Kwik Server","description":"A first-boot checklist for a new Ubuntu VPS: creating a sudo user, locking down SSH, and enabling a basic firewall.","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/kwikserver.com\/tutorials\/#website"},"breadcrumb":{"@id":"https:\/\/kwikserver.com\/tutorials\/basic-setup-guide-for-fresh-ubuntu-server\/#breadcrumblist"},"author":{"@id":"https:\/\/kwikserver.com\/tutorials\/author\/server2202kwik\/#author"},"creator":{"@id":"https:\/\/kwikserver.com\/tutorials\/author\/server2202kwik\/#author"},"datePublished":"2026-08-15T03:49:52+05:30","dateModified":"2026-08-15T03:49:52+05:30"},{"@type":"WebSite","@id":"https:\/\/kwikserver.com\/tutorials\/#website","url":"https:\/\/kwikserver.com\/tutorials\/","name":"Tutorials Kwik Server","inLanguage":"en-US","publisher":{"@id":"https:\/\/kwikserver.com\/tutorials\/#organization"}}]},"og:locale":"en_US","og:site_name":"Tutorials Kwik Server -","og:type":"article","og:title":"Basic Setup Guide for a Fresh Ubuntu Server - Tutorials Kwik Server","og:description":"A first-boot checklist for a new Ubuntu VPS: creating a sudo user, locking down SSH, and enabling a basic firewall.","og:url":"https:\/\/kwikserver.com\/tutorials\/basic-setup-guide-for-fresh-ubuntu-server\/","article:published_time":"2026-08-14T22:19:52+00:00","article:modified_time":"2026-08-14T22:19:52+00:00","twitter:card":"summary_large_image","twitter:title":"Basic Setup Guide for a Fresh Ubuntu Server - Tutorials Kwik Server","twitter:description":"A first-boot checklist for a new Ubuntu VPS: creating a sudo user, locking down SSH, and enabling a basic firewall."},"aioseo_meta_data":{"post_id":"1940","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2026-08-14 23:06:49","updated":"2026-08-14 23:06:49","seo_analyzer_scan_date":null,"focus_keyword":null,"additional_keywords":null,"truseo_locale":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/kwikserver.com\/tutorials\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/kwikserver.com\/tutorials\/category\/linux\/\" title=\"Linux\">Linux<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tBasic Setup Guide for a Fresh Ubuntu Server\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/kwikserver.com\/tutorials"},{"label":"Linux","link":"https:\/\/kwikserver.com\/tutorials\/category\/linux\/"},{"label":"Basic Setup Guide for a Fresh Ubuntu Server","link":"https:\/\/kwikserver.com\/tutorials\/basic-setup-guide-for-fresh-ubuntu-server\/"}],"_links":{"self":[{"href":"https:\/\/kwikserver.com\/tutorials\/wp-json\/wp\/v2\/posts\/1940","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kwikserver.com\/tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kwikserver.com\/tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kwikserver.com\/tutorials\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kwikserver.com\/tutorials\/wp-json\/wp\/v2\/comments?post=1940"}],"version-history":[{"count":0,"href":"https:\/\/kwikserver.com\/tutorials\/wp-json\/wp\/v2\/posts\/1940\/revisions"}],"wp:attachment":[{"href":"https:\/\/kwikserver.com\/tutorials\/wp-json\/wp\/v2\/media?parent=1940"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kwikserver.com\/tutorials\/wp-json\/wp\/v2\/categories?post=1940"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kwikserver.com\/tutorials\/wp-json\/wp\/v2\/tags?post=1940"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}