Skip to content

Instantly share code, notes, and snippets.

@rahilwazir
Created November 18, 2016 05:57
Show Gist options
  • Save rahilwazir/97bca8dba088b1b00393afee3c36ab54 to your computer and use it in GitHub Desktop.
Save rahilwazir/97bca8dba088b1b00393afee3c36ab54 to your computer and use it in GitHub Desktop.
Keychain with SSH passphrase

Keychain with SSH passphrase

Install

Keychain: https://www.rpmfind.net/linux/rpm2html/search.php?query=keychain

$ wget -c ftp://195.220.108.108/linux/fedora/linux/development/rawhide/Everything/x86_64/os/Packages/k/keychain-2.8.0-3.fc24.noarch.rpm
$ rpm -i keychain-2.8.0-3.fc24.noarch.rpm

Then edit your ~/.bash_profile file and append the following line:

$ eval `keychain --agents ssh --eval id_rsa`
$ source ~/.bash_profile
$ Enter your passphrase:

Done!

Note: This will manage only ssh-agent keys, if you need to manage gpg-agents as well remove the --agents ssh parameter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment