How to Install or Uninstall lsh-utils Ubuntu 22.04

Updated: October 21, 2022

lsh is a GPLed implementation of the Secure SHell protocol version 2 (SSH2), a secure replacement for rlogin, rsh, and rcp. In this tutorial, I will show you how to install lsh-utils on Ubuntu 22.04.

Prerequisites to install

  • Operating system: Ubuntu 22.04 or older Ubuntu versions
  • Privileges: Make sure you are able to execute sudo commands.

Prerequisites to install lsh-utils on Ubuntu 22.04

Install lsh-utils Ubuntu 22.04

lsh-utils is one of the popular ways on Ubuntu now so that this tutorial will show you some ways to install it. Choose the one that you think is easy and you can follow.

Install lsh-utils using APT

This is a popular method for installing any Ubuntu packages because it’s easy to follow, even if you are a newbie in Linux. Following these steps to get lsh-utils on your Ubuntu.

Step 1: You must update the APT package repository cache before attempting to install, update, or remove any packages. Obtain new packages from Ubuntu by updating the APT database. Opening the terminal and executing this Linux command:

sudo apt-get -y update

Step 2: Install the package on Ubuntu 22.04. After updating the system, you can now install lsh-utils Ubuntu by pasting this command into the terminal and pressing Enter.

sudo apt-get -y install lsh-utils

Install lsh-utils using Aptitude

Users can manage their installation, upgrade, and removal of packages with Aptitude and view a list of the packages that are currently available. You must run this command to install it if you haven’t already done so on Ubuntu.

sudo apt-get -y install aptitude

Then, you can now install lsh-utils by following these steps:

Step 1: Update the APT database to download new packages from Ubuntu. Launching the terminal and entering the following Linux command:

sudo apt update

Step 2: Start the package installation on Ubuntu 22.04. After updating the system, you can install lsh-utils Ubuntu by executing this command in the terminal.

sudo aptitude install lsh-utils

Uninstall lsh-utils on Ubuntu 22.04

Have you ever thought that uninstalling an application from Ubuntu is difficult? You are mistaken; Anyone can easily uninstall any program, not just lsh-utils.

You can uninstall lsh-utils Ubuntu by running this command if you installed it using APT or Aptitude.

sudo apt remove --auto-remove lsh-utils

If you want to uninstall lsh-utils and delete its data and dependencies, you can also run the following command:

sudo apt autoremove --purge lsh-utils


In this guide, I showed you ways to install lsh-utils on Ubuntu 22.04 and ways to uninstall lsh-utils too. Please contact me if you require any assistance. I’d be delighted to respond.