wget https://codeload.github.com/funtoo/keychain/tar.gz/2.8.5
tar -xzvf 2.8.5
cd keychain-2.8.5/
install -m0755 keychain /usr/bin

 

vim ~/.bash_profile
eval `keychain --eval --agents ssh id_rsa`
eval `keychain --eval id_dsa 2>/root/backup/id_dsa.log`

可以通过ssh-add命令来管理秘钥  -l  查看  -d删除    跟key添加

[root@localhost ~]# ssh-add  -l
2048 SHA256:WIfFa/cxyGpP9w4Wc2/rja2NgmoqhQlVyBM+yWAYXKE /root/.ssh/10.139.165.32_id_rsa (RSA)
2048 SHA256:oiXSY73sCgQ+7vEr/ssVQGJsuPPDtSUfIKEvW2KWo0Q /root/.ssh/tiaobanji_id_rsa (RSA)
哟?不错哎 订阅小米的RSS Feeds 回去慢慢看^_^