ssh-audit command not found

In this troubleshooting guide we learn how to fix ssh-audit command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

ssh-audit: command not found

or when using sudo you get the following error message

sudo: ssh-audit: command not found

Solutions to ssh-audit: command not found

How To Fix ssh-audit: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu ssh-audit is provided by ssh-audit package.

ssh-audit is:

ssh-audit is a tool for ssh server auditing with the following features:

  • SSH1 and SSH2 protocol server support;
  • grab banner, recognize device or software and operating system, detect compression;
  • gather key-exchange, host-key, encryption and message authentication code algorithms;
  • output algorithm information (available since, removed/disabled, unsafe/weak/legacy, etc);
  • output algorithm recommendations (append or remove based on recognized software version);
  • output security information (related issues, assigned CVE list, etc);
  • analyze SSH version compatibility based on algorithm information;
  • historical information from OpenSSH, Dropbear SSH and libssh;
  • no dependencies, compatible with Python 2.6+, Python 3.x and PyPy;

To fix this problem, we can install more using the command below.

sudo apt-get -y install ssh-audit

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install ssh-audit.

sudo apt -y install ssh-audit

Or if you have aptitude installed you can use the following command.

sudo aptitude install ssh-audit

Summary

In this tutorial we learn how to fix ssh-audit command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.