UbuntuWiki:UsingKeychain

来自Ubuntu中文
Oneleaf留言 | 贡献2007年5月15日 (二) 05:13的版本 (New page: {{From|https://wiki.ubuntu.com/UsingKeychain}} {{Languages|UbuntuWiki:UsingKeychain}} Instead of constantly starting up ssh-agent and ssh-add, it is possible to use "keychain" to manage y...)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
跳到导航跳到搜索

{{#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