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

Workaround for encryption/decryption failure when ssh into a mac #80

Open
rayluo opened this issue Nov 20, 2020 · 0 comments
Open

Workaround for encryption/decryption failure when ssh into a mac #80

rayluo opened this issue Nov 20, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@rayluo
Copy link
Contributor

rayluo commented Nov 20, 2020

It is observed (from elsewhere) that encryption/decryption attempt would fail when ssh into a mac.

Persistence check failed. Inspect inner exception for details
---> System.Exception: SecKeychainAddGenericPassword failed with error code: -25308

The solution here is to ask the end user to unlock their Mac first via the command:

security unlock-keychain -p $PASSWORD /Users/$USERNAME/Library/Keychains/login.keychain-db

Would need to ideally repro the issue, and then catch the exception and emit that workaround in the message.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant