lsh-upgrade-key command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
lsh-upgrade-key: command not found
or when using sudo you get the following error message
sudo: lsh-upgrade-key: command not found
Solutions to lsh-upgrade-key: command not found
How To Fix lsh-upgrade-key: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu lsh-upgrade-key is provided by lsh-utils package.
lsh-utils is:
lsh is a GPLed implementation of the Secure SHell protocol version 2 (SSH2), a secure replacement for rlogin, rsh, and rcp.
This package contains the lsh utilities. This includes programs such as lsh-keygen, lsh-writekey (both programs for public/private key generation), lsh-authorize (for automatic remote key authentication), ssh-conv (utilities for converting between various public and private key formats), and a number of other utilities for use with both the lsh server and client.
In some countries it may be illegal to use any encryption at all without a special permit.
To fix this problem, we can install more using the command below.
sudo apt-get -y install lsh-utils
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install lsh-utils.
sudo apt -y install lsh-utils
Or if you have aptitude installed you can use the following command.
sudo aptitude install lsh-utils
Summary
In this tutorial we learn how to fix lsh-upgrade-key command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.