agent-transfer command not found

In this troubleshooting guide we learn how to fix agent-transfer command not found error message

Introduction

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

agent-transfer: command not found

or when using sudo you get the following error message

sudo: agent-transfer: command not found

Solutions to agent-transfer: command not found

How To Fix agent-transfer: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu agent-transfer is provided by agent-transfer package.

agent-transfer is:

agent-transfer is a simple utility to extract a secret RSA or Ed25519 key from GnuPG’s gpg-agent and send it to a running ssh-agent. This is useful for those who prefer the runtime semantics and behavior of OpenSSH’s ssh-agent, but whose secret keys are held in long-term storage by GnuPG’s gpg-agent.

This tool comes from the monkeysphere project.

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

sudo apt-get -y install agent-transfer

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

You can also use apt command to install agent-transfer.

sudo apt -y install agent-transfer

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

sudo aptitude install agent-transfer

Summary

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