Keychain

Keychain
1
enables re-use of
ssh-agent
2
and
gpg-agent
3
between logins.


Dependencies

Required

  • Pacman
    4

1. Install

NOTE

keychain
5
acts as ssh-agent and
ssh-add
6
frontend to keep a single connection.


2. Configure

2.1. Generate key pair

NOTE

ssh-keygen
7
generates SSH keys

  • -C (comment) provides a new comment
  • -f (filename) specifies filename of key file
  • -N (new_passphrase) provides new passphrase

2.2. Construct key pair

NOTE

  • eval
    8
    constructs a command by concatenating arguments
  • keychain by default, looks for key pairs in ~/.ssh/ directory
    • --eval will print lines to be evaluated in shell on stdout
    • -q or --quiet only prints warning, error or required interactivity messages

References

Show Comments