ssh-cron command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
ssh-cron: command not found
or when using sudo you get the following error message
sudo: ssh-cron: command not found
Solutions to ssh-cron: command not found
How To Fix ssh-cron: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu ssh-cron is provided by ssh-cron package.
ssh-cron is:
ssh-cron acts like cron, but utilizes ssh-agent to obtain ssh key passphrases. Thus it allows scheduled commands to run on remote systems without requiring the ssh key passphrase to be stored in a clear-text file, or resorting to ssh keys without passphrases.
To fix this problem, we can install more using the command below.
sudo apt-get -y install ssh-cron
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install ssh-cron.
sudo apt -y install ssh-cron
Or if you have aptitude installed you can use the following command.
sudo aptitude install ssh-cron
Summary
In this tutorial we learn how to fix ssh-cron command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.