openpgp2pem command not found

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

Introduction

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

openpgp2pem: command not found

or when using sudo you get the following error message

sudo: openpgp2pem: command not found

Solutions to openpgp2pem: command not found

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

In Ubuntu openpgp2pem is provided by monkeysphere package.

monkeysphere is:

SSH key-based authentication is tried-and-true, but it lacks a true Public Key Infrastructure for key certification, revocation and expiration. Monkeysphere is a framework that uses the OpenPGP web of trust for these PKI functions. It can be used in both directions: for users to get validated host keys, and for hosts to authenticate users. Current monkeysphere SSH tools are designed to integrate with the OpenSSH implementation of the Secure Shell protocol.

Monkeysphere can also be used by a validation agent to validate TLS connections (e.g. https).

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

sudo apt-get -y install monkeysphere

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

You can also use apt command to install monkeysphere.

sudo apt -y install monkeysphere

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

sudo aptitude install monkeysphere

Summary

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