use ssh with keychain on macOS sierra

Since macOS sierra ssh not automaticly use the the passhrase from the keychain. You have to configure ssh to use the keychain to lookup the passhrase. In this snippet from my ~/ssh/config I enable the keychain with UseKeychain yes. The AddKeysToAgent yes line load the key by the frist use in the ssh agent. With IdentityFile I added my two ssh keys. Host * UseKeychain yes AddKeysToAgent yes IdentityFile ~/.ssh/id_rsa IdentityFile ~/. [Read More]