afssh command not found

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

Introduction

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

afssh: command not found

or when using sudo you get the following error message

sudo: afssh: command not found

Solutions to afssh: command not found

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

In Ubuntu afssh is provided by ssh-agent-filter package.

ssh-agent-filter is:

This package solves the all-or-nothing problem regarding ssh-agent forwarding. It contains:

  • ssh-agent-filter, the filtering proxy itself
  • afssh, a wrapper around ssh-agent-filter and ssh

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

sudo apt-get -y install ssh-agent-filter

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

You can also use apt command to install ssh-agent-filter.

sudo apt -y install ssh-agent-filter

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

sudo aptitude install ssh-agent-filter

Summary

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