testproxy command not found

In this troubleshooting guide we learn how to fix testproxy command not found error message

Introduction

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

testproxy: command not found

or when using sudo you get the following error message

sudo: testproxy: command not found

Solutions to testproxy: command not found

How To Fix testproxy: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu testproxy is provided by sshesame package.

sshesame is:

This package contains a fake SSH server that lets everyone in and logs their activity.

Details sshesame accepts and logs

  • every password authentication request,
  • every SSH channel open request and
  • every SSH request

without actually executing anything on the host.

Warning: This software, just like any other, might contain bugs. Given the popular nature of SSH, you probably shouldn’t run it unsupervised as root on a production server on port 22. Use common sense.

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

sudo apt-get -y install sshesame

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

You can also use apt command to install sshesame.

sudo apt -y install sshesame

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

sudo aptitude install sshesame

Summary

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