Đóng Menu
    Facebook YouTube X (Twitter) Instagram
    Xu hướng
    • Cài đặt Let’s Encrypt SSL trên Ubuntu với OpenLiteSpeed gia hạn tự động
    • How To Install WordPress on Ubuntu with a LAMP Stack
    • How to Block OTA updates for iPhone and iPad cuccess 100%
    • Decoding AMP: Demystifying the Pros and Cons of AMP for SEO Success
    • Install Let’s Encrypt SSL on Ubuntu with OpenLiteSpeed auto renewal
    • Best Core Exercises: Top Moves, from Beginner to Advanced
    • Exploring ChatGPT: A Comprehensive Guide on How to Use ChatGPT
    • Empowering Health: Prioritize Early Cancer Screenings for Better Well-being
    Facebook YouTube X (Twitter) Instagram
    SaibABCSaibABC
    Chú thích cho quảng cáo
    • Trang chủ
    • Đời sống
      1. Ngôi sao
      2. Sức khỏe
      3. Tập luyện
      4. Xem tất cả

      15 Most popular celebrities in the world all the time

      23/12/2023

      Empowering Health: Prioritize Early Cancer Screenings for Better Well-being

      05/01/2024

      Best Core Exercises: Top Moves, from Beginner to Advanced

      16/01/2024

      Best Core Exercises: Top Moves, from Beginner to Advanced

      16/01/2024

      Empowering Health: Prioritize Early Cancer Screenings for Better Well-being

      05/01/2024

      15 Most popular celebrities in the world all the time

      23/12/2023
    • Nhàn rỗi
      1. Công nghệ
      2. Kinh doanh
      3. Phượt thủ
      4. Sống đẹp
      5. Thời trang
      Nổi bật

      How to Block OTA updates for iPhone and iPad cuccess 100%

      Bởi Nuj Coom25/05/2024
      Gần đây

      How to Block OTA updates for iPhone and iPad cuccess 100%

      25/05/2024

      Decoding AMP: Demystifying the Pros and Cons of AMP for SEO Success

      28/04/2024

      Exploring ChatGPT: A Comprehensive Guide on How to Use ChatGPT

      11/01/2024
    • Thủ thuật
      1. Blogger HD
      2. Web Hosting
      3. WordPress
      4. Xem tất cả

      The 12 Best AI Content Writing Tools for Bloggers in 2024

      02/01/2024

      Cài đặt Let’s Encrypt SSL trên Ubuntu với OpenLiteSpeed gia hạn tự động

      18/11/2024

      How To Install WordPress on Ubuntu with a LAMP Stack

      22/07/2024

      Install Let’s Encrypt SSL on Ubuntu with OpenLiteSpeed auto renewal

      01/03/2024

      How To Secure Apache with Let’s Encrypt on Ubuntu

      26/12/2023

      How To Install WordPress on Ubuntu with a LAMP Stack

      22/07/2024

      Install Let’s Encrypt SSL on Ubuntu with OpenLiteSpeed auto renewal

      01/03/2024

      The 12 Best AI Content Writing Tools for Bloggers in 2024

      02/01/2024

      How To Install LAMP Stack: Linux, Apache, MySQL, PHP on Ubuntu

      23/12/2023

      Cài đặt Let’s Encrypt SSL trên Ubuntu với OpenLiteSpeed gia hạn tự động

      18/11/2024

      How To Install WordPress on Ubuntu with a LAMP Stack

      22/07/2024

      Install Let’s Encrypt SSL on Ubuntu with OpenLiteSpeed auto renewal

      01/03/2024

      The 12 Best AI Content Writing Tools for Bloggers in 2024

      02/01/2024
    • Shopping
    SaibABCSaibABC
    Home » Optimizing Security and Efficiency with Ubuntu Server: Installation Guide
    Web Hosting 3 Phút đọcKhông có bình luận

    Optimizing Security and Efficiency with Ubuntu Server: Installation Guide

    Nuj CoomBởi Nuj CoomCập nhật:15/05/2024
    Facebook Twitter Pinterest LinkedIn Tumblr Email
    Chú thích cho quảng cáo

    Contents

    1. Introduction: Ubuntu server setup
    2. Step 1 — Accessing as Root:
    3. Step 2 — Creating a New User: Ubuntu server setup
    4. Step 3 — Granting Administrative Privileges:
    5. Step 4 — Setting Up a Firewall:
    6. Step 5 — Enabling External Access for Your Regular User:
    7. Conclusion: Ubuntu server setup

    Introduction: Ubuntu server setup

    Upon the creation of a new Ubuntu server setup, prioritizing essential configuration steps is pivotal for enhancing both security and usability. These initial measures lay a robust foundation for subsequent actions, ensuring a seamless server management experience.

    Step 1 — Accessing as Root:

    To initiate server access, familiarity with the server’s public IP address and either the root user’s password or private key is imperative. If unacquainted, a detailed guide on SSH connectivity is available. Log in as the root user using the command:

    ssh root@your_server_ip

    Ensuring a secure connection.

    About Root: Given the root user’s elevated privileges, regular use is discouraged due to the potential for unintentional, destructive changes. The subsequent step involves creating a new user account with limited privileges for day-to-day activities.

    Step 2 — Creating a New User: Ubuntu server setup

    After logging in as root, the creation of a new user account is facilitated. Replace ‘sammy’ with your preferred username:

    Chú thích cho quảng cáo
    adduser sammy

    Provide a robust password and optional additional information.

    Step 3 — Granting Administrative Privileges:

    While the new user possesses regular privileges, administrative tasks sometimes require root privileges. To circumvent constant user switching, grant superuser privileges using

    usermod -aG sudo sammy

    This enables running commands with administrative privileges using sudo.

    Step 4 — Setting Up a Firewall:

    Leveraging the UFW firewall on Ubuntu 22.04 ensures controlled access to specific services. Tailor firewall settings as needed, starting with allowing SSH connections:

    ufw allow OpenSSH

    Ubuntu server setup – Activate the firewall with:

    ufw enable 

    Type y and press ENTER to proceed. You can see that SSH connections are still allowed by typing:

    ufw status

    Ubuntu server setup – The output for you when testing:

    Status: active
    
    To                         Action      From
    --                         ------      ----
    OpenSSH                    ALLOW       Anywhere
    OpenSSH (v6)               ALLOW       Anywhere (v6)

    Note: You can examine the list of installed UFW profiles by typing:

    ufw app list
    Output:
    Available applications:
      OpenSSH

    Step 5 — Enabling External Access for Your Regular User:

    Configure SSH access for the new user based on root authentication method. If using password authentication, SSH into the new user account with:

    ssh sammy@your_server_ip

    For SSH key authentication, replicate the root user’s .ssh directory to the new user using rsync. Connect securely using ssh sammy@your_server_ip.

    Ubuntu server setup – You will be prompted for your regular user’s password when using sudo for the first time each session (and periodically afterward).

    You should be connected to your server with the new user account without using a password. Remember, if you need to run a command with administrative privileges, type sudo before the command like this:

    sudo command_to_run

    Also read: How To Install WordPress on Ubuntu with a LAMP Stack

    Conclusion: Ubuntu server setup

    These meticulously curated steps not only bolster your server’s security but also establish an efficient user management framework. Following these guidelines ensures a secure and streamlined Ubuntu 22.04 server environment for both novice and experienced users alike.

    Chú thích cho quảng cáo
    Linux MySQL Ubuntu
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email
    Bài viết trướcWinter Travel Fashion: Stylish Outfits for Men, Women
    Bài tiếp theo 15 Most popular celebrities in the world all the time
    Nuj Coom
    • Trang web
    • Facebook
    • X (Twitter)
    • Instagram

    I'm a doctor, for sure. But I also love writing and sharing knowledge, life experiences, web tricks, and useful lectures. Let's cheer for your passion.

    Bài viết liên quan

    Cài đặt Let’s Encrypt SSL trên Ubuntu với OpenLiteSpeed gia hạn tự động

    18/11/2024

    How To Install WordPress on Ubuntu with a LAMP Stack

    22/07/2024

    Install Let’s Encrypt SSL on Ubuntu with OpenLiteSpeed auto renewal

    01/03/2024
    Thêm bình luận
    Để lại bình luận Hủy trả lời

    Bài gần đây

    Exploring ChatGPT: A Comprehensive Guide on How to Use ChatGPT

    Decoding AMP: Demystifying the Pros and Cons of AMP for SEO Success

    Best Core Exercises: Top Moves, from Beginner to Advanced

    How To Secure Apache with Let’s Encrypt on Ubuntu

    Winter Travel Fashion: Stylish Outfits for Men, Women

    Advertisement
    Chú thích cho quảng cáo

    NHẬN THÔNG BÁO

    Nhận tin tức sáng tạo mới nhất từ ​​SaibABC.Com về các thủ thuật, thiết kế và kinh doanh trên web.

    Copyright © 2024. Designed by NujCoom.
    • Trang chủ
    • Chính sách
    • Liên hệ
    • Mua

    Nhập ở trên và nhấn Enter để tìm kiếm. Nhấn Esc để hủy.