Ubuntu does not come with SSH server installed by default but could be installed and enabled easily with the following steps from the comand line;

  1. Update package list from the repository.

    sudo apt -y update
  2. Install openssh-server package.

    sudo apt install -y openssh-server
  3. Check if sshd server is running.

    sudo systemctl status ssh
  4. Optionally, disable sshd from running by default during system bootup.

    sudo systemctl disable ssh
  5. sshd could be re-enabled at later times.

    sudo systemctl enable ssh