keychain command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
keychain: command not found
or when using sudo you get the following error message
sudo: keychain: command not found
Solutions to keychain: command not found
How To Fix keychain: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu keychain is provided by keychain package.
keychain is:
Keychain is an OpenSSH key manager, typically run from ~/.bash_profile. When keychain is run, it checks for a running ssh-agent, otherwise it starts one. It saves the ssh-agent environment variables to ~/.keychain/${HOSTNAME}-sh, so that subsequent logins and non-interactive shells such as cron jobs can source the file and make passwordless ssh connections. In addition, when keychain runs, it verifies that the key files specified on the command-line are known to ssh-agent, otherwise it loads them, prompting you for a password if necessary.
To fix this problem, we can install more using the command below.
sudo apt-get -y install keychain
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install keychain.
sudo apt -y install keychain
Or if you have aptitude installed you can use the following command.
sudo aptitude install keychain
Summary
In this tutorial we learn how to fix keychain command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.