How To Install keychain on Kali Linux
Introduction
In this tutorial we learn how to install keychain on Kali Linux.
What is keychain
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.
There are three methods to install keychain on Kali Linux. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.
Install keychain Using apt-get
Update apt database with apt-get using the following command.
sudo apt-get updateAfter updating apt database, We can install keychain using apt-get by running the following command:
sudo apt-get -y install keychainInstall keychain Using apt
Update apt database with apt using the following command.
sudo apt updateAfter updating apt database, We can install keychain using apt by running the following command:
sudo apt -y install keychainInstall keychain Using aptitude
If you want to follow this method, you might need to install aptitude on Kali Linux first since aptitude is usually not installed by default on Kali Linux. Update apt database with aptitude using the following command.
sudo aptitude updateAfter updating apt database, We can install keychain using aptitude by running the following command:
sudo aptitude -y install keychainHow To Uninstall keychain on Kali Linux
To uninstall only the keychain package we can use the following command:
sudo apt-get remove keychainUninstall keychain And Its Dependencies
To uninstall keychain and its dependencies that are no longer needed by Kali Linux, we can use the command below:
sudo apt-get -y autoremove keychainRemove keychain Configurations and Data
To remove keychain configuration and data from Kali Linux we can use the following command:
sudo apt-get -y purge keychainRemove keychain configuration, data, and all of its dependencies
We can use the following command to remove keychain configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge keychainDependencies
keychain have the following dependencies:
References
Summary
In this tutorial we learn how to install keychain package on Kali Linux using different package management tools: apt, apt-get and aptitude.