2021-07-02

SSH & Keychain

 

Goal

We want Keychain remembers  password for SSH key, ever after rebooting.

How

Step 1:

ssh-add -K -A

Step 2:

Add two lines in .ssh/config:

UseKeychain yes

AddKeysToAgent yes


Just add the two lines in the global section (not in any Host section)