Table of Contents

keychain (ssh login without supplying a password)



About keychain

Install keychain

RPM (Install keychain on CentOS / RHEL / Fedora Linux)

# yum install keychain

Deb (Install keychain on Debian / Ubuntu Linux)

# apt-get update && apt-get install keychain

Source

# tar jxvf keychain-2.6.8.tar.bz2
# cd keychain-2.6.8
# install -m0755 keychain /usr/bin/keychain
# ls -lh /usr/bin/keychain

Configuration keychain

Setup SSH Keys

# ssh-keygen -t dsa
or
# ssh-keygen -t rsa

Private Key and Public Key

Check private key and public key

ls -lh ~/.ssh/id_dsa
ls -lh ~/.ssh/id_dsa.pub

~/.bash_profile

# keychain for no passpaharase
/usr/bin/keychain ~/.ssh/id_dsa
source ~/.keychain/$HOSTNAME-sh

Example

# ssh test@192.168.100.10