Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add config: ensure ssh passphrase is not stored ind macOS keychain #172

Open
kristovatlas opened this issue Oct 10, 2016 · 0 comments
Open

Comments

@kristovatlas
Copy link
Owner

kristovatlas commented Oct 10, 2016

https://www.reddit.com/r/netsec/comments/56505q/macos_sierra_permanently_remembers_ssh_key/d8gxld3

Is appears that macOS Sierra is storing the keychain in ~/Library/Keychains//keychain-2.db Oddly, this database is not able to be opened with Keychain Access, due to the different file format.
If you've got an ssh key passphrase that Sierra has stored, but you want to remove, it looks like you can delete the above directory. It's not clear what else might be stashed in there, so you may lose passwords other than your SSH key.
Also, to prevent it from storing the passphrase in the future, add to ~/.ssh/config:

Host *
    UseKeyChain no
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant