UbuntuWiki:UsingKeychain

来自Ubuntu中文
跳到导航跳到搜索

{{#ifexist: :UbuntuWiki:UsingKeychain/zh | | {{#ifexist: UbuntuWiki:UsingKeychain/zh | | {{#ifeq: {{#titleparts:UbuntuWiki:UsingKeychain|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:UbuntuWiki:UsingKeychain|1|-1|}} | zh | | }}


Instead of constantly starting up ssh-agent and ssh-add, it is possible to use "keychain" to manage your ssh keys.

sudo apt-get install keychain

You then should add the following lines to your ${HOME}/.bashrc or /etc/bash.bashrc:

keychain id_rsa id_dsa
. ~/.keychain/`uname -n`-sh