autossh-argv0 command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
autossh-argv0: command not found
or when using sudo you get the following error message
sudo: autossh-argv0: command not found
Solutions to autossh-argv0: command not found
How To Fix autossh-argv0: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu autossh-argv0 is provided by autossh package.
autossh is:
autossh is a program to start an instance of ssh and monitor it, restarting it as necessary should it die or stop passing traffic. The idea is from rstunnel (Reliable SSH Tunnel), but implemented in C. Connection monitoring is done using a loop of port forwardings. It backs off on the rate of connection attempts when experiencing rapid failures such as connection refused.
To fix this problem, we can install more using the command below.
sudo apt-get -y install autossh
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install autossh.
sudo apt -y install autossh
Or if you have aptitude installed you can use the following command.
sudo aptitude install autossh
Summary
In this tutorial we learn how to fix autossh-argv0 command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.