Skip to content

Linux

Getting started

Getting started with Linux involves setting up your system for secure access and keeping it up-to-date. This guide walks you through essential initial steps such as configuring SSH login for remote access, ensuring your system is updated with the latest packages and rebooting the system to apply changes. By following these steps, you'll have a secure and up-to-date Linux environment ready for further use.


  1. ssh

    Secure Shell (SSH) allows you to access your Linux system remotely. In this step, you’ll configure SSH login, ensuring you can securely connect to your system from another machine.

    1. Verify ssh service is running

      Terminal window
      systemctl status ssh
    2. Install openssh-server

      Terminal window
      sudo apt install openssh-server -y
    3. Enable ssh service

      Terminal window
      sudo systemctl enable --now ssh
    4. ssh login

      Terminal window
      ssh {{{USERNAME_VAR}}}@{{{IP_ADDRESS_VAR}}}
    5. Restart ssh service

      Terminal window
      sudo systemctl restart ssh
  2. Update and upgrade system packages

    It’s important to keep your system updated to ensure security patches and software improvements are applied. This step shows you how to update your package list and upgrade all installed packages using APT.

    Terminal window
    sudo apt update && sudo apt upgrade -y
  3. Reboot the system

    After performing updates or system changes, it’s often necessary to reboot your system. This step ensures all updates take effect, and your system is ready for use with the latest configurations and security patches.

    Terminal window
    sudo reboot